I have a lion server which is accessed by multiple people. Is it possible to find out which users have accessed a file?
|
|
After researching the subject I don't believe this is possible, as you need to set up a logging program, its not built in by default. You can get the last person to have accessed the file but not previous accessors. |
||||
|
|
|
I'm less qualified to answer this, as I have no experience with services running on Macos, but the other answer seems to be extremely misleading, which I will attempt to rectify. Unless I'm very much mistaken, the SMB implementation in Macos is Samba, which is also used in most Linux and BSD based operating systems. The following explanation is true for current Gentoo Linux installations of Samba, so transcribing file paths, service management commands and logging specifics is left an exercise for the padawan system administrator. Open the smb.conf file, and change or add a the following line to the global part of the configuration:
Also look for this entry, it tells you where the log files end up:
(The client IP address is substituted in for the Save the file, and restart the Samba service. Lok at the log file for a client address (let's use the ipv4 loopback for now),
If you now access the share (in a different shell) through the loopback address and
The result in the log file should be something like this:
|
|||
|
|