As a follow up, I show actual transcripts of testing:
---- first on my home directory (/home/tomh) ----
~ $ mkdir testsgid
~ $ chgrp www testsgid
~ $ chmod 2775 testsgid
~ $ ls -Flad testsgid
drwxrwsr-x 1 tomh www 512 Apr 25 12:24 testsgid/
~ $ cd testsgid
~/testsgid $ touch testfile
~/testsgid $ ls -Fla
drwxrwsr-x 1 tomh www 512 Apr 25 12:24 ./
drwxr-xr-x 1 tomh tomh 512 Feb 20 22:42 ../
-rw-rw-r-- 1 tomh tomh 0 Apr 25 12:32 testfile
--------------------
As you can see the new file has my group instead of the www group.
Now I duplicate the same exact test in /tmp, which on my board is a
ramfs file system:
------- test in /tmp --------------
~/testsgid $ cd /tmp
/tmp $ mkdir testsgid
/tmp $ chgrp www testsgid
/tmp $ chmod 2775 testsgid
/tmp $ ls -Flad testsgid
drwxrwsr-x 1 tomh www 0 Apr 25 12:32 testsgid/
/tmp $ cd testsgid
/tmp/testsgid $ touch testfile
/tmp/testsgid $ ls -Fla
drwxrwsr-x 1 tomh www 0 Apr 25 12:32 ./
drwxrwxrwt 1 root root 0 Dec 31 1969 ../
-rw-rw-r-- 1 tomh www 0 Apr 25 12:33 testfile
-----------------------------------
The test in the ramfs file system shows the correct behavior. So, it
must be a filesystem issue, and not a kernel or user setting issue.
Any ideas here? Is this simply a bug/limitation/"feature" of YAFFS?
Or is there some mount option I should be using? My /etc/fstab line
looks like this:
/dev/mtdblock/1 / yaffs defaults,noatime,grpid 0 0
I added the "grpid" thing in hopes that it would help, but of course
it didn't.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|