Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12990 - passwd in /usr/bin/, should be in /
Summary: passwd in /usr/bin/, should be in /
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-31 13:15 UTC by Sven Vermeulen (RETIRED)
Modified: 2003-01-01 04:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2002-12-31 13:15:46 UTC
Since passwd is an essential system administration tool, it's a very bad idea to
have it in /usr/bin. Please change it so it installs in /bin.
Comment 1 SpanKY gentoo-dev 2002-12-31 16:43:53 UTC
and create a symlink from /usr/bin/passwd to /bin/passwd
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2002-12-31 17:13:38 UTC
Why's that? The reason that passwd should be in /bin is because its necessary,
even if /usr couldnt be mounted. If you use symlinks, /usr still needs to be
mounted. And if you mean that /usr/bin/passwd -> /bin/passwd, then "why?"

I don't really think there are tools that rely on passwd being in
/usr/bin/passwd, and if there are, they're Bad :)
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-31 18:19:50 UTC
We follow FHS, for which the spec can be found at:

  http://www.pathname.com/fhs/

According to extracts at bottom, /bin are used for system critical utilities
needed in *single* user mode until /usr are mounted.  /usr/bin on the other
hand are for general utilities/whatever not needed in single user moded.

Thus we have passwd, like Redhat, Mandrake, etc in /usr/bin, and *NOT* in
/bin, as it is not needed in single user mode to get /usr and the rest up
and running, or to repair the system (cases where you may need passwd,
/usr, etc is usually still in tackt, if not, you have bigger problems than
your current passwd :/).

Thus, this is invalid.

-------------------------------------------------
3.4 /bin : Essential user command binaries (for use by all users)
3.4.1 Purpose

/bin contains commands that may be used by both the system administrator and by
users, but which are required when no other filesystems are mounted (e.g. in
single user mode). It may also contain commands which are used indirectly by
scripts.[footnote 1]

--------------------------------------------------
4.5.2 Specific Options
The following directories, or symbolic links to directories, must be in
/usr/bin, if the corresponding subsystem is installed:

"/usr/bin"
mh

"Binaries that are not needed in single-user mode"
Commands for the MH mail handling system (optional)