Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Apr 2008 09:25:50 -0500
From:      Tim Nelson <tnelson@fudnet.net>
To:        Aijaz Baig <aijaz.abaig@gmail.com>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: sudeors file not affecting user privileges
Message-ID:  <47FA2EEE.9050807@fudnet.net>
In-Reply-To: <101a1afc0804070654g7f4d09b6re3a8a6e928b0974b@mail.gmail.com>
References:  <101a1afc0804070654g7f4d09b6re3a8a6e928b0974b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The command you're using does not appear to have "sudo" in front of it...

Aijaz Baig wrote:
> Hello,
>
> I would like 'normal users' to be able to issue the shutdown command. For
> that reason I modified the 'sudoers' file and I uncommented the last line
> which now reads:* *
> *%users localhost=/sbin/shutdown -h now*
>
> However that didn't work. Then I thought
> maybe the users above refer to some user defined group called 'users. So I
> first created a group called 'users' and added 'masud' (one of my users) to
> that group. Still No luck..
>
> Then I read a bit about how does one actually add stuff to that file and
> added(appended) the following to the file:* masud ALL=/sbin/shutdown -h now*
>
> Well..nothing yet..I always log in as as 'masud' and try to see if shutdown
> works (by issuing *shutdown -h now* from his account) and I get
> */sbin/shutdown:
> Permission denied
> *
> Well..How do I go about it...
>
> Please do let me know.
>
> Hope to hear from you soon,
>
> Best Regards,
> Aijaz Baig.
> _______________________________________________
> freebsd-sparc64@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
> To unsubscribe, send any mail to "freebsd-sparc64-unsubscribe@freebsd.org"
>   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47FA2EEE.9050807>