|
- 知乎 - 有问题,就会有答案
知乎,中文互联网高质量的问答社区和创作者聚集的原创内容平台,于 2011 年 1 月正式上线,以「让人们更好的分享知识、经验和见解,找到自己的解答」为品牌使命。知乎凭借认真、专业、友善的社区氛围、独特的产品机制以及结构化和易获得的优质内容,聚集了中文互联网科技、商业、影视、时
- 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
- 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)
- 发现 - 知乎
夫妇「收养」孤儿 16 年未登记,男孩被判无权继承百万遗产,男孩争取继承权合理吗?收养关系如何认定?
- Why am I getting Authentication failure when running the su command . . .
I am having problems with the su command I know my password and I am typing it correctly, but su indicates Authentication failure So I checked on the internet and then went into recovery mode and
- What is the difference between sudo and su -c
The difference between sudo and su is how they perform authentication: su prompts for the target user's password sudo checks whether the source user is authorized to run the command (the authorization is specified in etc sudoers) Depending on the configuration, it might prompt for the source user's password, both to mitigate the risk of an unattended console and to alert the user that
- 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 -
- How do I run a command as the system administrator (root)
su The su command exists on most unix-like systems It lets you run a command as another user, provided you know that user's password When run with no user specified, su will default to the root account Example: su -c 'service apache restart' The command to run must be passed using the -c option
|
|
|