|
- 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
I use su -- when I'm in a directory as a regular user but want to switch to root and remain in same directory after the switch When you use su - it switches the user to root and also takes you to root which is the root home directory
- 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)
- 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
- bash - su options - running command as another user - Unix Linux . . .
I was wondering how to run a command as another user from a script I have the script's owner set as root I also have the following command being run within the script to run the command as the h
- How do I set the root password so I can use su instead of sudo?
11 If you still want to use su after reading the warnings in the question, there is no need to set a root password Just do sudo su and you're on your way with your regular password
- 有哪些可以免费下载sketchup模型的地方? - 知乎
1、毕马汇 网址: SketchUp模型库 - SU模型下载 - 毕马汇 NBimer SU模型数量最多的网站,模型质量也高,关键是免费。基本只要找SU,上这里就可以了。里面多为建筑景观模型以及室内成套模型,景观、建筑、室内常用。不太如意的是每日免费下载额度只有三个,超过三个就得自己想办法增加下载额度了
- 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
|
|
|