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 <darr...@gmail.com> wrote:
>> 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).


It may be more appropriate to place this line in separate file under
/etc/sudoers.d/

-- 
MoonWolf

_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

Reply via email to