有趣的sudo 和su

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
wkt
帖子: 849
注册时间: 2006-09-07 22:51
联系:

#61

帖子 wkt » 2007-05-30 12:44

Isbasic 写了:非admin组的用户可以sudo吗?
有可能!!!
头像
tigerdoo
帖子: 327
注册时间: 2006-11-17 23:02

#62

帖子 tigerdoo » 2007-06-10 20:53

LZ有点偏执
IBM T41-P4M 1.5G/1GB/40GB HDD/DVD/14.1TFT/IPW2100 & 10-100M
OS:Xubuntu 11.10
生活就是折腾
活在成都
使用update-rc.d管理Linux服务
头像
gaobuhaoya
帖子: 28
注册时间: 2007-06-26 4:29

#63

帖子 gaobuhaoya » 2007-06-27 22:12

精神有问题的楼主!
头像
gaobuhaoya
帖子: 28
注册时间: 2007-06-26 4:29

#64

帖子 gaobuhaoya » 2007-06-27 22:13

都没有做一下我们说的,就开始以自己的理解去说人家!
wkt
帖子: 849
注册时间: 2006-09-07 22:51
联系:

#65

帖子 wkt » 2007-06-27 22:14

gaobuhaoya 写了:精神有问题的楼主!
你最好说是什么问题?
我好去医院看看!!
wjjleopard
帖子: 27
注册时间: 2007-06-25 2:13

#66

帖子 wjjleopard » 2007-07-03 22:53

有趣的讨论,momo楼主
wjjleopard
帖子: 27
注册时间: 2007-06-25 2:13

#67

帖子 wjjleopard » 2007-07-03 22:54

karron 写了:你去试试windows的管理员是否可以修改别的管理员的密码.

看来你根本不明白 有个用户群组 这个东西. 只要是系统管理员群组的人都可以对系统进行完全的控制.

你可以再新建一个用户,看看它是否可以用sudo,看看它是否可以修改root的密码.

对于你的兴趣,大家已经很明白的告诉你了,你的这个用户不是什么普通用户,它是一个具有和root基本上相同的权限的用户,只不过在进行系统管理操作之前,必须用sudo. 它和root就是你系统的两个天神,只不过这个天神怕自己一不小心误操作把自己的世界给搞坏了,于是规定自己,在可能把系统搞坏的动作之前,必须多加一个确认.
very good!
头像
wcb552101315
帖子: 66
注册时间: 2007-06-29 22:38

#68

帖子 wcb552101315 » 2007-07-10 0:09

:D
生命是琉璃瓶里的冰冻玫瑰,而我,是她坟前燃起的一柱香
wkt
帖子: 849
注册时间: 2006-09-07 22:51
联系:

#69

帖子 wkt » 2007-07-11 0:16

wcb552101315 写了::D
不知道就挂个这个
有什么意思?
amaotion
帖子: 115
注册时间: 2007-06-20 10:27
联系:

#70

帖子 amaotion » 2007-07-17 18:36

学习中。看来有好多东西不懂啊。
头像
qianwx
帖子: 730
注册时间: 2006-07-08 14:41

#71

帖子 qianwx » 2007-07-22 22:11

LZ,系统安装时创建的那个用户实际上属于administrators组,也就是系统管理员组别,就组别而言,这个组别是用户可用的最高级别组别,在这个组内的用户其权利实际上仅仅只是稍低于root用户,而root用户则是linux系统最高级别的用户,这个用户能干一切想干的事情,但无论如何,该用户也是属于administrators组,因此,只要是属于管理员组的用户都可以拥有修改root用户密码的权利!!!不过,个人认为这似乎确实不够好,低一级用户可以修改高一级用户的密码似乎总有点奇怪啊。。(就严格意义上来说,root用户确实高同组中其他用户一个级别吧)
Enigma
帖子: 209
注册时间: 2007-06-01 22:11

#72

帖子 Enigma » 2007-07-24 13:57

wkt 写了:2楼
//
说明一下:普通用户受限太多了,我不能忍受。呵呵!!
////#
实际上这样是非常危险的,一次输入错误就可能毁掉系统
头像
tianping
帖子: 278
注册时间: 2007-08-26 15:57

#73

帖子 tianping » 2007-09-14 18:36

哇,06年的帖子~~~~
(时间: 2006-9-21 周四, 22:57 标题: 有趣的sudo 和su)

建议查看一下 info sudo 和 gedit /etc/sudoers
另:建一个普通用户去运行sudo就没有权限。

------------------
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‐
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).…………

------------------
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults

Defaults !lecture,tty_tickets,!fqdn

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
头像
ving
帖子: 3741
注册时间: 2007-07-29 16:47
来自: 地精魔法学院

#74

帖子 ving » 2007-09-14 22:26

karron 写了:唉,楼主有时间看看上面给的链接,楼上说的也很好.你的这个用户本来就不适普通用户,他本身就是具有管理员权限的用户.

另外,如果有人能够接触到你的物理机器,就意味着的再强的密码都能够被搞定. 比如用livecd,用recovery模式进入的系统,想怎么改你的东西都可以.不一定要破解你的密码的.
在windows里面进入安全模式也是不需要密码的.
谁说windows里进安全模式不需要密码?
是你自己没设好不好!真晕
Nakedpig
帖子: 154
注册时间: 2006-06-28 21:53

#75

帖子 Nakedpig » 2007-09-26 2:03

楼主已经是“思想开放”了。好事。别征伐了。
存在必有它存在的理由,不明白大家讨论一下无所谓。
但是用不用它各人选择,
咸鱼白菜各有所爱嘛。
每个人都有选择的权利,包括生和死。
回复