- 论坛徽章:
- 0
|
打算让一个普通用户test拥有关机和配置无线网络的权限,用usermod来指定了auth和profile
# cat /etc/user_attr
#
# Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
#
# /etc/user_attr
#
# user attributes. see user_attr(4)
#
#pragma ident "@(#)user_attr 1.1 03/07/09 SMI"
#
adm::::profiles=Log Management
lp::::profiles=Printer Management
root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no
?::::type=role;profiles=All
stevens::::type=normal;auths=solaris.network.*
test::::type=normal;auths=solaris.system.shutdown;profiles=System Administrator
但是当我用test用户登陆执行shutdown时
$ shutdown
/usr/sbin/shutdown: Only root can run /usr/sbin/shutdown
请教这是什么问题?而且test用户也没有权限来配置接口
ifconfig: plumb: iwi0: Permission denied
wificonfig: set permitted priviledge: Not owner
/sbin/dhcpagent: error: must be super-user
ifconfig: unable to start /sbin/dhcpagent |
|