Tag Archives: permissions

logrotate complains about insecure parent directory permissions

I’ve received this message recently:

error: skipping "/var/log/exim/mainlog" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

…and a few other of similar nature. Turns out /var/log/exim/ were indeed group-writable. Easy to fix.

Advertisements

/usr/local/src for user’s sources

I use it so that users can store sources out of their home directory. Don’t know how secure it is, considering users’ tendency to leave everything world-writable – it isn’t. Anyway:

cd /usr/local
sudo mkdir src
sudo chown -R root:users src
sudo chmod -R o-rwx src
sudo chmod -R g+w src