Adding /sbin and /usr/sbin to everyone's path in F10
Dennis Gilmore
dennis at ausil.us
Wed Apr 23 16:20:10 UTC 2008
On Wednesday 23 April 2008, Richard W.M. Jones wrote:
> On Wed, Apr 23, 2008 at 11:30:31AM -0400, Tom spot Callaway wrote:
> > I propose that we add /sbin and /usr/sbin to the path for normal users
> > (as well as root) for F10? There are plenty of useful tools in there for
> > non-root users (ifconfig, fdisk, parted), and IMHO, any tool which
> > assumes the user is root because it lives in /sbin is fundamentally
> > broken. The LSB doesn't mandate this (at least, not anywhere I can see),
> > so I propose that we just do it.
> >
> > Anyone opposed to such an action?
>
> FWIW, Debian doesn't have these in normal users' PATH, but does change
> the PATH to include them when you do 'su'.
>
> On a Debian system:
>
> $ echo $PATH
> /home/rich/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> $ su
> Password:
> # echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
>
su -
on a fedora system does the same thing it loads the target users profile
rather than using the source users
Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080423/187dc5f5/attachment.sig>
More information about the fedora-devel-list
mailing list