How do I login as another user?



  • $ su user_name
    

    Where user_name is the name of the user you want to login as. Just the su without any user_name will prompt for the superuser password (root)

    su used as below will read the user_name environment setting

    $ su - user_name
    

Log in to reply
 

© Lightnetics 2024