[PLUG] /bin/loadkeys Runs Only As Root

drew wymore drew.wymore at gmail.com
Wed Nov 1 20:06:44 UTC 2006


Tony-
Thanks for the info. Rich -- I mirror the official tree's from 9.1 =>
11.0and and it looks like the kbd package hasn't changed between
10.2 and 11.0

I'll do some more digging on what Tony mentioned and see if I can come up
with anything. Might want to check -current and see if Pat's updated
anything there ..

Drew aka The 3rd Slackware User on PLUG ;-)


On 11/1/06, tonyr <tonyr at hevanet.com> wrote:
>
> I googled *loadkeys permission* and a lot of stuff turned up.
> There seems to have been some sort of hiccup in the kernel
> sometime in the  2.4.31 - 2.4.33 timeframe.  The suggestion
> that turned up a couple of times was to update the *kbd
> *package (whatever that means for Slackware).
>
> - tony
>
> ###########################################
> Rich Shepard wrote:
> > On Tue, 31 Oct 2006, tonyr wrote:
> >
> >> I am not Slackware conversant, but the little bit of reading that I did
> >> leads me to believe that there are two paths to keymap modification.
> One
> >> is at startup, through the *rc* process, either via
> >> /*etc/rc.d/rc.keymap*
> >> or *rc.local*, using *loadkeys* to read a keymap file in a known
> >> location.
> >> In this case *loadkeys *would indeed be running as *root, *and so would
> >> succeed.
> >
> > Tony,
> >
> >   Yes, I have been changing the ctrl and cap lock keys for many years
> > now by
> > using loadkeys and ~/.keymap. It works well on other systems, but
> > there must
> > be something with the notebook that's getting in the way. For
> > reference, all
> > systems run the same distribution release and kernel.
> >
> >> The other way is through an X session startup, in which case the keymap
> >> modifications should be in *~/.Xmodmap*, who's format, I believe, is
> not
> >> the same as a keymap file read by *loadkeys*.
> >
> >   X is different, as you note. It reads ~/.Xmodmap and that works
> > flawlessly
> > in the same machine that's decided to be recalcitrant at the console.
> >
> >> None of my searching turned up an example where a local user's
> >> *~/.keymap* (or ~/.<anyfoo> for that matter) was used, in Slackware
> >> or anywhere else. I'm gonna guess that you've been using the
> >> ~/.keymap method for a relatively long time, and maybe even have
> >> a *loadkeys* command in your .login or .profile or .bashrc or .cshrc
> >> or whatever your shell startup file is.
> >
> >   It's in ~/.bash_profile so it's always running -- when it works,
> > that is
> > -- in each console.
> >
> >   I'll figure out a kludge if I can't fix the problem.
> >
> > Thanks,
> >
> > Rich
> >
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list