creating swap directory error in squid

General discussion about PLUC and Linux in Pakistan.
Post Reply
venky145
Havaldaar
Posts: 118
Joined: Thu Jan 13, 2005 2:35 pm
Location: qatar
Contact:

creating swap directory error in squid

Post by venky145 »

hi

when i starting squid

squid -z

creating swap directories
FATAL: Failed to make swap directopry /usr/local.squid/var/cache : (13) permission denied
shakirz1
Battalion Quarter Master Havaldaar
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Location: Karachi
Contact:

Post by shakirz1 »

run this command

chown squid.squid /usr/local.squid/var/cache

then run squid -z, i hope it will work
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear venky145,
Salam,

# chown -R squid.squid /usr/local.squid/var/cache

Best Regards.
Farrukh Ahmed
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re:

Post by lambda »

you should use : to separate user and group fields, not . this is because . is valid in a username, and chown on some systems won't accept it as a valid separator.
Qadri-409
Battalion Havaldaar Major
Posts: 286
Joined: Sun May 09, 2004 4:16 pm
Location: Peshawar
Contact:

Re:

Post by Qadri-409 »

LinuxFreaK wrote:
# chown -R squid.squid /usr/local.squid/var/cache
what if ..when we change it to #chown -R nodoby:nobody
as it cache effective user in squid.conf ?


takecare
M Shahzad Qadri
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear Qadri-409,
Salam,

Well if it is defined in squid.conf then you can do this :)

Best Regards.
Farrukh Ahmed
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Post by asaddotcom »

When I start my squid service then i got this message :
Nov 2 12:12:14 Microsoft squid[4758]: Squid Parent: child process 4766 started
Nov 2 12:12:14 Microsoft squid[4758]: Squid Parent: child process 4766 exited due to signal 6
Nov 2 12:12:17 Microsoft (squid): Cannot open '/usr/local/squid/var/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid', which is the cache_effective_user ^Iset in squid.conf.
Please tell what can i do ? If its a parent directory permission issue then please tell me how to change permission. ?

waiting..
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear asaddotcom,
Salam,

# adduser squid
# chown -R squid.squid /var/log/squid


Best Regards.
Last edited by LinuxFreaK on Thu Nov 03, 2005 7:57 am, edited 1 time in total.
Farrukh Ahmed
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Re:

Post by asaddotcom »

LinuxFreaK wrote:Dear asaddotcom,
Salam,

# adduser squid
# chown -R squid.suqid /var/log/squid


Best Regards.
I got still this message in my error log file:
Nov 2 13:29:33 Microsoft squid[4311]: Squid Parent: child process 4313 started
Nov 2 13:29:33 Microsoft (squid): ERROR: Unknown policy lru
Nov 2 13:29:33 Microsoft squid[4311]: Squid Parent: child process 4313 exited due to signal 6
Nov 2 13:29:36 Microsoft squid[4311]: Squid Parent: child process 4316 started
Nov 2 13:29:37 Microsoft (squid): ERROR: Unknown policy lru
Nov 2 13:29:37 Microsoft squid[4311]: Squid Parent: child process 4316 exited due to signal 6
even i closed #cache_replacment_policy in squid. . .. .
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
asaddotcom
Company Havaldaar Major
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
Location: Lahore, PK
Contact:

Re:

Post by asaddotcom »

LinuxFreaK wrote:Dear asaddotcom,
Salam,

# adduser squid
# chown -R squid.suqid /var/log/squid


Best Regards.
I got this message:
[root@Microsoft root]# chown -R squid.suqid /var/log/squid
chown: `squid.suqid': invalid group
[root@Microsoft root]#
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear asaddotcom,
Salam,

well that was spell mistake :(

# adduser squid
# chown -R squid.squid /var/log/squid


BTW from your last i have seen that you did not apply what i said and you just say its not working :(

Best Regards.
Farrukh Ahmed
Post Reply