run as any user *except* root
KESSELER Georges
kesseler at Cetrel.LU
Tue Jan 20 12:14:04 EST 2004
This electronic message is not binding on its sender nor on Cetrel S.C.
Any use of information of this mail except the use by the addressee
within his or her business relation with Cetrel is strictly forbidden
CETREL S.C. L-2956 Luxembourg; Tel: 00352 35566-1; http://www.cetrel.lu
=======================================================================
> > I tried this but it does not work (version 1.6.6)
> > myuser mymachine = (! root) /usr/bin/pwd
> >
> > mymachine(myuser): sudo -l
> > (!root) /usr/bin/pwd
>
> The '!' is interpreted literally as part of the username (nothing
well why does it interpret then "! root" as "!root", where did the
space in that username go? :-)
> says you can't have a username that starts with '!').
Hmm, the syntax notation claims it does...
User_Spec ::= User_list Host_List '=' Cmnd_Spec_List \
(':' User_Spec)*
Cmnd_Spec_List ::= Cmnd_Spec |
Cmnd_Spec ',' Cmnd_Spec_List
Cmnd_Spec ::= Runas_Spec? ('NOPASSWD:' | 'PASSWD:')? Cmnd
Runas_Spec ::= '(' Runas_List ')'
Runas_List ::= Runas_User |
Runas_User ',' Runas_List
Runas_User ::= '!'* username |
'!'* '#'uid |
'!'* '%'group |
'!'* +netgroup |
'!'* Runas_Alias
Georges
More information about the sudo-users
mailing list