Find the answer to your Linux question:
Results 1 to 4 of 4
Please what are the correct permissions for these files? My current: cd /etc;ls -l lrwxrwxrwx 1 root root 13 Mar 21 2013 rc.local -> rc.d/rc.local -rwxr-xr-x 1 root root 13 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    325

    rc.modules amd rc.local correct permissions


    Please what are the correct permissions for these files?

    My current:
    cd /etc;ls -l
    lrwxrwxrwx 1 root root 13 Mar 21 2013 rc.local -> rc.d/rc.local
    -rwxr-xr-x 1 root root 13 Oct 26 11:10 rc.modules

    i had no file /etc/rc.modules (only /etc/rc.local - it appears to be symlink?), my aim was to autorun module "Tun" on server start so i created that file rc.modules, but im unsure if these file permissions are correct and if it can cause any issue on next reboot?

    my OS is Centos 5.x 64
    Last edited by postcd; 10-26-2013 at 10:06 PM.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,601
    That is a link to /etc/rc.d/rc.local and the permissions are correct. Now, you need to look at the attributes of /etc/rc.d/rc.local itself and post them here.

    FWIW, they should be '-rwxr-xr-x.' and owned by root.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    325
    Quote Originally Posted by Rubberman View Post
    Now, you need to look at the attributes of /etc/rc.d/rc.local itself and post them here.
    FWIW, they should be '-rwxr-xr-x.' and owned by root.
    Thank You, It appears they are like you say:
    -rwxr-xr-x 1 root root 622 Oct 26 11:09 /etc/rc.d/rc.local

    and rc.modules:
    -rwxr-xr-x 1 root root 13 Oct 26 11:10 /etc/rc.modules

    so i asume its correct.. # cat /etc/rc.modules
    modprobe tun

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by postcd View Post
    my aim was to autorun module "Tun" on server start so i created that file rc.modules
    more important than permissions is your distro, and specifically, what is looking for that file and calling it (or reading its contents). some initscript is probably doing it, but it depends on the distro. for example, that file (rc.modules) might need to be executable.

Posting Permissions

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