My boss has ask me to track who accesses one share using cifs on our Netapp my admin host is a unix box and the qtrees are setup as unix. Is there any native way to do this or any programs that perform this function?
Dave
My boss has ask me to track who accesses one share using cifs on our Netapp my admin host is a unix box and the qtrees are setup as unix. Is there any native way to do this or any programs that perform this function?
Dave
You can keep track of CIFS logins in /etc/messages like this:
options cifs.trace_login on
But this only shows who logs in, not which share (would be nice if DOT also logged the share).
You could also periodically run
cifs sessions *
which shows who is currently logged in and to which shares. But you would have to poll, so it's always possible for someone to connect to a share and disconnect between your polls.
There is probably a better way with the "options cifs.audit" stuff, but I've never used it.
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support