Maintaining permissions on /var/log/system.log?

Discussion in 'Apple' started by Greg White, Jun 18, 2007.

  1. Greg White

    Greg White Guest

    The tail of system.log appears on my desktop via GeekTool. This works
    on all three of my Macs, but on my most recent acquisition - a MBP
    -system.log's permissions change when periodic.daily runs from 644
    (desired) to 640 (not desired). Since GeekTool is running in my
    session, and since I am part of the admin group, I am not sure why it
    has permissions problems - but it may be running as 'nobody' (though the
    preference pane for sure runs as my session login, admin group).

    With what do I tinker to maintain system.log's permissions as 644? I
    can always reset the permissions, log out and back in, but that is a
    pain.

    Thanks -

    Greg
     
    Greg White, Jun 18, 2007
    #1
    1. Advertisements

  2. Greg White

    Tom Stiller Guest

    Edit file '/etc/perodic/daily/500.daily' and change line number 109 to
    read
    touch "${i}.$$" && chmod 644 "${i}.$$" && chown root:admin "${i}.$$"
     
    Tom Stiller, Jun 18, 2007
    #2
    1. Advertisements

  3. Greg White

    Greg White Guest

    Thanks, Tom, that works a treat.

    In case anyone gets the idea that was the problem with GeekTool, I
    jumped to a conclusion. GeekTool seems to work differently in the
    Universal build, in which it dislikes having system.log changed while it
    is running. This is either not an issue on PowerPC-based systems, or it
    is better handled in the PowerPC-only builds of GeekTool.

    If you want to keep GeekTool from getting stuck in this way, use a shell
    command like tail instead of having GeekTool read the file directly.

    -Greg
     
    Greg White, Jun 18, 2007
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.