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
nfsconfig(8)						      System Manager's Manual						      nfsconfig(8)

NAME
nfsconfig - Launches the SysMan Menu at the Network File System Configuration (NFS) level, where you can configure a system as an NFS server or as an NFS client SYNOPSIS
/usr/sbin/nfsconfig /usr/sbin/sysman nfs DESCRIPTION
The NFS Configuration section of SysMan Menu is used by the System Administrator or the UNIX system manager to manage NFS configuration issues. It allows the system to be configured as an NFS server (to make its file systems available to remote machines), or as an NFS client (to mount remote file systems). Before using nfsconfig, be sure to configure Network Interfaces using the Network Configuration section of the SysMan menu. You can configure your system as an NFS Server, an NFS Client, or both. However, if the Network Interfaces are down, the following daemons will not start: nfsd, pcnfsd, proplistd, mountd, and automountd. Use nfsconfig to do the following: Manage the configuration of the system as an NFS server. You can only configure your system as an NFS server if the NFS Server option is built into the kernel. Manage the configuration of the system as client-only system Specify file sys- tems to be mounted or exported Start and stop the NFS daemons Online Help: Online help is available for the NFS dialog boxes. You can get help by selecting the Help button on any dialog box. RESTRICTIONS
You must be root or have the appropriate privileges to run this application. FILES
Specifies the environment variables that define the nfsconfig configuration on your system SEE ALSO
Commands: X(1X), automount(8), mountd(8), nfsd(8), nfsiod(8), pcnfsd(8), proplistd(8), rpc.lockd(8), rpc.statd(8), dxfileshare(8) Files: nfs_intro(4), rc.config(8) Networking: tcp(7), udp(7) nfsconfig(8)
All times are GMT -4. The time now is 08:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy