Results 1 to 5 of 5

Thread: can open sudo tail -F /var/log/squid/access.log

  1. #1
    Join Date
    Aug 2007
    Beans
    45

    can open sudo tail -F /var/log/squid/access.log

    hey cant open the the access.log how to change permission to this file, anybody help

    thanks

  2. #2
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: can open sudo tail -F /var/log/squid/access.log

    I suspect if you did an `ls -l /var/log/squid/access.log` that the owner (root) would have read access already, but you can be certain of this by doing:
    Code:
    sudo chmod o+r /var/log/squid/access.log
    Some commands are a little funky if you're running them through sudo and not actually at a root prompt. Have you tried that?

  3. #3
    Join Date
    Aug 2007
    Beans
    45

    Re: can open sudo tail -F /var/log/squid/access.log

    Quote Originally Posted by falconindy View Post
    I suspect if you did an `ls -l /var/log/squid/access.log` that the owner (root) would have read access already, but you can be certain of this by doing:
    Code:
    sudo chmod o+r /var/log/squid/access.log
    Some commands are a little funky if you're running them through sudo and not actually at a root prompt. Have you tried that?
    im gonna try now hehe

  4. #4
    Join Date
    Aug 2007
    Beans
    45

    Re: can open sudo tail -F /var/log/squid/access.log

    i check the permission it shows
    root@myron:/# ls -l /var/log/squid/access.log
    -rw-r--r-- 1 proxy proxy 0 2009-09-15 11:20 /var/log/squid/access.log


    falcon still no luck i follow your code but does not work
    sudo chmod o+r /var/log/squid/access.log
    then i tail -f access.log again does not open ohhh my
    Last edited by Myronray; September 15th, 2009 at 06:01 AM.

  5. #5
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: can open sudo tail -F /var/log/squid/access.log

    Try:

    Code:
    sudo chmod 755 /var/log/squid/access.log
    sudo chown root:root /var/log/squid/access.log
    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

Bookmarks

Posting Permissions

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