copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
What are the differences between su, sudo -s, sudo -i, sudo su? sudo su Asks your password, becomes root momentarily to run su as root sudo su - Asks your password, becomes root momentarily to run su - as root So in this case you are running su using sudo and you don't have to know root's actual password The results are same as su and su -
Why do we use su - and not just su? - Unix Linux Stack Exchange The main difference is : su - username sets up the shell environment as if it were a clean login as the specified user, it access and use specified users environment variables, su username just starts a shell with current environment settings for the specified user If username is not specified with su and su -, the root account is implied as default
What is the difference between su - and su root? [duplicate] 8 su - switches to the superuser and sets up the environment so that it looks like they logged in directly su root switches to the user named root and doesn't simulate directly logging in If the superuser is named root, then su and su root are equivalent (and don't simulate directly logging in), as are su - and su - root (which do)
What is the default root password? - Ask Ubuntu While you can create a password for the root account allowing you to log in as root with su, there are some distinct benefits to using sudo Using sudo Sudo is an alternative to giving people a root password in order to perform superuser duties In a default Ubuntu install the person who installed the OS is given "sudo" permission by default
sudo - How do I login as root? - Ask Ubuntu In that case, use: sudo su - to execute a login shell as root after auhenticating sudo, and that shell will not need sudo to run admin commands To return to the normal user shell, insert the command exit
Is there a single line command to do `su`? - Ask Ubuntu Here's why: If you write a password in a command like su <username> -p <password>, it would be stored in plain text in your bash history This is certainly a huge security issue If you need to run commands with su (or sudo) in an automated way, write a shellscript containig the commands without su or sudo and run su <username> script sh
Whats the difference between `su -` and `su --login`? - linux From su 's man page: For backward compatibility, su defaults to not change the current directory and to only set the environment variables HOME and SHELL (plus USER and LOGNAME if the target user is not root) It is recommended to always use the --login option (instead of its shortcut -) to avoid side effects caused by mixing environments -, -l, --login Start the shell as a login shell