Re: Running as Root

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
To: Main PLUG discussion list
Subject: Re: Running as Root
Am 10. May, 2007 schwätzte Bryan O'Neal so:

> Ok, can some one tell me why when I log in as root I can run ifconfig
> but when I log in as user and su to root I can not run ifconfig? I have
> a similar issue with snort and a few other apps. I want to stop running
> as root when I am messing with my test box, but FC6 is making it
> difficult.


Oh, you could run it after you sudo, but then we'd have to, um, wait,
nevermind, that's what we want to encourage :)

Your $PATH doesn't include /sbin or /usr/sbin.

You could

1. add those for your user account
2. use the -i to tell sudo to run the command in a login shell
3. add those directories to all accounts on the system via system-wide config files.

> Also, why is it when I log in as root and run synergys I can move my
> mouse freely across all my screens, but why it runs as itself (init'ed)
> or as some other user I am locked to the FC screen when a menu is down,
> or beryl is doing it's preview thing, etc. I want synergys to work as
> well as it does when root but without having to log in as root.


I wonder if it's trying to touch some resource that eithe gets locked or
isn't available to a non-root user.

What is pointer device does your X config point at?

ciao,

der.hans
-- 
#  https://www.LuftHans.com/        http://www.CiscoLearning.org/
#  I'm not anti-social, I'm pro-individual. - der.hans
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss