linux_wiki:log_in_and_switch_users_in_multiuser_targets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux_wiki:log_in_and_switch_users_in_multiuser_targets [2016/02/28 22:51]
billdozor created
linux_wiki:log_in_and_switch_users_in_multiuser_targets [2019/05/25 23:50] (current)
Line 3: Line 3:
 **General Information** **General Information**
  
-About this page/how-to/script+Targets are the new "runlevels" equivalent if you are coming from RHEL 6. You need to be able to switch users.
  
 ---- ----
Line 13: Line 13:
 </code> </code>
  
-Switch User to root+\\ 
 +Switch User
 <code bash> <code bash>
-su -+su - <username>
 </code> </code>
   * -, -l, --login => Load login profile (~/.bash_profile)   * -, -l, --login => Load login profile (~/.bash_profile)
   * When no username is specified after options (such as -), root is assumed   * When no username is specified after options (such as -), root is assumed
 +  * **Always use a login shell when switching users (su -)**.
  
 +\\
 Types of profiles Types of profiles
   * ~/.bash_profile => Execute upon login shells   * ~/.bash_profile => Execute upon login shells
  • linux_wiki/log_in_and_switch_users_in_multiuser_targets.1456717908.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)