如何让新用户具有SUDO功能
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 27
- 注册时间: 2009-07-28 16:07
如何让新用户具有SUDO功能
root@bt:~# vim /etc/group
root@bt:~# login out
Password:
Login incorrect
bt login: sunny
Password:
Last login: 二 9月 22 16:32:49 CST 2009 on pts/1
Linux bt 2.6.28.1 #2 SMP Wed Feb 4 21:50:02 EST 2009 i686
++ WELCOME TO THE BACKTRACK LIVE CD ++
[*] To start Networking - "/etc/init.d/networking start"
[*] To start KDE - "startx"
[*] To start FVWM - "bt4-crystal"
[*] http://www.remote-exploit.org/
No directory, logging in with HOME=/
sunny@bt:/$ sudo apt-get update
sudo: must be setuid root
sunny@bt:/$ exit
logout
root@bt:~# groups sunny
sunny root adm
root@bt:~# 后来我把/etc/group 下 SUNNY的GID改成4也不行,就是依然没有SUDO功能,清高手赐教
root@bt:~# login out
Password:
Login incorrect
bt login: sunny
Password:
Last login: 二 9月 22 16:32:49 CST 2009 on pts/1
Linux bt 2.6.28.1 #2 SMP Wed Feb 4 21:50:02 EST 2009 i686
++ WELCOME TO THE BACKTRACK LIVE CD ++
[*] To start Networking - "/etc/init.d/networking start"
[*] To start KDE - "startx"
[*] To start FVWM - "bt4-crystal"
[*] http://www.remote-exploit.org/
No directory, logging in with HOME=/
sunny@bt:/$ sudo apt-get update
sudo: must be setuid root
sunny@bt:/$ exit
logout
root@bt:~# groups sunny
sunny root adm
root@bt:~# 后来我把/etc/group 下 SUNNY的GID改成4也不行,就是依然没有SUDO功能,清高手赐教
- adagio
- 论坛版主
- 帖子: 22110
- 注册时间: 2008-02-17 23:47
- 来自: 美丽富饶的那啥星球
Re: 如何让新用户具有SUDO功能
关键是/etc/sudoers这个文件里要有你得账号
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
-
- 帖子: 27
- 注册时间: 2009-07-28 16:07
Re: 如何让新用户具有SUDO功能
已经在ADM组里了
root@bt:~# vim /etc/sudoers
root@bt:~# groups sunny
sunny root adm
root@bt:~#
sunny这个用户属于三个组,SUNNY ROOT ADM,此外,我把SUDOERS里ROOT下加了一行还是不行,真是邪门了,大虾请看
# /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.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
sunny ALL=(ALL) ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
root@bt:~# vim /etc/sudoers
root@bt:~# groups sunny
sunny root adm
root@bt:~#
sunny这个用户属于三个组,SUNNY ROOT ADM,此外,我把SUDOERS里ROOT下加了一行还是不行,真是邪门了,大虾请看
# /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.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
sunny ALL=(ALL) ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
- tenzu
- 论坛版主
- 帖子: 36924
- 注册时间: 2008-11-21 20:26
-
- 帖子: 27
- 注册时间: 2009-07-28 16:07
Re: 如何让新用户具有SUDO功能
人工顶上去 ,郁闷ING
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中
Re: 如何让新用户具有SUDO功能
sudo?
root只能有一个。
root只能有一个。
-
- 帖子: 4
- 注册时间: 2006-06-14 11:43
Re: 如何让新用户具有SUDO功能
试试加到admin组?
-
- 帖子: 11
- 注册时间: 2009-10-10 16:01
Re: 如何让新用户具有SUDO功能
呵呵,求解!学习中!!!!
- ljweb
- 帖子: 703
- 注册时间: 2008-04-09 13:27
- 联系:
Re: 如何让新用户具有SUDO功能
重新建立个用户,然后再加到ADmin组?
--------------------------------------------------
--------------------------------------------------
--------------------------------------------------