Joined: 24 Nov 2004
Location: Wroclaw, Poland
|Posted: Thu Mar 22, 2018 2:07 pm Post subject: Asking for root password when restarting services
I have recently migrated from GrSec to SELinux and actually, sometimes when I try to start/stop/restart/reload service it is asking me for root password ...
Of course I have root right already. I have this on 2 machines: This is the output from `id`:
|uid=0(root) gid=0(root) groups=0(root) context=staff_u:staff_r:staff_t |
|uid=0(root) gid=0(root) groups=0(root) context=staff_u:sysadm_r:sysadm_t |
As you can see context if different but problem exists on both of them.
Sometimes this is working nicely, but sometimes `rc-service [service] restart` or /etc/init.d/[service] lead to the following prompt:
|# rc-service nginx reload
How can I fix that? It is really annoying that I need to enter root password all the time....
|# rc-service sshd restart
sshd | * Stopping sshd ... [ ok ]
sshd | * Starting sshd ... [ ok ]
# /etc/init.d/cronie restart
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Asio Software Technologies
Belliash IT Weblog