sudo /bin/su nobody

Steve Beaty beaty at emess.mscd.edu
Tue Sep 24 11:40:41 EDT 2002


Hi all,

	i'm sure i'm missing something obvious, but here goes.  i'm trying
	to run a command as "nobody".  in /etc/sudoers i have:

---------------------------------------------------------------------------
beaty emess=NOPASSWD: /bin/su nobody *
---------------------------------------------------------------------------

	/etc/passwd has:

---------------------------------------------------------------------------
nobody:x:99:99:Nobody:/:/sbin/nologin
---------------------------------------------------------------------------

	when i try to run a command as nobody i get:

---------------------------------------------------------------------------
% sudo /bin/su nobody -c ls
This account is currently not available.
---------------------------------------------------------------------------

	which is the output expected from nologin.  i really don't want to
	login, just run a command with nobody's permissions.  i can change
	nobody's login shell to /bin/bash or whatever, but i'd rather not
	as i'm developing a small system for people who may not be allowed
	to change the password file.  i've read TFM :-) and poked around
	for the correct incantation, but to no avail.

	what obvious am i missing?  many thanks,

-- 
Dr. Steve Beaty (B80)                                 Associate Professor
Metro State College of Denver                        beaty at emess.mscd.edu
VOX: (303) 556-5321                                 Science Building 134C
FAX: (303) 556-5381                         http://clem.mscd.edu/~beatys/



More information about the sudo-users mailing list