The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/var/spool/cron/nobody permissions

Discussion in 'General Discussion' started by deadlock, Aug 1, 2008.

  1. deadlock

    deadlock Well-Known Member

    Joined:
    May 12, 2002
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    I'm getting this in my daily Logwatch:

    BAD FILE MODE (cron/nobody)
    BAD FILE MODE (cron/apache)

    Looks like this:

    ---------- 1 root root 0 Jul 25 21:50 apache
    -rw------- 1 root root 1430 Jul 25 21:54 mailman
    ---------- 1 root root 0 Jul 25 21:50 nobody
    -rw------- 1 root root 424 Jul 31 23:39 root

    I've tried (as root) to do all of the following without success (permission denied):

    chmod u+rw /var/spool/cron/nobody
    chattr -i /var/spool/cron/nobody
    rm /var/spool/cron/nobody

    Can anyone tell me how to change the permissions on those 2 files?
     
    #1 deadlock, Aug 1, 2008
    Last edited: Aug 1, 2008
  2. svabhilash

    svabhilash Member

    Joined:
    Apr 14, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    What is the output of lsattr?

    lsattr /var/spool/cron/nobody ?

    lsattr -d /var/spool/cron/ ?
     
  3. deadlock

    deadlock Well-Known Member

    Joined:
    May 12, 2002
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    I found the answer: chattr does not work on a VPS :(
     
    #3 deadlock, Aug 2, 2008
    Last edited: Aug 4, 2008
Loading...

Share This Page