Mailinglist Archive: opensuse-features (198 mails)

< Previous Next >
[openFATE 312272] Move /sbin/lsinitrd, /sbin/lsmod, /sbin/lspci, /sbin/lspcmcia to %_bindir
Feature changed by: Dr. Werner Fink (WernerFink)
Feature #312272, revision 5
Title: Move /sbin/lsinitrd, /sbin/lsmod, /sbin/lspci, /sbin/lspcmcia to

- openSUSE Distribution: Unconfirmed
+ openSUSE Distribution: Rejected by Dr. Werner Fink (wernerfink)
+ reject date: 2011-04-27 10:11:39
+ reject reason: Invalid request
Requester: Mandatory

- Info Provider: (Novell)
Requested by: Johannes Obermayr (jobermayr)
Developer: Johannes Obermayr (jobermayr)
Partner organization:

lsinitrd, lsmod, lspci, lspcmcia are located in /sbin and so only root
can access them. The 'ls' prefix indicates that these programs only
list some information which should be accessible by all users. lsusb is
in %_bindir (=/usr/bin). If you were consequently lsusb also would have
to be in /sbin or /usr/sbin ...

Business case (Partner benefit): There absolutely is not any sense for having programs
just providing information in /sbin. How do you want to help people if
you need for example lspci's output and then people complain: "Absolute
path to 'lspci' is '/sbin/lspci', so running it may require superuser
privileges (eg. root)." Can you give me root's password? (security,
security, security, ...)

#1: Sascha Peilicke (saschpe) (2011-04-27 09:55:45)
Nonsense, the 'ls' prefix indicates nothing. Furthermore, the user can
happily invoke anything under /sbin (given propper permissions, which
is the case for /sbin/lspci). One minor difference is that /sbin isn't
part of a normal user's $PATH by default. Even more so, important tools
like lsmod, lspci can't reside under /usr/ as they are required at boot
However, moving /sbin/lsinitrd to /bin may make sense.

+ #2: Dr. Werner Fink (wernerfink) (2011-04-27 10:10:12)
+ Moving system tools used at boot from /sbin/ to /usr/bin/, that is that
+ /usr/ could be an own partition mounted ro and a network share, is a
+ NOGO. Beside this normal users should not be enforced to use those
+ commands. Interested users may add the line
+ PATH=/sbin:/usr/sbin:$PATH
+ to their ~/.profile

openSUSE Feature:

< Previous Next >
List Navigation
This Thread
  • No further messages