LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2004, 09:00 PM   #1
bootsy
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Aust
Distribution: Suse 9.1
Posts: 27

Rep: Reputation: 15
There is a strange line in the file /etc/group


Trying to log in as root is failing for me - i get the error suggested above

The file /etc/group reads
root:x:0:
bin:x:1:daemon
daemon:x:2:
sys:x:3:
tty:x:5:
disk:x:6:
lp:x:7:
www:x:8:
kmem:x:9:
wheel:x:10:
mail:x:12:
news:x:13:
uucp:x:14:bootsy
shadow:x:15:
dialout:x:16:bootsy
audio:x:17:bootsy
floppy:x:19:
cdrom:x:20:
console:x:21:
utmp:x:22:
at:x:25:
public:x:32:
video:x:33:bootsy
games:x:40:
xok:x:41:
trusted:x:42:
modem:x:43:
ftp:x:49:
postfix:x:51:
maildrop:x:59:
man:x:62:
sshd:x:65:
ntadmin:x:71:
distcc:x:101:
nobody:x:65533:nobody
nogroup:x:65534:nobody
users:x:100:

using Suse 9.1, kernel 2.6.5-7.111

was trying to fix some issues with jack and ardour as per this link here

can someone pls tell what is wrong with the above and how I can fix it now that I can't log in as root. I can login as root through a terminal so am hoping that may help...
 
Old 11-10-2004, 09:44 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
"There is a strange line in the file /etc/group"

The only line that looks even a little strange is:
distcc:x:101:

That line was not created during the SuSE install but otherwise it seems OK to me. Did you put it in by hand? So if you can edit /etc/group from a terminal as root then try deleting the distcc line. If that doesn't work then you can put distcc back the way it is.

---------------------------
Steve Stites
 
Old 11-10-2004, 11:21 PM   #3
bootsy
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Aust
Distribution: Suse 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks Steve

Unfortunately it didn't work
 
Old 11-10-2004, 11:45 PM   #4
bootsy
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Aust
Distribution: Suse 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
btw
If I try to login as root it throws me straight to Yast. If I close yast it throws me straight back to the login screen.
 
Old 11-11-2004, 02:59 AM   #5
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Take a look at your /etc/passwd file and check to see what your root user has for a shell. It should look something like this:

root:x:0:0::/root:/bin/bash

What you describe makes me think it would look something similar to:

root:x:0:0::/root:/sbin/yast

The other thing I noticed is my group file has two colons after the group name instead of one.

root::x:0
bin::1:root,bin,daemon
daemon::2:root,bin,daemon

etc, etc, etc

Last edited by n0sr; 11-11-2004 at 03:06 AM.
 
Old 11-11-2004, 01:32 PM   #6
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 439

Rep: Reputation: 46
distcc is the distributed c++ compiler. It allows a compiler to exist on one computer and be available for all others on the lan.
 
Old 11-12-2004, 05:21 PM   #7
bootsy
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Aust
Distribution: Suse 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for your replies n0xvb & apolinsky

My /etc/passwd file shows

root:x:0:0:root:/root:/bin/bash

maybe it's suse thing but I've got single colons instead of double in both /etc/passwd and /etc/group as you have n0xvb.

Any suggestions from here - should I just reinstall from scratch or is there an easier way out (I hope!?!?)
 
Old 11-12-2004, 06:31 PM   #8
bootsy
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Aust
Distribution: Suse 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
Just tried running the System repair utility on the install dvd - and every time it hangs on he check of installed packages at 26/205. Does anyone know what package 26 is?
 
Old 11-14-2004, 03:42 AM   #9
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
I think you need 2 colons after the group name in the group file. Here is what each line should contain:

<group name> : <group password> : <gid> : <user>,<user>,<user>

if you have something between the first and second delimiters then that becomes the encrypted password for the group.

I think your system is expecting a password tied to the groups and when it gets no password it fails.

try looking at the man pages:

Code:
man 5 group
man 5 passwd
They explain the format very well

Last edited by n0sr; 11-14-2004 at 03:45 AM.
 
Old 11-14-2004, 08:59 PM   #10
bootsy
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Aust
Distribution: Suse 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks again n0xvb

The double colons didn't do anything - in the end I have decided to go for another reinstall. I've tried so many things now (and silly me haven't recorded them) that I can't remember all the changes I've made - it could be anything now...

Such are the trials and tribulations for a linux noobie - playing with a very flexible system can be dangerous for those playing far beyond their current capabilities...

Last edited by bootsy; 11-14-2004 at 09:00 PM.
 
Old 11-16-2004, 10:14 PM   #11
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
That is true, but on the other side of that coin? The best low level knowledge of your system, and the ability to learn and make it just the way you want.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ text file line by line/each line to string/array Dimitris Programming 15 03-11-2008 08:22 AM
group command line tools m2azer Linux - General 4 10-31-2004 09:37 PM
create user/group in cmd line rgiggs Mandriva 3 04-12-2004 09:46 PM
delete a group with command line feetyouwell Linux - Software 1 01-27-2004 09:49 AM
linux scripting help needed read from file line by line exc commands each line read atokad Programming 4 12-26-2003 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration