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
- 139
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
- 18,091
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 members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.


Reply With Quote

