Freebsd – Unable to read file with permissions of 777

freebsdoutlookpermissions

I have a file which was saved to a CIFS share from Outlook. The file permissions are 777, so I should be able to read the file from the Linux host the file goes to. However when I try, I get file permission errors (unable to read the file). If I have the root user change the permissions (say from 777 to 775), I am then able to read the file as expected. I verified that I have permission to the directory, so that isn't the problem.

BSD_6.3 [61234567] $ ls -l hwmconfigs.rar
-rwxrwxrwx**  1 root  wheel  41574 Jul 27 17:55 hwmconfigs.rar
BSD_6.3 [61234567] $ file hwmconfigs.rar
hwmconfigs.rar: writable, executable, regular file, no read permission

Has anyone experienced a similar issue. Any ideas how to get MS Outlook to put the file so that an unprivileged user can read it?

Best Answer

Try finding the file using the 'lsof' command, or the equivalent in BSD.

If the file in question is still tied up within another process, it should appear in this list. But be aware the program accessing the file will be the local server program (like Samba) rather than Outlook.

'lsof' generates a LOT of output. I recommend running the output of the command through 'grep' to narrow down your search.