Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way I can look up logs on chmod changes to files/directories on linux?

JS files on my server last night were getting Permission Denied errors losing sales. I'm in disagreement with how this happened with another developer and am trying to look up logs.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

No, on a standard install chmods are not logged (unless, of course, they're executed via sudo). Your best bet would be an audit of .history and .bash_history files of the various accounts that have access to your system.

share|improve this answer
    
This command would have likely been executed via sudo because that's how we do everything. Where can I view sudo logs? –  Webnet Mar 19 '10 at 17:06
    
@Webnet, on some systems a command like grep sudo /var/log/auth.log should show you all the sudo usage. –  Zoredache Mar 19 '10 at 17:12
    
Zore - you're the man, thanks. That auth.log showed me we've had someone snooping around and it looks like they might've gotten in and messed things up. Thanks!!! –  Webnet Mar 19 '10 at 17:29
    
Zore, post your question as an answer so that I can give you credit. –  Webnet Mar 19 '10 at 17:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.