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 |
Ummm from what I can see it appears that a group that "shane" belongs to has been deleted...
|
I think I need a basic understanding of how users and groups are set up.
|
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 Hope that helps a bit :D (If ya wanna know any more let me know) |
thanks for all of your help, this gives me somthing to work from.
|
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)
|
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.
|
Ummmm you knmow thats where all your system aliases and bash info is stored aye?
|
I am not leaving it that way(/etc/bashrc2), I just thought it was interesting that that made a difference.
|
K just looking at the file - check this line:
Code:
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then usermod -U shane -g shane If you get an error try: groupadd shane usermod -U shane -g shane |
Actually just tried that (thought it would work) but it doesn't... did you try teh id shane?
|
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 |
thanks for all of your help:)
|
Quote:
Basically, your GID says what permissions you have as a user, without that i'd be surprised if you can do much :) |
All times are GMT -5. The time now is 03:36 PM. |