Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Mar 2001 14:25:42 +0100
From:      Tobias Roth <roth@iamexwi.unibe.ch>
To:        freebsd-questions@freebsd.org
Subject:   trouble with groups
Message-ID:  <20010307142542.B9749@arp.unibe.ch>

next in thread | raw e-mail | index | archive | help
Hello

I just changed /etc/groups like this:

cvs:*:1001:hans

I added the user hans to group cvs
Now could someone explain me this:

[hans@sunbbw060 /usr/home] ls -l
total 2
drwxrwxr-x   4 cvs      cvs           512 Mar  7 14:05 cvs
drwxr-xr-x  15 hans     hans         1024 Mar  7 11:36 hans
[hans@sunbbw060 /usr/home] touch cvs/test
touch: cvs/test: Permission denied

[hans@sunbbw060 /usr/home] whoami
hans
[hans@sunbbw060 /usr/home] id
uid=1000(hans) gid=1000(hans) groups=1000(hans), 0(wheel)
[hans@sunbbw060 /usr/home] id hans
uid=1000(hans) gid=1000(hans) groups=1000(hans) 0(wheel) 1001(cvs)
[hans@sunbbw060 /usr/home] 

Which means two things: The user hans cannot write to a dir that belongs to group cvs lathough he appears to have the right permissions. And id returns two different results based on the optional user argument.

I must have misunderstood the basics of the file access system here, I'd be glad if someone could enlighten me a bit.

thx and peace, Tobe

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?20010307142542.B9749>