Results 1 to 3 of 3
I seem to remember someone telling me about root login.
Now someone is telling me differnet.
I thought the - sets the enviroment where as the non dash doesn't.
Is ...
- 06-12-2007 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 135
Question about logins
I seem to remember someone telling me about root login.
Now someone is telling me differnet.
I thought the - sets the enviroment where as the non dash doesn't.
Is there a difference between logging in as su and su - ??????
thanks
Mace
- 06-12-2007 #2
check the difference yourself.
compare the PATH of both. su - adds path of folders accessible by root user only.Code:su echo $PATH exit su - echo $PATH
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-12-2007 #3forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 17,779
Yes, there is. You can read up on su options and explanations here:
Linux Command Directory: su
Edit: ahhh... Casper is a bit quicker once again!
oz
→ new users: read this first
→ no private messages requesting computer support - post them on the forums!


Reply With Quote

