Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, if you are logged in as user "kevin" and you want to switch to user "john" such that it mimicks an exact login for "john" (i.e. you are logged into john's home dir by default), what command do you use?
Answer
su - john
^^^ NOTE the user of the "-"

Question
In linux, if you are logged in as user "kevin" and you want to switch to user "john" such that it mimicks an exact login for "john" (i.e. you are logged into john's home dir by default), what command do you use?
Answer
?

Question
In linux, if you are logged in as user "kevin" and you want to switch to user "john" such that it mimicks an exact login for "john" (i.e. you are logged into john's home dir by default), what command do you use?
Answer
su - john
^^^ NOTE the user of the "-"
If you want to change selection, open document below and click on "Move attachment"

11. User Accounts and Ownerships
vironment variables will be set to jack , but all other environment variables will be inherited. su is, therefore, not the same as a normal login. To get the equivalent of a login with su , run <span>su - jack This will cause all initialization scripts (that are normally run when the user logs in) to be executed. [What actually happens is that the subsequent shell is started with a - in

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.