Shell confusion
Garry T. Williams
gtwilliams at gmail.com
Fri Mar 13 04:08:04 UTC 2009
On Thursday 12 March 2009 21:25:27 Dave Bolt IT Solutions wrote:
> When I start a terminal as dave I get a prompt [dave at Test-Host ~]$
> When I do su amandabackup I get a prompt bash-3.2$
^^^^^^^^^^^^^^^
Check the manual page for su(1).
If you had entered `su - amandabackup', that user's login scripts
would have been run.
In general, using su without its `-' parameter is a bad idea[*]
especially when switching to the root login.
______________
[*] Unless, of course, you know why you want to do that.
--
Garry T. Williams --- +1 678 656-4579
More information about the fedora-list
mailing list