PDA

View Full Version : [ubuntu] how to change permission???


Myronray
September 23rd, 2009, 12:09 AM
hey guy gud day to all

i cant open my squid access.log due of this how to change permission to full and readable?

-rw-r----- 1 proxy proxy 0 2009-09-23 10:20 access.log
-rw-r----- 1 proxy proxy 13450 2009-09-23 11:02 cache.log
-rw-r----- 1 proxy proxy 0 2009-09-23 10:20 store.log


thank to all support

scrooge_74
September 23rd, 2009, 12:10 AM
chown root:root *.log

Myronray
September 23rd, 2009, 02:35 AM
still no luck :(

dvlchd3
September 23rd, 2009, 07:15 AM
Full access for whom? Full for your user, a system process, root?

etnlIcarus
September 23rd, 2009, 07:41 AM
- try sudoing to read the log

- try chmod (http://en.wikipedia.org/wiki/Chmod#Usage).

koenn
September 23rd, 2009, 04:03 PM
chown root:root *.log

hmmm ... if you chown root:root, and the log can only be written by its owner, will the proxy account (i.e. the squid process) still be able to write to the log files ? that's what they're for, no ?

koenn
September 23rd, 2009, 04:06 PM
still no luck :(
how are you trying to read the logs ?

what happens if you do

sudo -i
tail /var/log/squid/access.log

exit

scrooge_74
September 24th, 2009, 02:12 PM
hmmm ... if you chown root:root, and the log can only be written by its owner, will the proxy account (i.e. the squid process) still be able to write to the log files ? that's what they're for, no ?

:lolflag: yup you are right I guess it should be squid:root

Sarmacid
September 24th, 2009, 02:47 PM
sudo chmod +r *.logShould make the files readable by anyone.

You can also add your user to the proxy group and you will be able to read them.

scrooge_74
September 24th, 2009, 04:14 PM
Million ways to do things, that is the best part of this

etnlIcarus
September 24th, 2009, 07:45 PM
sudo chmod +r *.logShould make the files readable by anyone.

Actually, I think (technically), that should be a+r.