Results 1 to 2 of 2
Hi all
I am a relatively new user of debian
I had been using my woody with 2.2 kernel
In my attempt to make postfix work with TLS
and SASL
...
- 08-30-2005 #1Just Joined!
- Join Date
- Aug 2005
- Posts
- 1
/etc/passwd got deleted - but /etc/shadow exists - help
Hi all
I am a relatively new user of debian
I had been using my woody with 2.2 kernel
In my attempt to make postfix work with TLS
and SASL
/etc/passwd got deleted somehow!!!
But /etc/shadow is present..
I loged in using single user mode and patched little bit so that root
user is reenabled without passwd. Then i changed root passwd
But could someone help me in recreating
my old /etc/passwd from my /etc/shadow
My /etc/shadow
root:$1$n20jGMdL$012gNv9VAcPviOR/kHDJU/:13025:0:99999:7:::
daemon:*:12827:0:99999:7:::
bin:*:12827:0:99999:7:::
sys:*:12827:0:99999:7:::
sync:*:12827:0:99999:7:::
games:*:12827:0:99999:7:::
man:*:12827:0:99999:7:::
lp:*:12827:0:99999:7:::
mail:*:12827:0:99999:7:::
news:*:12827:0:99999:7:::
uucp:*:12827:0:99999:7:::
proxy:*:12827:0:99999:7:::
postgres:*:12827:0:99999:7:::
www-data:*:12827:0:99999:7:::
backup:*:12827:0:99999:7:::
operator:*:12827:0:99999:7:::
list:*:12827:0:99999:7:::
irc:*:12827:0:99999:7:::
gnats:*:12827:0:99999:7:::
nobody:*:12827:0:99999:7:::
manu::12898:0:99999:7:::
identd
12827:0:99999:7:::
sshd
12827:0:99999:7:::
telnetd
12827:0:99999:7:::
smmsp
12827:0:99999:7:::
mysql
12830:0:99999:7:::
postfix
12842:0:99999:7:::
Debian-exim
13023:0:99999:7:::
MY little bit patched /etc/passwd from above shadow file
root
:0:0:root:/root:/bin/bash
daemon
:1:1:daemon:/sbin:/bin/sh
bin
:2:2:bin:/bin:/bin/sh
sys:*:12827:0:99999:7:::
sync
:5:0:sync:/sbin:/bin/sync
games:*:12827:0:99999:7:::
man:*:12827:0:99999:7:::
lp:*:12827:0:99999:7:::
mail:*:12827:0:99999:7:::
news:*:12827:0:99999:7:::
uucp:*:12827:0:99999:7:::
proxy:*:12827:0:99999:7:::
postgres:*:12827:0:99999:7:::
www-data
:71:71:www-data:/var/www:/bin/sh
backup:*:12827:0:99999:7:::
operator:*:12827:0:99999:7:::
list:*:12827:0:99999:7:::
irc:*:12827:0:99999:7:::
gnats:*:12827:0:99999:7:::
nobody:*:12827:0:99999:7:::
manu
:0:0:manu:/root:/bin/bash
identd
12827:0:99999:7:::
sshd
12827:0:99999:7:::
telnetd
12827:0:99999:7:::
smmsp
12827:0:99999:7:::
mysql
12830:0:99999:7:::
postfix
12842:0:99999:7:::
Debian-exim
13023:0:99999:7:::
Please help me..
thank very much
-tachionic
- 08-30-2005 #2
I won't even ask how in the world /etc/passwd got deleted (but I will say I hope you aren't running as root to do day-to-day business).
This is one of the very rare cases where I would say a data backup and reinstallation of Linux may be in order. There are a number of accounts used by the system that I would not feel comfortable guessing about or mucking with, or you may see erratic behavior (and/or open up a vulnerability by setting one up incorrectly).


Reply With Quote
