tammymorse
asked on
How do I determine who last accessed a file and when in a unix environment?
We are moving to a new SAS environment and need to restrict file access in the new environment. We would like to be able to determine file security based on the last time someone has accessed a file/dataset. The command ls -atime will provide us with the last access time. However, it does not provide us with WHO last accessed the file. At this point, we are surveying all our users which is not practical since we have a significant number of users and files.
Any help would be appreciated!
Any help would be appreciated!
How about setting up some sort of mandatory script that people must use to access a data set. Maybe encrypt the dataset so they don't know the password, so the only way to get to it is to run a script that logs the action as a precursor to unlocking it with a hidden password they can't see that is stored in the host computer in a place they can't read)
(I have no idea if SAS will allow this, just trying to tell you that you'll have to think outside the box to limit access, rather than log access).
(I have no idea if SAS will allow this, just trying to tell you that you'll have to think outside the box to limit access, rather than log access).
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It appears I have to think outside the box.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What's your OS tammymorse?
It's relatively straight forward on AIX.
I can help with that if you're still needing it.
Cheers, JP.
It's relatively straight forward on AIX.
I can help with that if you're still needing it.
Cheers, JP.
That software is O/S and filesystem dependent, and sometimes it is not free.