[问题]sudo使用的是超级用户权限,要求的密码怎么是当前用户的

软件和网站开发以及相关技术探讨
主题已锁定
a0147520
帖子: 147
注册时间: 2007-10-04 15:23

[问题]sudo使用的是超级用户权限,要求的密码怎么是当前用户的

#1

帖子 a0147520 » 2008-03-07 4:29

如题
头像
windwiny
帖子: 2254
注册时间: 2007-03-13 17:26

#2

帖子 windwiny » 2008-03-07 8:10

/etc/sudoers 里没有设置 !rootpw 选项
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15

#3

帖子 iblicf » 2008-03-07 8:48

sudo = I do as root , so need my passwd
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
联系:

Re: [问题]sudo使用的是超级用户权限,要求的密码怎么是当前用户的

#4

帖子 dbzhang800 » 2008-03-07 9:00

a0147520 写了:如题
你安装系统时设置的第一个用户,其实并不是普通的用户。
并不是所有用户都能用sudo的
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

#5

帖子 yysq009 » 2008-03-07 9:25

sudo 并不是真正的超级用户, ROOT用户可以通过SUDO 来定义 每个用户通过SUDO 所能执行的命令。。。
一般 个人用户 没有太多的权限设置问题 所以SUDO 就等于 超级用户了。。。。

Do as you would be done by !
头像
qlhn
帖子: 736
注册时间: 2006-08-25 10:37
联系:

#6

帖子 qlhn » 2008-03-13 13:15

原来如此.
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#7

帖子 BigSnake.NET » 2008-03-13 13:16

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).
man sudo
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
pigflyjky
帖子: 20
注册时间: 2008-03-14 17:39

I SEE

#8

帖子 pigflyjky » 2008-03-23 20:26

原来如此
pnpn
帖子: 4
注册时间: 2008-03-17 12:45

#9

帖子 pnpn » 2008-03-26 12:02

是出于安全性的考虑吧
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

#10

帖子 冲浪板 » 2008-03-26 12:34

因为root不可能把他自己的口令给你,但是他同意“你”执行某些东西,而怎么知道是“你”在执行?因为你有你的口令哇?

这个解释卡通吧。
a0147520
帖子: 147
注册时间: 2007-10-04 15:23

了解了~~~~

#11

帖子 a0147520 » 2008-04-13 15:42

解了~~~~
主题已锁定