LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 690|回复: 7

无法SU..ROOT

[复制链接]
发表于 2003-11-27 21:44:57 | 显示全部楼层 |阅读模式
OPENBSD3.4

无法使用SU..也无法使用REBOOT和SHUTDOWN..
我怎么办...就是我怎么把一般用户加入到WHEEL
:help

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2003-11-27 22:36:14 | 显示全部楼层

man useradd,
man sudo,
man sudoers
发表于 2003-11-28 07:46:56 | 显示全部楼层
应该是sudousers中没有你现在使用的用户名或组可以su root的权限!
发表于 2003-11-28 11:18:29 | 显示全部楼层
必须是wheel组的帐户才能su为root
发表于 2003-11-28 16:29:15 | 显示全部楼层
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!
 楼主| 发表于 2003-11-28 20:32:56 | 显示全部楼层
thanks!

resolve a problem is not merely a key...

i am english was so poor...
很多时候都是硬着头皮看...
 楼主| 发表于 2003-11-29 17:57:09 | 显示全部楼层

o

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.????
发表于 2003-11-29 18:01:36 | 显示全部楼层
that's good, you find the anwser 正常工作情况下避免使用root, 只要sudo 就可以了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表