Find the answer to your Linux question:
Results 1 to 5 of 5
What should the permissions and ownership be for: /boot, /usr, /opt, /var, /home, /tmp?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Mar 2008
    Posts
    287

    Basic perms and owners


    What should the permissions and ownership be for:
    /boot, /usr, /opt, /var, /home, /tmp?

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Typically, you should just leave them set for the default permissions.
    Changing them could cause problems with your system, or even failure to boot.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Something like this?

    Code:
    drwxr-xr-x   2 root root 4.0K 2007-04-30 06:35 bin/
    drwxr-xr-x   2 root root 4.0K 2010-09-20 16:49 boot/
    drwxr-xr-x  13 root root  15K 2011-09-16 09:08 dev/
    drwxr-xr-x  71 root root  12K 2011-09-10 14:09 etc/
    drwxr-xr-x  11 root root  256 2010-10-13 14:43 home/
    drwxr-xr-x   5 root root 4.0K 2010-09-20 16:12 lib/
    drwx------   2 root root  16K 2010-09-19 14:44 lost+found/
    drwxr-xr-x  16 root root 4.0K 2011-07-14 19:51 media/
    drwxr-xr-x  10 root root 4.0K 2006-09-26 05:09 mnt/
    drwxr-xr-x   6 root root 4.0K 2011-03-24 10:59 opt/
    dr-xr-xr-x 171 root root    0 2011-07-14 21:50 proc/
    drwx--x---  15 root root 4.0K 2011-09-10 14:02 root/
    drwxr-xr-x   2 root root  12K 2010-09-20 16:12 sbin/
    drwxr-xr-x   2 root root 4.0K 2010-09-20 16:04 srv/
    drwxr-xr-x  12 root root    0 2011-07-14 21:50 sys/
    drwxrwxrwt  12 root root 4.0K 2011-09-18 15:46 tmp/
    drwxr-xr-x  19 root root 4.0K 2009-01-05 22:07 usr/
    drwxr-xr-x  17 root root 4.0K 2009-05-06 19:43 var/
    Can't tell an OS by it's GUI

  4. #4
    Linux User
    Join Date
    Mar 2008
    Posts
    287
    Thanx Freston exactly what was needed.

  5. #5
    Just Joined! ford's Avatar
    Join Date
    Jan 2011
    Location
    GA, USA
    Posts
    25
    typically, any root directory should be rwx for root, x only for everyone else. a user's home directory should be rwx for the user only. /opt is ... well... opt so set it to whatever you want.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •