sudeors file not affecting user privileges
aijaz.abaig at gmail.com
Mon Apr 7 21:13:32 UTC 2008
Well..thanks for the advice. However even after using a sudo to issue the
command from the users account, I get the same error message as before which
*sudo: /usr/local/etc/sudoers is mode 0644, should be 0440
*Well..what exactly is mode 0644 and how can I make sure that my users who
have been permitted to excute this command are in mode 0440? What exactly
are these modes and what do they mean?
Will something like *chmod 0440 sudoers* work to solve this issue? I am a
bit wary of experimenting with this so Id rather ask before doing it?
Hope to hear from you guys
On Mon, Apr 7, 2008 at 4:31 PM, John Baldwin <jhb at freebsd.org> wrote:
> On Monday 07 April 2008 09:54:24 am Aijaz Baig wrote:
> > Hello,
> > I would like 'normal users' to be able to issue the shutdown command.
> > that reason I modified the 'sudoers' file and I uncommented the last
> > 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
> > first created a group called 'users' and added 'masud' (one of my users)
> > 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
> > 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,
> You need to use 'sudo /sbin/shutdown -h now'. Sudoers is used by sudo and
> have to use sudo to invoke the command for sudeors to have an effect.
> John Baldwin
More information about the freebsd-sparc64