root密码是随机的!?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- goldfox_79
- 帖子: 2004
- 注册时间: 2005-10-16 8:26
- 来自: 地球
- qiang_liu8183
- 论坛版主
- 帖子: 10699
- 注册时间: 2006-09-10 22:36
- 系统: Arch Debian
- 来自: 北京
- xiehuoli
- 帖子: 5941
- 注册时间: 2006-06-10 8:43
- 来自: 中国 CS
- yzwlinux
- 帖子: 79
- 注册时间: 2006-10-19 20:29
- 来自: swu
- 联系:
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
viewtopic.php?t=27590
BigSnake.NET 写了:剛才去看了一下 ,果然不是隨機goldfox_79 写了:我不知道这个关于root密码是随机的说法是怎么传起来的,看正版说明!BigSnake.NET 写了:你才是误人子弟goldfox_79 写了:谁给你讲的,误人子弟啊!孤笑客 写了:一开始ROOT密码是随机的,那我怎么改??
刚一装好的ubuntu,root帐号的密码=你在安装过程中创建的那个帐号的密码!
root密码是随机的
取得root权限,请用sudo
bigsnake-net@bigsnake-host:~$ sudo cat /etc/shadow | grep root
root:*:<不重要>:<不重要>:<不重要>:<不重要>:::
第2個域的 * 說明賬戶被禁用 ,而不是加了隨機密碼
那麽 sudo 是怎麽回事呢?
$man sudo
然後看這裏
DESCRIPTION
sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file. The real and effective
uid and gid are set to match those of the target user as specified in
the passwd file and the group vector is initialized based on the group
file (unless the -P option was specified). If the invoking user is
root or if the target user is the same as the invoking user, no pass‐
word is required. Otherwise, sudo requires that users authenticate
themselves with a password by default (NOTE: in the default configura‐
tion this is the user’s password, not the root password). Once a user
has been authenticated, a timestamp is updated and the user may then
use sudo without a password for a short period of time (15 minutes
unless overridden in sudoers).
注意
(NOTE: in the default configura‐
tion this is the user’s password, not the root password).
所以sudo用的是 運行sudo的用戶的密碼
至于所謂的控制台登錄,經測試再控制台(CTRL+ALT+F1)用root登錄,是肯定失敗的,su程序的表現也是如此
^_^ ~~~
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
- Amankwah
- 帖子: 624
- 注册时间: 2006-10-16 7:24
- 来自: 安康/西安/广州
- 联系:
- SuperWar3Fan
- 帖子: 1263
- 注册时间: 2006-05-20 6:25
- 来自: 山东淄博
- 联系:
- Amankwah
- 帖子: 624
- 注册时间: 2006-10-16 7:24
- 来自: 安康/西安/广州
- 联系:
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系: