*BSD News Article 61405


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!in2.uu.net!news1.agis.net!agis!bounty.flash.net!usenet
From: mwilson@flash.net (Mike Wilson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: SUDO problems with FreeBSD 2.1
Date: 14 Feb 1996 17:02:46 GMT
Organization: FlashNet Communications
Lines: 47
Message-ID: <4ft4jm$b1o@bounty.flash.net>
NNTP-Posting-Host: drwho.flash.net
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.6



	I cannot seem to get sudo to work correctly on my system, here is my 
sudoers file:


#       User Alias specs
User_Alias      USERADMIN=bsmith
User_Alias      TECHSUPPORT=lheath3,eharper,jon,jonb,leethur,scott,michael
#
# Host alias specification
Host_Alias      SERVERS=defiant
# Cmnd alias specification
Cmnd_Alias      USERUTILS=/usr/bin/passwd,/bin/chmod,/usr/bin/chgrp
Cmnd_Alias      REBOOT=/sbin/reboot,/sbin/halt,/sbin/shutdown
Cmnd_Alias      USERMANAGEMENT=/sbin/deluser
# User specification
# Root can run anyting...
root    ALL=ALL
#
bsmith          ALL=USERUTILS,REBOOT,USERMANAGEMENT
TECHSUPPORT     ALL=USERUTILS


All the user bsmith gets is:

Sorry, sudo must be setuid root.

This error comes from the code section in sudo.c:
 
   if (geteuid() != 0) {
        (void) fprintf(stderr, "Sorry, %s must be setuid root.\n", Argv[0]);
        exit(1);
    }
 
located in main()


That is simply running the command sudo -l

	I have gotten the latest cu-sudo (1.4) and experince this problem. 
What can I do to correct this problem?

Anyone else run it?

Thanks, please email is possible.