How do I login as username in Linux?

How do I login as username in Linux?
Answer
To provide sudo access, the user has to be added to the sudo group. The su command lets you switch the current user to any other user. If you need to run a command as a different (non-root) user, use the
–l [username] option to specify the user account.
 

Tìm kiếm

Back
Top