Date: Fri, 2 Oct 1998 10:07:48 -0400 From: Max Euston <meuston@jmrodgers.com> To: "'CyberPsychotic'" <fygrave@freenet.bishkek.su>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: RE: ownership funnies. Message-ID: <01BDEDEC.852681C0.meuston@jmrodgers.com>
next in thread | raw e-mail | index | archive | help
(assuming 'touch foo' is creating 'foo'; i.e. it doesn't already exist...)
Check the group ownership of the directories in which you are creating 'foo'.
>From 'man open':
When a new file is created it is given the group of the directory which
contains it.
This suprised me too - not the way I was used to (from System V).
[Note: I was concerned about this, but have checked and...]
- You can NOT 'chgrp' a directory to a group of which you are NOT a member.
- You can NOT 'chmod g+s' a file that is owned by a group of which you are NOT a member.
Hope this helps.
Max
---
Max Euston <meuston@jmrodgers.com>
On Friday, October 02, 1998 6:59 AM, CyberPsychotic [SMTP:fygrave@freenet.bishkek.su] wrote:
[snip]
> now I login as user1:
> touch foo; ls -al foo
> foo is owned by user1, but group is user2 why??!
> more intersting is that user2 get the same thing but : user2 bin. Any
> ideas what may cause this? any files I have missed? I more linux user,
> where passwd things are abit different, so I probably may have missed
> something really familiar.
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?01BDEDEC.852681C0.meuston>
