Re: How to get X authorisation when su'ing? On Tue, 15 Feb 2005 23:55:12 -0800, A. L. Meyers wrote:
> Thanks again. What about defining everyone in the wheel group to have
> root's path? Where would be the best place and way to do this once
> and for all, e.g.
> /etc/login.conf?
Depends on root's shell. Since su sources /root/.bashrc and /root/.cshrc
it's a matter of your choice. Nobody outside of the wheel group is going
to be able to access either shellrc.
Put root's PATH into the appropriate /root/[.bashrc|.cshrc]. On my home
nameserver:
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
export PATH
There is also no reason that users should not have that PATH. Your
problem with root's PATH is a non sequitur. Just because some system
administration utility usable only by root is in a user's PATH does not
mean that the user can execute that utility.
Do you really believe that an ordinary user can execute /sbin/fdisk? |