Bugzilla – Bug 496
log_input problem
Last modified: 2011-05-25 16:11:00 MDT
Running HP-UX 11.31 Sudo 1.8.1p1 I added to /etc/sudoers file the following line: Defaults log_input A user who has been added to the sudoers file and runs the following commands: #sudo ls #date #man rm in the log located at /var/adm/sudo-io/../../.. it only records the ls command and not the commands following it. Does sudo only log commands run with the sudo prefix in the command? The manual says for log_input: "If set, sudo will run the command in a pseudo tty and log all user input". I was under the impression the pseudo tty would also capture the commands following the initial duso ls command. Is it possible I have it misconfigured? Or is it not a function of sudo to do what I have described? Thanks
Sudo can only log input for the commands run via sudo. So, for # sudo ls # date # man rm you will only see input from the "sudo ls" since the pseudo-tty is allocated, the command (ls) is run, and after the command terminates, the pseudo-tty is closed. However, if the user does: $ sudo ksh # ls # date # man rm # exit the input of all the commands between "sudo ksh" and "exit" would be logged.
Thank you for the quick reply. This issue is now clear to me.