Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Oct 1998 18:47:43 -0700
From:      Studded <Studded@dal.net>
To:        CyberPsychotic <fygrave@freenet.bishkek.su>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: ownership funnies.
Message-ID:  <3615823F.FF6F0E9D@dal.net>
References:  <Pine.BSD.4.02.9810021553340.425-100000@freenet.kg>

next in thread | previous in thread | raw e-mail | index | archive | help
CyberPsychotic wrote:
> 
> Hello people,
> Probably I miss something really stupid, anyway, here's my story, my box
> is freebsd 2.2.7, now abit of expirement:

	Someone else already gave you an answer as to why the group wasn't what
you expected, but I wanted to point something else out to you. 

> cat /etc/passwd | grep  user1

	DON'T use 'cat' to view a file, ever. Use 'more,' or better yet, use
something that has built in safety checks like 'less.' This was
discussed recently on one of the lists, check the archives if you want
all the details. There is no reason at all to use more than one program
in a situation like this where grep will do all the work for you, and a
lot of reasons NOT to do that. For this situation the proper syntax is:

grep user1 /etc/passwd 

> I remmeber I had to edit their ID/GID by hand.

	You would probably be better off to change /etc/group so that the gid's
match the uid's before you add too many users to the system. 

Good luck,

Doug

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3615823F.FF6F0E9D>