[sclug] var permissions

David Kerrawn davek at kerrawn.co.uk
Thu Mar 28 21:50:20 UTC 2013



> -----Original Message-----
> From: sclug-bounces at sclug.org.uk [mailto:sclug-bounces at sclug.org.uk] On
> Behalf Of Neil Haughton
> Sent: 28 March 2013 21:23
> To: sclug at sclug.org.uk
> Subject: [sclug] var permissions
> 
> Quick question for anyone who can help.
> 
> I've had to recreate my /var directory. What owner/group and
> permissions
> should it have? I currently have drwxr-xr-x  root:root, and I'm getting
> unexpected file creation errors reported by various apps.
> 
> TIA
> 
> Neil

Here's a selection from my /var

$ ls -la /var
total 84
drwxr-xr-x 16 root     root      4096 Feb 27 01:13 .
drwxr-xr-x 24 root     root      4096 Mar 20 22:52 ..
drwxr-xr-x  2 root     root      4096 Mar 21 06:27 backups
drwxr-xr-x 18 root     root      4096 Feb 27 00:54 cache
drwxr-xr-x 67 root     root      4096 Mar  6 15:19 lib
drwxrwsr-x  2 root     staff     4096 Oct 20  2008 local
lrwxrwxrwx  1 root     root         9 Feb 27 01:13 lock -> /run/lock
drwxr-xr-x 25 root     root      4096 Mar 28 06:41 log
drwx------  2 root     root     16384 Jan 23  2009 lost+found
drwxrwsr-x  2 root     mail      4096 Oct  6  2010 mail
drwx------  3 snmp     snmp      4096 Feb 27 00:30 net-snmp
drwxr-xr-x  2 root     root      4096 Jan 23  2009 opt
lrwxrwxrwx  1 root     root         4 Feb 27 01:13 run -> /run
drwxr-xr-x  9 root     root      4096 Feb 27 00:40 spool
drwxr-xr-x  5 root     root      4096 Mar 23  2009 symapi
drwxrwxrwt  2 root     root      4096 Feb 15 12:38 tmp
drwxr-xr-x 13 root     root      4096 Feb 21 18:02 www

Regards
David




More information about the Sclug mailing list