LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2004, 11:14 AM   #1
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Rep: Reputation: 15
point out the problem with this command


HI,

i am trying to configure squid and i read in an article that it is better to create a user squid in the system .

the article gave the command for creating a user named squid as follows.

# adduser --system --disabled-password --disabled-login --no-create-home --group squid

but when i press enter this is the error it gives me

adduser: invalid option -- -
usage: adduser [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire ] [-p passwd] [-M] [-n] [-r] name
adduser -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire ]


can any one plz tell me how to fix the command so that a user squid is created with no home directory , no login, no password.
 
Old 07-26-2004, 11:50 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
I think this is what you need:

adduser -M -n -r -s /bin/false squid

However, I would suggest double-checking the options (man adduser). There are no standard "long options" such as --system or --no-create-home to my knowledge, and none are mentioned in the man pages.
 
Old 07-26-2004, 11:50 AM   #3
Veladrin
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
Re: point out the problem with this command

Quote:
Originally posted by bahadur
HI,

i am trying to configure squid and i read in an article that it is better to create a user squid in the system .

the article gave the command for creating a user named squid as follows.

# adduser --system --disabled-password --disabled-login --no-create-home --group squid

but when i press enter this is the error it gives me

adduser: invalid option -- -
usage: adduser [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire ] [-p passwd] [-M] [-n] [-r] name
adduser -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire ]


can any one plz tell me how to fix the command so that a user squid is created with no home directory , no login, no password.
okay, so the user is going into the 'system' group?

try something like this

adduser -g system -s /bin/false -r squid


This will put them into group system, not give them a shell access. The -r gives them a low userid for admin accounts (meaning they won't have a password expiring - see 'man' for more details). Finally it gives them the username squid.

I'm not sure if it'll let you do it without a password, and surely you'd be better giving it a password anyway?

Last edited by Veladrin; 07-26-2004 at 12:07 PM.
 
  


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
Acess Point Problem glaz Linux - Wireless Networking 1 01-25-2005 04:06 PM
xini command line options to start video at a point of time shireesh.thota Linux - Newbie 0 11-04-2004 05:58 AM
Mandrake MNF with point-to-point T1, routers ioannes Linux - Networking 0 07-24-2003 08:59 AM
Is there a detailed point by point comparison on Linux to Windows? Paul Parr Linux - General 4 04-26-2003 02:35 AM
point to point address assignment of ppp0 andyn Linux - Networking 0 10-11-2002 10:45 PM


All times are GMT -5. The time now is 02:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration