View Single Post
Posts: 46 | Thanked: 7 times | Joined on Jan 2011 @ AU/MY
#25
Originally Posted by Rob1n View Post
Okay, so that's working at least.

The "sudo gainroot" shouldn't be asking for a password though, so the next thing to do is check whether the sudoers entry is correct - what's the result of running (as root) the following?:
Code:
grep gainroot /etc/sudoers.d/01sudo
Running the code gives me the following:
Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) 
Enter 'help' for a list of built-in commands. 

Nokia-N900-51-1:~# grep gainroot /etc/sudoers.d/01sudo 
user ALL = NOPASSWD: /usr/sbin/gainroot 
Nokia-N900-51-1:~#