root密码是随机的!?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
goldfox_79
帖子: 2004
注册时间: 2005-10-16 8:26
来自: 地球

root密码是随机的!?

#1

帖子 goldfox_79 » 2006-10-20 8:50

已被TH教导,发现是俺的理解有严重的错误
上次由 goldfox_79 在 2006-10-20 9:32,总共编辑 1 次。
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#2

帖子 stlxv » 2006-10-20 9:12

:shock:
PHP是最好的语言!不服来战!
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

#3

帖子 qiang_liu8183 » 2006-10-20 9:19

严重同意楼主的说法,谁再说我也跟他急!哈哈
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
头像
xiehuoli
帖子: 5941
注册时间: 2006-06-10 8:43
来自: 中国 CS

#4

帖子 xiehuoli » 2006-10-20 9:22

用户名ROOT
密码ROOT密码登录看看
是否能登录系统????
年轻没有失败! ! ! ! ! !
噢!有怪兽,有怪兽!
头像
yzwlinux
帖子: 79
注册时间: 2006-10-19 20:29
来自: swu
联系:

#5

帖子 yzwlinux » 2006-10-20 18:03

可以用 sudo passwd 这个命令更改
头像
爱国者黑客
帖子: 608
注册时间: 2006-10-01 14:34

#6

帖子 爱国者黑客 » 2006-10-20 18:06

我要跟你急!!!!!!!!!!!!!1 :lol:
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#7

帖子 BigSnake.NET » 2006-10-20 19:10

viewtopic.php?t=27590
BigSnake.NET 写了:
goldfox_79 写了:
BigSnake.NET 写了:
goldfox_79 写了:
孤笑客 写了:一开始ROOT密码是随机的,那我怎么改??
谁给你讲的,误人子弟啊!

刚一装好的ubuntu,root帐号的密码=你在安装过程中创建的那个帐号的密码!
你才是误人子弟

root密码是随机的
取得root权限,请用sudo
我不知道这个关于root密码是随机的说法是怎么传起来的,看正版说明!
剛才去看了一下 ,果然不是隨機
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
来自: 安康/西安/广州
联系:

#8

帖子 Amankwah » 2006-10-20 20:21

个人感觉现在用root登录的必要已经…… :lol:
读书取正,读易取变,读骚取幽,读庄取达,读汉文取坚,最有味卷中岁月。
与菊同野,与梅同疏,与莲同洁,与兰同芳,与海棠同韵,定自称花里神仙。
头像
SuperWar3Fan
帖子: 1263
注册时间: 2006-05-20 6:25
来自: 山东淄博
联系:

#9

帖子 SuperWar3Fan » 2006-10-21 11:10

其实没有必要知道root的密码。
因为你现在登录的帐号可以修改root的密码,自己修改一下就可以了。在“系统管理”-》“用户和组”里面,选上“显示所有用户”,把root的密码改一下就可以了!
头像
Amankwah
帖子: 624
注册时间: 2006-10-16 7:24
来自: 安康/西安/广州
联系:

#10

帖子 Amankwah » 2006-10-21 18:09

我感觉是不用修改了,直接用 sudo su -
用你当前的密码就可以变成root还管它root密码是啥啊!
读书取正,读易取变,读骚取幽,读庄取达,读汉文取坚,最有味卷中岁月。
与菊同野,与梅同疏,与莲同洁,与兰同芳,与海棠同韵,定自称花里神仙。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#11

帖子 BigSnake.NET » 2006-10-21 19:12

sudo -i
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
回复