change io logging directory sudo 1.7.4p6


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users change io logging directory sudo 1.7.4p6
# 1  
Old 05-26-2011
change io logging directory sudo 1.7.4p6

There was an update in sudo 1.7.5 :
-The I/O log directory may now be specified in the sudoers file.

I am stuck using sudo 1.7.4p6. Because it is supported by HP on thier HP-UX builds.

Is there a process to change this directory in sudo 1.7.4p6?

currently sudo 1.7.4p6's default is /var/log/sudo-io

Thanks
# 2  
Old 05-26-2011
It seems that if you use syslog, you can configure where it is dropped there. Man sudo says:
Code:
sudo can log both successful and unsuccessful attempts (as well as
errors) to syslog(3), a log file, or both. By default sudo will log
via syslog(3) but this is changeable at configure time or via the
sudoers file.

# 3  
Old 05-26-2011
The is true unless you enable input or output logging in the sudoers file. Then it logs those specifically in the sudo-io directory. From what I have found since this post is that you can change it upon install by adding the following to the configure script:

--with-iologdir[=DIR]

By default, sudo stores I/O log files in either /var/log/sudo-io,
/var/adm/sudo-sudo-io or /usr/log/sudo-io. If DIR is
specified, I/O logs will be stored in the indicated directory
instead.

But as with sudo verison 1.7.5 and later there was an update to be able to change this setting via the sudoers file. I still am looking for a possible solution to change the sudo-io directory without re installing sudo.
# 4  
Old 05-26-2011
There's always sym-links! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tar file with logging and directory via parameter

Hi all, I am fairly new to shell scripting and I am trying the following: My shell script creates a tar file with files with the ending ~. The directory - where the files and sub directories are located - comes as a parameter when I call the script. Files that are archived will be written in... (1 Reply)
Discussion started by: neg42
1 Replies

2. Solaris

Sudo logging need year details also

Hi All I have a requirement in which during sudo logging, I must get the year details also in sudo log file. As below output is not mentioning the year due to this I will not able to idenfiy that this log belong to 2012 or 2011 or 2010 Dec 12 11:30:21 XYZ sudo: user1 : TTY=pts/5 ;... (4 Replies)
Discussion started by: sb200
4 Replies

3. Shell Programming and Scripting

sudo on directory

Hello, I have a directory with 45 kshell scripts . I would like to grant sudo to specific account on this DIRECTORY and not on each and every files. Is it possible ? (note: I have the same scripts and directory both on linux redhat + hpux) Best Regards (1 Reply)
Discussion started by: yoavbe
1 Replies

4. Solaris

How to change pwd during logging on ftp server?

Dear All, Could I change password while login in to ftp server(solaris 10)? I tried to use fileZilla and command prompt(window) to change my password but It can't. Do you have any suggestion ? Ps. I can't telnet and ssh to the server because of poicy for ftpuser. Thank in advance (3 Replies)
Discussion started by: unitipon
3 Replies

5. HP-UX

sudo or su logging

Jul 14 08:02:40 servera sshd: Accepted keyboard-interactive/pam for someuser from x.x.x.x port 1406 ssh2 Jul 14 08:02:48 servera su: - 1 someuser-root Jul 14 08:03:03 servera sudo: someuser : TTY=pts/1 ; PWD=/home/someuser ; USER=root ; COMMAND=/usr/bin/su - Jul 14 08:03:03 servera su: + 1... (3 Replies)
Discussion started by: Ikon
3 Replies

6. UNIX for Advanced & Expert Users

What change in freeBSD OS to allow root logging using ssh?

Hi everybody, ] I would like to ask just simpe and short question. I am using freeBSD 6.0 and Debian Sarge. From Debian console I can log as root using ssh to bsd mashine but not vice versa. When I say in bsd console su I got sorry output, it does not allow me to su to root when I am logged... (5 Replies)
Discussion started by: 100days
5 Replies

7. UNIX for Dummies Questions & Answers

sudo logging + NFS hang?

Hi all, I have two problems, My system is SunOS 5.9: 1- I have installed sudo but I have a problem logging user activities on other hosts, the way I installed it is that I installed sudo and the sudoers file in a shared directory on a NFS server which is mounted by all computers on the... (1 Reply)
Discussion started by: neked
1 Replies

8. UNIX for Advanced & Expert Users

Logging all commands after a sudo su-

Hi there, It might seem tricky, I confess. We use sudo to allow people to initiate priviledged commands (but not all commands) on our Unix systems. To by pass this, some people initiate the sudo su - command ; The main issue is to 'know' what those people do when they gain root access.... (4 Replies)
Discussion started by: linuxmtl
4 Replies
Login or Register to Ask a Question