normal user removing a root file?
my normal user needs to remove a non-system critical file owned by root.
is this possible using sudo? I've tried doing 'rm /path/to/file' in the sudoers, but it wont write the file, I get a syntax error. or is there another way of doing it? |
Should be possible, what does the relevant line look like?
Cheers, Tink |
its this:
Code:
rm /etc/dhcpc/dhcpcd-wlan0.pid first I forgot to include the full path of the rm command in the sudoers file: Code:
%shutdown ALL=(root) NOPASSWD: /bin/rm /etc/dhcpc/dhcpcd-wlan0.pid |
Why isn't /var/run/dhcpc/dhcpcd-wlan0.pid used instead. You would still need to configure sudoers because of the sticky bit.
|
Quote:
|
All times are GMT -5. The time now is 01:33 AM. |