Re: [CentOS] Allowing non-root users to reboot a workstation

2018-02-06 Thread James Hogarth
On 2 February 2018 at 18:13, wrote: > Felipe Westfields wrote: >> I would like to be able to allow regular users that don't have admin >> privileges to be able to reboot their workstation. (they're software >> developers so rebooting their workstation doesn't affect anybody

Re: [CentOS] Allowing non-root users to reboot a workstation

2018-02-02 Thread m . roth
Felipe Westfields wrote: > I would like to be able to allow regular users that don't have admin > privileges to be able to reboot their workstation. (they're software > developers so rebooting their workstation doesn't affect anybody else) > > I tried changing the ownership of /sbin/reboot and

Re: [CentOS] Allowing non-root users to reboot a workstation

2018-02-02 Thread Marcin Trendota
W dniu 02.02.2018 o 18:27, Felipe Westfields pisze: > That seems to have worked on my own test account - I applied it to the user > having the issue and asked for his feedback when he gets a chance. > Thanks! > On Fri, Feb 2, 2018 at 11:40 AM, Darr247 wrote: >> Did you try

Re: [CentOS] Allowing non-root users to reboot a workstation

2018-02-02 Thread Felipe Westfields
That seems to have worked on my own test account - I applied it to the user having the issue and asked for his feedback when he gets a chance. Thanks! On Fri, Feb 2, 2018 at 11:40 AM, Darr247 wrote: > Did you try adding > > UserName ALL= NOPASSWD: /sbin/reboot > > As the

Re: [CentOS] Allowing non-root users to reboot a workstation

2018-02-02 Thread Valeri Galtsev
On 02/02/18 10:09, Felipe Westfields wrote: I would like to be able to allow regular users that don't have admin privileges to be able to reboot their workstation. (they're software developers so rebooting their workstation doesn't affect anybody else) I tried changing the ownership of

Re: [CentOS] Allowing non-root users to reboot a workstation

2018-02-02 Thread Tate Belden
Personally, this is what I'd use sudo for. You can configure sudo to allow only certain commands with or without a password. Not a lot of detail, but you can either require or skip the password. And, instead of individuals - you can use groups. If you look through the soders file, you'll see how

Re: [CentOS] Allowing non-root users to reboot a workstation

2018-02-02 Thread Darr247
Did you try adding UserName ALL= NOPASSWD: /sbin/reboot As the last line of their /etc/sudoers files? (replacing UserName with their actual user name, of course.) That should grant them root access to only the /sbin/reboot command (add more commands using comma delimiting). Then they just run

[CentOS] Allowing non-root users to reboot a workstation

2018-02-02 Thread Felipe Westfields
I would like to be able to allow regular users that don't have admin privileges to be able to reboot their workstation. (they're software developers so rebooting their workstation doesn't affect anybody else) I tried changing the ownership of /sbin/reboot and /sbin/shutdown to root:users and