Results 11 to 19 of 19
after i run those first two command lines.. do i do the whole sequence in your later post again? (the one with the echo and everyhting) or just passwd root?...
- 12-25-2003 #11Just Joined!
- Join Date
- Dec 2003
- Posts
- 11
after i run those first two command lines.. do i do the whole sequence in your later post again? (the one with the echo and everyhting) or just passwd root?
- 12-25-2003 #12Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
No, you should not do the echo command ever again, unless you delete your root account again. You should, however, redo the other commands. The echo command is what adds the root user info, the others are mainly for cleaning up.
- 12-25-2003 #13Just Joined!
- Join Date
- Dec 2003
- Posts
- 11
ok so i should do..
i will try that.. if its more important i think i did the echo about 3 or 4 times before. and by the way merry christmasCode:sort /etc/passwd | uniq >/etc/passwd.new mv -f /etc/passwd.new /etc/passwd passwd root
its beginning to snow here (ny)
- 12-25-2003 #14Just Joined!
- Join Date
- Dec 2003
- Posts
- 11
nope.. no sucsess... here is what that log file you said to do before says....
Code:==> /var/log/messages <== Dec 24 22:48:38 localhost kernel: mice: PS/2 mouse device common for all mice Dec 24 22:48:38 localhost kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,5), internal journal Dec 24 22:48:38 localhost kernel: Adding Swap: 1044184k swap-space (priority -1) Dec 24 22:48:38 localhost kernel: kjournald starting. Commit interval 5 seconds Dec 24 22:48:38 localhost kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal Dec 24 22:48:38 localhost kernel: EXT3-fs: mounted filesystem with ordered data mode. Dec 24 22:48:38 localhost kernel: ohci1394: $Rev: 693 $ Ben Collins <bcollins@debian.org> Dec 24 22:48:38 localhost kernel: ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[10] MMIO=[dc800000-dc8007ff] Max Packet=[2048] Dec 24 22:48:38 localhost kernel: ieee1394: SelfID completion called outside of bus reset! Dec 24 22:48:38 localhost kernel: SCSI subsystem driver Revision: 1.00 Dec 24 22:48:38 localhost kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices Dec 24 22:48:38 localhost kernel: Vendor: ARTEC Model: WSM-52X Rev: 1.10 Dec 24 22:48:38 localhost kernel: Type: CD-ROM ANSI SCSI revision: 02 Dec 24 22:48:38 localhost kernel: keyboard: unknown scancode e0 59 Dec 24 22:48:50 localhost kernel: keyboard: unknown scancode e0 59 Dec 24 22:48:58 localhost kernel: keyboard: unknown scancode e0 01 Dec 24 22:49:02 localhost kernel: keyboard: unknown scancode e0 59 Dec 24 22:49:48 localhost last message repeated 4 times Dec 24 22:49:57 localhost kernel: keyboard: unknown scancode e0 01 Dec 24 22:50:02 localhost kernel: keyboard: unknown scancode e0 59 ==> /var/log/secure <== Dec 24 18:45:49 localhost pam_console[2986]: getpwnam failed for root Dec 24 18:45:50 localhost sshd[2779]: Received signal 15; terminating. Dec 24 20:03:07 localhost sshd[2785]: Server listening on 0.0.0.0 port 22. Dec 24 20:44:22 localhost pam_console[2992]: getpwnam failed for root Dec 24 20:44:24 localhost sshd[2785]: Received signal 15; terminating. Dec 24 20:52:45 localhost sshd[2783]: Server listening on 0.0.0.0 port 22. Dec 24 21:06:07 localhost pam_console[2990]: getpwnam failed for root Dec 24 21:06:09 localhost sshd[2783]: Received signal 15; terminating. Dec 24 21:09:22 localhost sshd[2794]: Server listening on 0.0.0.0 port 22. Dec 24 21:15:04 localhost pam_console[3001]: getpwnam failed for root Dec 24 21:15:06 localhost sshd[2794]: Received signal 15; terminating. Dec 24 21:22:34 localhost sshd[2793]: Server listening on 0.0.0.0 port 22. Dec 24 21:23:00 localhost xinetd[2807]: START: sgi_fam pid=3065 from=<no address> Dec 24 21:47:19 localhost sshd[2793]: Received signal 15; terminating. Dec 24 21:54:27 localhost sshd[2797]: Server listening on 0.0.0.0 port 22. Dec 24 21:54:59 localhost xinetd[2811]: START: sgi_fam pid=3065 from=<no address> Dec 24 22:35:55 localhost sshd[2797]: Received signal 15; terminating. Dec 24 22:43:38 localhost sshd[2808]: Server listening on 0.0.0.0 port 22. Dec 24 22:44:05 localhost xinetd[2822]: START: sgi_fam pid=3076 from=<no address> Dec 24 22:47:10 localhost sshd[2808]: Received signal 15; terminating.
- 12-25-2003 #15Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I have a terrible feeling. Check if the "root:x:0:0:root:/root:/bin/bash" line still is in /etc/passwd.
If it isn't, then it's either because the addition for any reason failed the last time (with the echo command), or because you have some worm or virus re-removing it.
- 12-25-2003 #16Just Joined!
- Join Date
- Dec 2003
- Posts
- 11
i don't think it is a virus or a worm because i have only had linux for a few hours but i will check..
- 12-25-2003 #17Just Joined!
- Join Date
- Dec 2003
- Posts
- 11
yes, that line is present.. here is the file in whole...
-------
adm
:3:4:adm:/var/adm:/sbin/nologin
bin
:1:1:bin:/bin:/sbin/nologin
daemon
:2:2:daemon:/sbin:/sbin/nologin
ftp
:14:50:FTP User:/var/ftp:/sbin/nologin
games
:12:100:games:/usr/games:/sbin/nologin
gdm
:42:42::/var/gdm:/sbin/nologin
gopher
:13:30:gopher:/var/gopher:/sbin/nologin
halt
:7:0:halt:/sbin:/sbin/halt
lp
:4:7:lp:/var/spool/lpd:/sbin/nologin
mail
:8:12:mail:/var/spool/mail:/sbin/nologin
mailnull
:47:47::/var/spool/mqueue:/sbin/nologin
news
:9:13:news:/etc/news:
nfsnobody
:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
nobody
:99:99:Nobody:/:/sbin/nologin
nscd
:28:28:NSCD Daemon:/:/sbin/nologin
ntp
:38:38::/etc/ntp:/sbin/nologin
operator
:11:0:operator:/root:/sbin/nologin
pcap
:77:77::/var/arpwatch:/sbin/nologin
root
:0:0:root:/root:/bin/bash
rpc
:32:32:Portmapper RPC user:/:/sbin/nologin
rpcuser
:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
rpm
:37:37::/var/lib/rpm:/bin/bash
shutdown
:6:0:shutdown:/sbin:/sbin/shutdown
smmsp
:51:51::/var/spool/mqueue:/sbin/nologin
sshd
:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
sync
:5:0:sync:/sbin:/bin/sync
tom
:500:0:Tom Consolazio:/home/tom:/bin/bash
uucp
:10:14:uucp:/var/spool/uucp:/sbin/nologin
vcsa
:69:69:virtual console memory owner:/dev:/sbin/nologin
xfs
:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
--------------
- 12-25-2003 #18Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I see. That's a relief, at lesat. Then just remains to find out what the problem actually is. Can you check if there is a line for root in /etc/shadow as well?
- 12-26-2003 #19Just Joined!
- Join Date
- Dec 2003
- Posts
- 11
how can i read tha file? when i try to open it it says..
-----
Nautilus has no installed viewer capable of displaying "/etc/shadow".
-----
When i try opening it through browsing in mozilla i get this..
-----
The file /etc/shadow cannot be found. Please check the location and try again.
-----
I think i originaly screwed it up by taking a regular user and naming it "root" than deleting that user. Than i think i did that command you told me too many times lol.


Reply With Quote
