You are not logged in.

#1 2007-08-20 13:36:23

jmrbcu
Member
From: Cuba
Registered: 2007-08-20
Posts: 112

Squid and pacman install

I got a problem installing squid, I got the following message after pacman -S squid:

/var/lib/pacman/local/squid-2.6.STABLE14-1/install: line 7: useradd: command not found
chown: `proxy.proxy': invalid user

It look like it does not found the "useradd" command. What is happening here?


--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Offline

#2 2007-08-21 14:55:30

George_K
Member
From: Russie, Saint-Pétersbourg
Registered: 2006-09-27
Posts: 75

Re: Squid and pacman install

Do you install as root or you are using sudo?

Offline

#3 2007-08-24 11:40:19

jmrbcu
Member
From: Cuba
Registered: 2007-08-20
Posts: 112

Re: Squid and pacman install

sorry for being late, I've been out lately. Back to subject, I install it with sudo


--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Offline

#4 2007-08-24 12:03:01

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Squid and pacman install

jmrbcu wrote:

It look like it does not found the "useradd" command. What is happening here?

Well, did you look ? Do you have useradd or not?

LANG=C pacman -Qo /usr/sbin/useradd
/usr/sbin/useradd is owned by shadow 4.0.18.1-5

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#5 2007-08-24 19:17:39

George_K
Member
From: Russie, Saint-Pétersbourg
Registered: 2006-09-27
Posts: 75

Re: Squid and pacman install

This problem appeared recently. I don`t know a good solution - only running as root or using "sudo sh -c '. /etc/profile; cmd'", I don`t know sudo command line parameters.
You can test sudo by running "sudo sh -c 'echo $PATH'" or "sudo env".
Also there is an article about sudo and security http://www.kramse.dk/projects/unix/secu … pt_en.html which may be connected with this problem.

Offline

Board footer

Powered by FluxBB