squid question
Hello, I am installing squid on my machine, and I read Tomasz Chmielewski How To. He says that I should create secure squid user:
useradd -d /cache/ -r -s /dev/null squid >/dev/null 2>&1 I would like to know what is the meaning of this. I read the useradd man page but I don't see the -r option. Why does "-s" points to /dev/null? |
i don't know what the -r is for... i've never used it, and like you said, it doesn't show up in the manual...
-s is given /dev/null so that the account will have an invalid shell... most distros come with a /bin/false binary which is made specially for this... for example, this is what i use to add an account for squid in slackware Code:
groupadd squid |
Thank you very much Win32sux. I have another question:
I have a directory called /opt/squid/sbin, it contains squid executable. There is another directory called /opt/squid/bin, and it contains RunCache, RunAccel, squidclient. I do cat /opt/squid/bin/RunCache, and it show this: #!/bin/sh # #$Id: RunCache.in,v 1.9.8.1 2003/01/06 20:52:55 wessels Exp $ prefix=/opt/squid exec_prefix=/opt/squid logdir=${prefix}/var PATH=${exec_prefix}/sbin:/bin:/usr/bin export PATH conf="" if test "$1" ; then conf="-f $1" shift fi failcount=0 while : ; do echo "Running: squid -sY $conf >> $logdir/squid.out 2>&1" echo "Startup: `date`" >> $logdir/squid.out start=`date '+%d%H%M%S'` squid -NsY $conf >> $logdir/squid.out 2>&1 stop=`date '+%d%H%M%S'` ...... etc. Now my question is this: is RunCache a link to squid? |
Quote:
Quote:
Quote:
AFAIK most people don't use the RunCache script... Quote:
|
All times are GMT -5. The time now is 10:39 PM. |