You are not logged in.

#1 2005-05-28 22:16:14

_will
Member
Registered: 2004-07-08
Posts: 123

no groupadd

i was following through a wiki and

# groupadd
bash: groupadd: command not found

# /usr/sbin/groupadd
bash: /usr/sbin/groupadd: No such file or directory

# locate groupadd
/etc/pam.d/groupadd

im, well, lost

how does this happen, or more importantly how is it corrected

this computer also has a problem after boot:
it goes to init 3 and asks for username
i enter it but when i hit enter it doesn't prompt for a password. instead it moves the cursor down a line
[luckily it also starts ssh, and i can get X running by logging on remotely]
could this be related

(edit:)  gpasswd is also missing

thanks
will

Offline

#2 2005-05-28 22:37:07

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: no groupadd

$ pacman -Qo /usr/sbin/groupadd 
/usr/sbin/groupadd is owned by shadow 4.0.7-1

So you seem to be missing the shadow utils, quite a serious problem. Any idea how you lost it?

Offline

#3 2005-05-29 06:59:14

_will
Member
Registered: 2004-07-08
Posts: 123

Re: no groupadd

thanks for the reply


i was thinking the harddrive was dieing, but i was running ssh with security last in mind (root password was root) ...and i noticed when logging in from school that the last access was from an ip that end up being from Romania - my root password was changed, and the ftp server rules were changed. so i guess a malicious person could have deleted other stuff

but.. more on the problem

14:54:28 [~] $ sudo pacman -S shadow
:: shadow-4.0.7-1: is up to date.  Upgrade anyway? [Y/n] y

Targets: shadow-4.0.7-1

Total Package Size:   0.9 MB

Proceed with upgrade? [Y/n] y

:: Retrieving packages from current...
 shadow-4.0.7-1           [################] 100%     896K    46.9K/s  00:00:19

checking package integrity... done.
loading package data... done.
checking for file conflicts... done.
cannot remove file: Operation not permitted
upgrading shadow... 
could not extract bin/login: Permission denied
errors occurred while upgrading shadow
done.

15:05:50 [~] $ groupadd
bash: groupadd: command not found
15:05:54 [~] $ pacman -So /usr/sbin/shadow
error: you cannot perform this operation unless you are root.
15:05:55 [~] $ sudo pacman -So /usr/sbin/shadow
usr/sbin/shadow: not present in "" repository

Offline

#4 2005-05-29 07:25:43

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: no groupadd

yeah...you might want to reinstall now.

Offline

#5 2005-05-29 09:36:44

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: no groupadd

Indeed... and please keep security in mind when connected to the internet, especially when running a server. Also don't forget to make regular backups of all important data.

Offline

#6 2005-05-29 15:13:12

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: no groupadd

I'm sorry but this is pretty funny.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#7 2005-05-29 15:16:16

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: no groupadd

FUBAR wrote:

I'm sorry but this is pretty funny.

oh well, live and learn.

Offline

#8 2005-06-06 04:07:07

_will
Member
Registered: 2004-07-08
Posts: 123

Re: no groupadd

thanks for the help and laughing _with_ me  :oops:     hehe

took a while to get around to, but now things work. its nice

Offline

#9 2005-06-06 04:59:36

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: no groupadd

I had a similar problem running a FTP server on windows *gasp*. What was weird was that I never ran a server on this computer before, I never told anybody I was going to, I was the only person who knew it existed. Somebody from some European country accessed it and deleted all the files and put porn on it. From then on I started caring about anonymous ftp restrictions.

Offline

Board footer

Powered by FluxBB