rhl-gsg(EN)-9-Print-RHI(2003-02-20T01:05), Section 13.4. Changing Directories
with cd, bottom of page 92:
|To change to the root login and root directory, use the su command.
* "su" does not change the current directory at all
* Experience from #redhat indicates that newbies often run "su" and then
wonder why they can't use commands from /sbin or /usr/sbin (telinit,
ifconfig, route...). While the "Tip" paragraph describes the technical
difference, it does not explain that some commands are not available
without specifying the full path when "su -" is not used.
Please consider changing the manuals to always recommend "su -"
in favor of "su".
Locations that recommend "su", found via grepping the HTML version,
(assuming it has been always properly marked as <command>su</command>):
... but remember a portion of the command, you can su to root, then at ...
... To update the database manually, log in as root (type su at a a shell
s1-navigating-cd.html: The reference at the top of the bug report
... when you are denied permission is to su to root, as you learned earlier. ...
... switch to the root user by running the following command: "su" After
... If you're in your user account, su to root by typing su. Now, type ...
... log in as root (type su and then enter the root password) ...
... type the following at the command line: "su" Press Enter. ...
su and su -: The command su gives you access.... [should note that some
commands are not available without using full path]
I have found also one occurence of "su" in the IG:
... become root by typing the su command. Now, type ...
Thank you for the suggestion. After conferring with team members, we do agree
that `su -` is the better solution. Thank you also for finding the places in the
documentation where `su` should be changed. I am closing this bug with the
resolution that this transition to `su -` from `su` will appear in a future
release of the document.
Thanks again for your feedback.
The examples of <command>su</command> that should be changed to <command>su
-</command> have been fixed for this manual.
Thanks again for taking the time to report this and for helping us to improve
The Red Hat Enterprise Linux Documentation Team