I would like to monitor a users current working directory. This is a learning app and I would like to know when the user was able to cd into a directory. Also this is in docker. I am root, but when I try to view other users cwd I get a permission denied.
root@e904b4825a3a:/app/node# ls -la /proc/4656/cwd ls: cannot read symbolic link /proc/4656/cwd: Permission denied lrwxrwxrwx 1 term term 0 May 24 02:10 /proc/4656/cwd
I've used several other ways to access the cwd file, but with the same result. Is there anyway to see other users cwd? Or can someone think of a work around?
Thanks in advance!