|
- 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 -
- su vs sudo -s vs sudo -i vs sudo bash - Unix Linux Stack Exchange
su is equivalent to sudo -i and simulates a login into the root account Your working directory will be root, and it will read root's profile etc The prompt will change from $ to #, indicating you have root access sudo -s launches a shell as root, but doesn't change your working directory sudo bash where bash is command to run with sudo
- 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)
- 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
- su - user Vs sudo su - user - Unix Linux Stack Exchange
Secondly: sudo -i and su - do the same thing (su - is equivalent to su --login), using different authorization mechanism: su verifies the password for the root account, while sudo verifies the password for your current user account and also verifies that your current user account is allowed to run administrative operations according to the etc sudoers policy This is the reason sudo is
- 如何学习草图大师 sketchup? - 知乎
如何学习草图大师 sketchup? 1,有autocad基础 (会画简单的平面及标注等),想学su,做点家装的3D效果,咨询一下怎么入门? 2,有哪些可用的网络资源,电子书或在线课程等等?… 显示全部 关注者 4,122 被浏览
- command line - difference between sudo su - and su - - Ask Ubuntu
The difference between sudo su - and su - is this: With sudo su - you will be asked to authenticate with your user password (assuming you have sudo privileges) If you have sudo privileges with no password, then you will not be prompted for a password and instead will be logged into root immediately With su - you will be asked to authenticate with the root password This only works if you
- sudo su - vs sudo -i vs sudo bin bash - when does it matter . . .
sudo su - This time it is a login shell, so etc profile, profile and bashrc are executed and you will find yourself in root's home directory with root's environment sudo -i It is nearly the same as sudo su - The -i (simulate initial login) option runs the shell specified by the password database entry of the target user as a login shell
|
|
|