Adding /sbin and /usr/sbin to everyone's path in F10
Adam Tkac
atkac at redhat.com
Wed Apr 23 15:55:28 UTC 2008
On Wed, Apr 23, 2008 at 10:43:46AM -0500, Dennis Gilmore wrote:
> On Wednesday 23 April 2008, 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?
> >
> > ~spot
>
> -1 it will break quite a few things. especially everything that uses
> consolehelper. it could be worked around by putting /sbin:/usr/sbin at the
> end of path
>
> [dennis at bratac gilmore]$ /sbin/parted /dev/sda print
> WARNING: You are not superuser. Watch out for permissions.
> Error: Error opening /dev/sda: Permission denied
>
> a standard install doesn't allow a user to use parted. ifconfig is probably
> the only thing i use regularly thats in one of the sbin paths that works
> fine when you are not root.
>
> really the only way to make it useful would be to default to setting up sudo
> that way if it fails you can do sudo <foo> rather than sudo </path/to/foo>
>
> Dennis
I think we can simply create /sbin -> /bin and /usr/sbin -> /usr/bin
for backward compatibility. Typing /sbin every time when I want run
ifconfig or service <something> status is really annoying.
Adam
--
Adam Tkac, Red Hat, Inc.
More information about the fedora-devel-list
mailing list