Sponsored Content
Full Discussion: sudo logging + NFS hang?
Top Forums UNIX for Dummies Questions & Answers sudo logging + NFS hang? Post 66417 by neked on Monday 14th of March 2005 05:28:04 AM
Old 03-14-2005
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 newtork. I have configured the sudoers file to log into a file in the shared directory by the following command:

Defaults logfile=/share/sudo.log

but this only works for command that are run on the server itself, and won't log commands done on hosts. Any way to solve this problem?

2- My manager requested a configuration of NFS servers where all the computers can see the hard drives of all other computers, so I changed the /etc/dfs/sharetab to share the root directory on all the machines and I changed the /etc/vfstab to mount the root directories of all other machines on each machine. This configuration works fine, but when a machine is turned off the other machines will not restart successfully nor will they see other working remote machines. I guess this is because of the lack of a timeout mechanism in the NFS configuration, is there anyway to configure an NFS client to stop looking for a remote server after, for example, 5 seconds of no response, and then give control back to kernel?


Thanks!
 

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

NFS client subsystem hang up on boot

Hi, I have a Unix box running HP-UX 10.20 and it suddenly won't boot. Every time it goes down the boot checklist, it hangs on "NFS client subsystem" and just continues to say busy/wait. I have read something about the /etc/auto_master but don't quite understand what has to happen to fix it. ... (4 Replies)
Discussion started by: Asheley Ryan
4 Replies

3. 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

4. Solaris

Df -h hang cant see any NFS storage

Hi all I had a server, when run the df -h command, it hang, and need to press "crtl+c" to terminate it. i cant other NFS filesystem anymore. but i try at other server, the NFS filesystem is work properly any idea on this? # mount -p /dev/md/dsk/d0 - / ufs - no... (1 Reply)
Discussion started by: SmartAntz
1 Replies

5. UNIX for Advanced & Expert Users

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... (3 Replies)
Discussion started by: trimike
3 Replies

6. AIX

AIX NFS Client Logging

My AIX NFS client failed to mount a Windows server NFS service today. Is NFS client logging enabled by default on AIX? If not, is there a way to enable NFS client logging on AIX6.1. Thanks. (0 Replies)
Discussion started by: famasutika
0 Replies

7. 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

8. Shell Programming and Scripting

Hang NFS shell script check

Hello all, i wrote a shell script that was running perfectly fine until we had some issue with our NFS server and the script was hung. This script runs every 20 mins and obviously as we had the NFS issue, the script start to hang. as i do a check to make sure NFS directory is avaiable or not.... (7 Replies)
Discussion started by: crazy_max
7 Replies

9. HP-UX

HPUX 11.11 NFS client hang

Hi. I'm having problems with my HP C8000 and 11.11 (ifs client needs to be restarted every week), trying to get it worked out. When I searched the web it seems, I require the following patches: PHKL_41041, PHKL_43823, PHKL_43577 Is there anyway to get hold of these packages? Many thanks... (2 Replies)
Discussion started by: plantage
2 Replies

10. AIX

AIX 5.3 NFS export not mounting, rpcinfo hang/timeout on server

Been trying to get a directory NFS-mounted with no success. I've tried both NFS v3 and v4, but currently trying v4. I can't figure out what's going on here. server: sbkovwadmd01 sbkovwadmd01# chnfsdom Current local domain: edw.dev sbkovwadmd01# lssrc -a | grep nfs | grep active nfsd ... (3 Replies)
Discussion started by: eckertd
3 Replies
rmtab(5nfs)															       rmtab(5nfs)

Name
       rmtab - table of local file systems mounted by remote NFS clients

Description
       The  file  resides  in  the directory and contains a list of all remote hosts that have mounted local file systems using the NFS protocols.
       Whenever a client performs a remote mount, the server machine's mount daemon makes an entry in the  server  machine's  file.   The  command
       instructs the server's mount daemon to remove the entry.  The -b command broadcasts to all servers and informs them that they should remove
       all entries from created by the sender of the broadcast message.  By placing a -b command in tables on NFS servers can be purged of entries
       made  by a crashed client, who, upon rebooting, did not remount the same file systems that it had before the system crashed.  The file is a
       series of lines of the form:
       hostname:directory

       Rather than rewrite the rmtab file on each request, the mount daemon comments out unmounted entries by placing a number	sign  (#)  in  the
       first  character  position of the appropriate line.  The mount daemon rewrites the entire file, without commented out entries, no more fre-
       quently than every 30 minutes.  The frequency depends on the occurrence of requests.

       This table is used only to preserve information between crashes and is read only by when it starts up.  The daemon keeps an in-core  table,
       which it uses to handle requests from programs like and

Restrictions
       Although the table is close to the truth, it may contain erroneous information if NFS client machines fail to execute -a when they reboot.

Files
See Also
       mount(8nfs), umount(8nfs), mountd(8nfs), showmount(8nfs), shutdown(8)

																       rmtab(5nfs)
All times are GMT -4. The time now is 11:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy