LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-14-2004, 03:31 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
What would cause this output


what would cause this output. If it matters I am tryingto configure my LFS system.
Code:
[root@marsala /etc]# su - shane
id: cannot find name for group ID 100
[shane@marsala ~]$
 
Old 02-14-2004, 03:43 PM   #2
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Ummm from what I can see it appears that a group that "shane" belongs to has been deleted...
 
Old 02-14-2004, 05:56 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I think I need a basic understanding of how users and groups are set up.
 
Old 02-14-2004, 06:21 PM   #4
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
K i'm not an expert but this is what I know:

First of all, root ALWAYS has a UID of 0.

When u add a user they get a UID (User ID) i.e. 500
You are also part of a group - as a default its your username. (GID might be also be 500)
That information is all stored in /etc/passwd along with your home directory and encrypted password.
When you logon or a program needs to authenticate you it checks /etc/passwd for an entry and when you enter a password it is encrypted and compared to that of the /etc/passwd entry.

Thats basically it, file permissions are basic, they are based on username and pasword but alsoo permission bits (i.e. you might do an ls -l foo and get get the following)

Code:
[ammullan@daemon ~]$ ls -l | grep foo
-rwxrwxr-x    1 ammullan ammullan    11954 Feb 14 20:59 foo
The -rwxrwxr-x is read, write and execute permissions. They are broken down into 3 block groups (i.e. in this example foo can be read, written to and executed by user and group and can be read and executed by all)... The 1st bit will have a d if it's a directory etc.

Hope that helps a bit (If ya wanna know any more let me know)

Last edited by AMMullan; 02-14-2004 at 06:23 PM.
 
Old 02-14-2004, 06:31 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
thanks for all of your help, this gives me somthing to work from.
 
Old 02-14-2004, 06:57 PM   #6
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
No problems Also, if you use id it'll show u what your UID and GID is (you can also do id root to find out root's etc)
 
Old 02-14-2004, 06:57 PM   #7
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I kind of tracked the problem down to /etc/bashrc . If I change the name of that file I no longer get that output anymore.
 
Old 02-14-2004, 07:01 PM   #8
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Ummmm you knmow thats where all your system aliases and bash info is stored aye?
 
Old 02-14-2004, 07:03 PM   #9
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I am not leaving it that way(/etc/bashrc2), I just thought it was interesting that that made a difference.
 
Old 02-14-2004, 07:09 PM   #10
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
K just looking at the file - check this line:

Code:
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
        umask 002
else
        umask 022
fi
This is checking your UID, GID and makes sure that your UID is greater than 99 - try this:

usermod -U shane -g shane

If you get an error try:

groupadd shane
usermod -U shane -g shane
 
Old 02-14-2004, 07:12 PM   #11
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Actually just tried that (thought it would work) but it doesn't... did you try teh id shane?
 
Old 02-14-2004, 07:39 PM   #12
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I added this line to /etc/group(advice from a different forum)

shane:x:100:

that fixed it. That leads me to another question: how come my gentoo system works fine without that line in /etc/group
 
Old 02-14-2004, 07:53 PM   #13
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
thanks for all of your help
 
Old 02-14-2004, 08:22 PM   #14
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Quote:
That leads me to another question: how come my gentoo system works fine without that line in /etc/group
Not sure, but without a group the user is a nobody (less than that even as there's a nobody group lol)

Basically, your GID says what permissions you have as a user, without that i'd be surprised if you can do much
 
  


Reply



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
No output through SPDIf, but analog works. How do I get output through SPDIF? seanwnz Linux - General 11 11-08-2007 11:24 AM
tv output Shibby Linux - Software 1 06-07-2005 11:35 AM
Via AC'97 5.1 Optical Output or Audigy 4.1 Output Nza Fedora 3 06-01-2004 07:49 AM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM
Output of ls -l Crashed_Again Linux - Newbie 4 12-11-2003 06:28 PM

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

All times are GMT -5. The time now is 02:32 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