LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2011, 06:34 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
nobody user for squid.


I ma using red hat Linux 4 for squid 2.6. Squid binary is installed successfully.
I can view the squid file as

Code:
#vi  /usr/local/squid/etc/squid.conf
Under it you can see cache_effective_user_nobody
If I take list of /usr/local/squid I can see that var used by root user and its group is also root.

Code:
[root@localhost squid]#ls -l
total 24
drwxr-xr-x 2  root   root 4096  March  27 14:21 bin
drwxr-xr-x 2  root   root 4096  March  27 12:12 etc
drwxr-xr-x 2  root   root 4096  March  27 14:21 libexec
drwxr-xr-x 2  root   root 4096  March  27 14:21 sbin
drwxr-xr-x 2  root   root 4096  March  27 14:21 share
drwxr-xr-x 2  root   root 4096  March  27 14:20 var
I want to change it for nobody user and nobody group.

When I try the command

Code:
[root@localhost root]# chown nobody:nobody var -R
chown: 'nbobody:nobody': invalid group
[root@localhost root]#
Kindly guide me that how can I fix it.
thanks
garden
 
Old 03-27-2011, 07:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Hi,

The command is
Code:
chown -R nobody:nobody var
i.e you need to put the -R switch before the user:group. Also check if the group actually exists.

Regards
 
Old 03-29-2011, 12:56 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
thanks for the reply. Well i have another system with same software configuration for squid. I have tried

Code:
[root@localhost root]# chown nobody:nobody var -R
and it work fine but when I use in my system it show me the same thing
Code:
chown: 'nbobody:nobody': invalid group
I also check in the /etc/passwd file that nobody user exits or not

Code:
[root@localhost root]# egrep -i "^nobody" /etc/passwd
nobody:x:99:99:Nobody:/:/sbin/nologin
[root@localhost root]#
"bathory" With the code which you have mention in your post I also try with it but no success.
I am upset with my system that why it is showing me invalid group

kindly help me
garden
 
Old 03-29-2011, 01:58 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Hi,

Are you sure the group nobody exists?
Code:
grep nobody /etc/group
You can create it by running:
Code:
groupadd nobody
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid user authentication Ammad Linux - Networking 4 06-14-2007 01:48 PM
User authentication in squid r_s_karthikeyan Linux - Networking 4 07-10-2006 04:33 PM
Squid User Restriction ajkannan83 Linux - Software 2 06-29-2006 04:41 AM
Squid User Grouping dan0r Linux - Software 1 03-06-2006 11:14 AM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration