+ -
当前位置:首页 → 问答吧 → 无法SU..ROOT

无法SU..ROOT

时间:2003-11-28

来源:互联网

OPENBSD3.4

无法使用SU..也无法使用REBOOT和SHUTDOWN..
我怎么办...就是我怎么把一般用户加入到WHEEL
上传的图像
openbsd.png (6.2 KB, 59 次查看)

作者: feelfirst   发布时间: 2003-11-28


man useradd,
man sudo,
man sudoers

作者: werix   发布时间: 2003-11-28

应该是sudousers中没有你现在使用的用户名或组可以su root的权限!

作者: rainren   发布时间: 2003-11-28

必须是wheel组的帐户才能su为root

作者: lhmwzy   发布时间: 2003-11-28

man useradd -> add user to wheel
man sudo -> to know how sudo works
man sudoers -> know how to configure a sudoer
I think this is the best way to reponse a user instead of feed him a "Show-O-Matic" solution!

作者: werix   发布时间: 2003-11-28

thanks!

resolve a problem is not merely a key...

i am english was so poor...
很多时候都是硬着头皮看...

作者: feelfirst   发布时间: 2003-11-29

10.1 - Why does it say that I'm in the wrong group when I try to su root?
Existing users must be added to the "wheel" group by hand. This is done for security reasons, and you should be cautious with whom you give access to. On OpenBSD, users who are in the wheel group are allowed to use the su(1) userland program to become root. Users who are not in "wheel" cannot use su(1). Here is an example of a /etc/group entry to place the user ericj into the "wheel" group.

If you are adding a new user with adduser(8), you can put them in the wheel group by answering wheel at "Invite user into other groups:". This will add them to /etc/group, which will look something like this:

wheel:*:0:root,ericj

If you are looking for a way to allow users limited access to superuser privileges without putting them in the "wheel" group, use sudo(8).

在我的ETC中好象并没有group.????

作者: feelfirst   发布时间: 2003-11-29

that's good, you find the anwser 正常工作情况下避免使用root, 只要sudo 就可以了.

作者: werix   发布时间: 2003-11-29