|
Bugzilla – Full Text Bug Listing |
| Summary: | error message after 'sudo kill' | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | laurent.crepet |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | normal | ||
| Version: | 1.6.3 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
This really has nothing to do with sudo since sudo didn't generate the error message you are seeing. The most likely explanation is that when you start dnrd it tries to kill the old dnrd process based on the contents of a pid file somewhere (probably in /var/run). |
The second sudo command I run returns an error, but do the job. Here is the ouput of the problem. [lct@lilinuxred lct]$ ps auxw | grep dnrd nobody 7152 0.0 0.3 1240 620 ? S 16:07 0:00 /usr/sbin/dnrd [lct@lilinuxred lct]$ sudo kill 7152 [lct@lilinuxred lct]$ ps auxw | grep dnrd [lct@lilinuxred lct]$ sudo /usr/sbin/dnrd ERROR: Couldn't kill dnrd: No such process [lct@lilinuxred lct]$ sudo gview /var/log/sudo.log [lct@lilinuxred lct]$ ps auxw | grep dnrd nobody 7193 0.0 0.3 1252 648 ? S 16:12 0:00 /usr/sbin/dnrd [lct@lilinuxred lct]$ [lct@lilinuxred lct]$ sudo -V Sudo version 1.6.3p5 /var/log/sudo.log: Jan 20 16:12:02 : lct : HOST=lilinuxred : TTY=pts/4 ; PWD=/home/lct ; USER=root ; COMMAND=/bin/kill 7152 Jan 20 16:12:12 : lct : HOST=lilinuxred : TTY=pts/4 ; PWD=/home/lct ; USER=root ; COMMAND=/usr/sbin/dnrd Jan 20 16:12:54 : lct : HOST=lilinuxred : TTY=pts/4 ; PWD=/home/lct ; USER=root ; COMMAND=/usr/X11R6/bin/gview /var/log/sudo.log /etc/sudoers: # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification User_Alias MADMINS = lct # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL MADMINS ALL=(ALL) ALL