Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    141

    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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    check the difference yourself.
    Code:
    su 
    echo $PATH
    exit
    su  -
    echo $PATH
    compare the PATH of both. su - adds path of folders accessible by root user only.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by mace View Post
    Is there a difference between logging in as su and su - ?
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •