what does su -l do...and why would you have to sudo it
hi guys,
saw a video where the instructor wanted to login as root he went... sudo su -l i see the -l option is -l, --login Start the shell as a login shell with an environment similar to a real login: but i dont understand the significance of this...why couldnt you just go su login |
You could but then you're pressing more buttons which takes time and time = money.
|
It is possible that the root account on the system being used was locked (ie, did not have a password set) so `sudo` is needed for the non-root user's password to be accepted.
Also, just using `su` would not source the root account's shell profile (~/.bash_profile) or /etc/bash.bashrc and any application settings in /etc/profile.d/*.sh |
All times are GMT -5. The time now is 09:27 AM. |