Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1067148 - loadkeys -b does not work with normal user account
Summary: loadkeys -b does not work with normal user account
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kbd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-19 19:45 UTC by Marcos Mello
Modified: 2014-06-16 11:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-16 11:29:53 UTC


Attachments (Terms of Use)

Description Marcos Mello 2014-02-19 19:45:58 UTC
$ loadkeys -b br-abnt2 >br-abnt2.bmap
Couldn't get a file descriptor referring to the console

Running it as root works.

I have a Mageia 4 install (kdb 2.0.0) and there it is OK with a normal user account.

Can not update this box to F20 right now, but since the same base version is used (1.15) I do not know if it will make any difference.

kbd-1.15.5-9.fc19.x86_64

Comment 1 Vitezslav Crhonek 2014-06-16 11:29:53 UTC
Ordinary users are not allowed to change keymap, because it is considered to be a security problem. See [1].

You probably want to set the setuid permission bit on loadkeys, if you need to change keymap as ordinary user... See [2]. I don't know Mageia, but I believe they do it like that by default.

[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0b360adbdb54d5b98b78d57ba0916bc4b8871968

[2] http://unix.stackexchange.com/questions/85374/loadkeys-gives-permission-denied-for-normal-user


Note You need to log in before you can comment on or make changes to this bug.