Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2009 12:31:52 +0200
From:      Jonathan McKeown <j.mckeown@ru.ac.za>
To:        freebsd-questions@freebsd.org
Subject:   Re: SUID permission on Bash script
Message-ID:  <200908281231.52421.j.mckeown@ru.ac.za>
In-Reply-To: <87y6p4pbd0.fsf@kobe.laptop>
References:  <beaf3aa50908280124pbd2c760v8d51eb4ae965dedc@mail.gmail.com> <87y6p4pbd0.fsf@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 28 August 2009 10:54:19 Giorgos Keramidas wrote:
> On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo 
<jeronimocalvop@googlemail.com> wrote:
> > Hi folks!
> >
> > Im trying to set up a reaaallly basic scrip to allow one user to shutdown
> > my machine without root permisions, seting up SUID as follows:
>
[snip]
>
> The good thing is that you don't need a shell script to do that.  You
> can install `sudo' and give permission to the specific user to run:
>
>     sudo shutdown -p now

Or (assuming it doesn't grant too many other privileges) just put the user in 
group operator.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908281231.52421.j.mckeown>