Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was playing around with some scripts I have written and I might have changed their owner to root, though I am not sure. Who should be the owner of these folders ?

share|improve this question
    
obviously root! –  Pandya Jul 19 at 12:39

2 Answers 2

up vote 2 down vote accepted

Both should be owned by root, the group for /var/log should be syslog, and it should be world-writable.

share|improve this answer

This is total /var/:

drwxr-xr-x  2 root root     4096 jul 19 07:56 backups
drwxr-xr-x 18 root root     4096 mrt 29 07:51 cache
drwxrwsrwt  2 root whoopsie 4096 jul 19 07:35 crash
drwxr-xr-x 72 root root     4096 jul 19 10:14 lib
drwxrwsr-x  2 root staff    4096 feb 27 19:33 local
lrwxrwxrwx  1 root root        9 mrt 29 07:47 lock -> /run/lock
drwxrwxr-x 15 root syslog   4096 jul 19 07:56 log
drwxrwsr-x  2 root mail     4096 mrt 20 08:31 mail
drwxrwsrwt  2 root whoopsie 4096 mrt 20 08:37 metrics
drwxr-xr-x  2 root root     4096 mrt 20 08:31 opt
lrwxrwxrwx  1 root root        4 mrt 29 07:47 run -> /run
drwxr-xr-x  9 root root     4096 mrt 20 08:35 spool
drwxrwxrwt  2 root root     4096 jul 19 13:52 tmp

Have fun

share|improve this answer

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.