Bug 104398 - Please recommend "su -" instead of "su"
Summary: Please recommend "su -" instead of "su"
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rhl-gsg   
(Show other bugs)
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: John Ha
QA Contact: John Ha
Depends On:
TreeView+ depends on / blocked
Reported: 2003-09-14 20:53 UTC by Miloslav Trmac
Modified: 2014-08-04 22:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-09-23 15:35:28 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Miloslav Trmac 2003-09-14 20:53:28 UTC
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
* "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,
rhl-gsg(EN)-9-HTML-RHI (2003-02-20T01:05)
(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
prompt ...
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
entering ...
 ... 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:
rhl-ig-x86(EN)-9-HTML-RHI (2003-01-16T18:24-0400):
 ... become root by typing the su command. Now, type ...

Comment 1 John Ha 2003-09-23 15:35:28 UTC
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.

Comment 2 Sandra Moore 2003-09-23 16:06:59 UTC
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
our documentation.

Best regards,
The Red Hat Enterprise Linux Documentation Team

Note You need to log in before you can comment on or make changes to this bug.