*BSD News Article 24927


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!nic.hookup.net!yeshua.marcam.com!zip.eecs.umich.edu!destroyer!news.itd.umich.edu!altitude
From: altitude@css.itd.umich.edu (Alex Tang)
Newsgroups: umich.unix,comp.os.386bsd.questions
Subject: Re: HELP!!!! (permissions and such Messed)
Date: 12 Dec 1993 09:26:19 GMT
Organization: University of Michigan ITD/User Services
Lines: 32
Message-ID: <2eeo3r$c1t@terminator.rs.itd.umich.edu>
References: <2ee82n$1cp@terminator.rs.itd.umich.edu> <2eelr8$bo4@terminator.rs.itd.umich.edu>
NNTP-Posting-Host: stimpy.css.itd.umich.edu
X-Newsreader: TIN [version 1.2 PL1]

In article <2eelr8$bo4@terminator.rs.itd.umich.edu> you wrote:
: That's probably still permissions.  How would you have logged in, found
: your home directory, started the right shell, etc, if you didn't have a
: passwd file entry?

Yeah, I thought about that.  I'm wondering what database files are used
by the system to recognize a user?  

: I'm guess that the permissions on / are wrong.  Log in as root, check
: them, fix them if they're wrong....

I checked /, and all other relavent files.  They're all right as far as
I can tell.  if i log on as root...everything is fine.  I can see all
the files.  The permissions are fine.  I checked most of them (/, /usr,
/bin, /usr/bin....) and all looked well. (Allan and ainman were there
too.  They said everything looked ok as well.).  I tried rebuilding the
pwd.db and spwd.db as well.  It didn't work either.

Some more symptoms are: 
I copied who and finger into my home dir.  When I run them, they say : 
can't access file /var/run/log/utmp.  That file is there and world readable.  

If i do an ls -lg on my home dir, all the files come up with their uid
and gid...not the respective names.  

NetBSD has an id  command.  When I used to run it, it would say:
uid=100(altitude) gid=100(users) groups=0(wheel).....
Now, all it says is:
uid=100 gid=100 groups=0,15,....

I'm still confused.