This is a discussion on Users on a particular filesystem within the AIX Operating System forums, part of the Unix Operating Systems category; --> All, Is there a way to get a list of users who are logged on to the system and ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| All, Is there a way to get a list of users who are logged on to the system and using a particular filesystem. (i.e) their current directory (pwd) is the /examplefs or their subdirectories. I will eventually have to send a message to those users at a particular time. I bielieve i can use wall for that. Thanks -Visu |
| |||
| Visu wrote: > All, > > Is there a way to get a list of users who are logged on to the system > and using a particular filesystem. (i.e) their current directory (pwd) > is the /examplefs or their subdirectories. > > I will eventually have to send a message to those users at a particular > time. I bielieve i can use wall for that. > > Thanks > -Visu > There is no simple way I can think of. My guess is you wish to umount that fs? Anyway, you could alias /usr/bin/cd to a custom script that simply logged username |
| ||||
| There are two ways to check for that. Please forget about unmounting filesystem just to check if it is used. I suppose it was just jokes, or answers of people not used to deal with production servers ;-) 1) Use lsof (check at IBM download site) (LiSt Open Files). This tool is wonderful to know about open ports & files. 2) If you use AIX 5.x, you can look a /proc/<PID>/cwd But this will give you information only about currrent directories of any proces. My favourite is Answer one. Er, as it spells, wall is intended to "Write to ALL users". You could use it to warn yours users, or you can separately warn them with the "write" utility. Kind regards, Stephane |