ts-7000
[Top] [All Lists]

[ts-7000] Re: Set group ID bit and directories with YAFFS

To:
Subject: [ts-7000] Re: Set group ID bit and directories with YAFFS
From: "Tom Hansen" <>
Date: Tue, 25 Apr 2006 17:41:32 -0000
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/
 


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU