Re: [SLE] SuSE 9.3 && subfs && floppy && chmod
jdd sur free wrote:
Zvone Zagar wrote:
Hello,
Today I came across of rather perplexing feature (or something else) i can not get it.
If a regular user opens floppy it gets mounted with the following permissions:
rwx r-x r-x
So far so good, but if a 'root' issues 'chmod 666', permissions change to:
rw- r-- r--
So the root can not give the group write permission (the same for the other).
In this case the root is not an almighty one !!
Any clue ? Thanks.
Regards Zvone Zagar
floppy write protected? jdd
If only I made such a mistake .... User CAN delete files on /media/floppy ..... In the meantime i mounted it by 'hand' - just out of curiosity: mount -t msdos -o rw,uid=500 /dev/fd0 /mnt/floppy The result is the same : i can't set write bit and period. Thanks Zvone Z. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Zvone Zagar wrote:
jdd sur free wrote:
Zvone Zagar wrote:
Hello,
Today I came across of rather perplexing feature (or something else) i can not get it.
If a regular user opens floppy it gets mounted with the following permissions:
rwx r-x r-x
So far so good, but if a 'root' issues 'chmod 666', permissions change to:
rw- r-- r--
So the root can not give the group write permission (the same for the other).
In this case the root is not an almighty one !!
Any clue ? Thanks.
Regards Zvone Zagar
floppy write protected? jdd
If only I made such a mistake .... User CAN delete files on /media/floppy .....
In the meantime i mounted it by 'hand' - just out of curiosity:
mount -t msdos -o rw,uid=500 /dev/fd0 /mnt/floppy
The result is the same : i can't set write bit and period.
Thanks Zvone Z.
Well, i have made an ext2 fs system on the diskette and i can set write bit. It seems (although obvious) that on floppies shared between WINs and Linux (fat) is not possible to use chmod 666 or i'm wrong AGAIN. Regards Zvone Z. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Friday 21 July 2006 09:26, Zvone Zagar wrote:
Well, i have made an ext2 fs system on the diskette and i can set write bit. It seems (although obvious) that on floppies shared between WINs and Linux (fat) is not possible to use chmod 666 or i'm wrong AGAIN.
Hi Zvone, FAT filesystems aren't sophisticated enough to support *nix style permissions schemes. It knows nothing about 'users' or 'groups' and no physical location was built into it's structure to store such information. It /does/ know read+write and read-only, though. hth & regards, Carl -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Carl Hartung wrote:
On Friday 21 July 2006 09:26, Zvone Zagar wrote:
Well, i have made an ext2 fs system on the diskette and i can set write bit. It seems (although obvious) that on floppies shared between WINs and Linux (fat) is not possible to use chmod 666 or i'm wrong AGAIN.
Hi Zvone,
FAT filesystems aren't sophisticated enough to support *nix style permissions schemes. It knows nothing about 'users' or 'groups' and no physical location was built into it's structure to store such information. It /does/ know read+write and read-only, though.
hth & regards,
Carl
may be you have problems like me with vfat (look at the thread vfat and 10.1 - I had this trying to find an answer for you :-) now jdd@peter:~> ls /media/floppy/ -l total 303 -rwxr-xr-x 1 jdd users 310086 2006-07-21 19:20 yast-log-cd2.tgz so, yes, fvat don't have all the bells ext2 have, but the write flag should show up :-( jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
jdd sur free wrote:
Carl Hartung wrote:
On Friday 21 July 2006 09:26, Zvone Zagar wrote:
Well, i have made an ext2 fs system on the diskette and i can set write bit. It seems (although obvious) that on floppies shared between WINs and Linux (fat) is not possible to use chmod 666 or i'm wrong AGAIN.
Hi Zvone,
FAT filesystems aren't sophisticated enough to support *nix style permissions schemes. It knows nothing about 'users' or 'groups' and no physical location was built into it's structure to store such information. It /does/ know read+write and read-only, though.
hth & regards,
Carl
may be you have problems like me with vfat (look at the thread vfat and 10.1 - I had this trying to find an answer for you :-)
now
jdd@peter:~> ls /media/floppy/ -l total 303 -rwxr-xr-x 1 jdd users 310086 2006-07-21 19:20 yast-log-cd2.tgz
so, yes, fvat don't have all the bells ext2 have, but the write flag should show up :-(
jdd
Many thanks for the effort, The same behavior also with SuSE 9.0. So it is (V)FAT related. The whole mess came up when a user (once upon a time a Windows user - a bit spoiled) got mounted the floppy under root ID (not the user's)!!!. How did that happen (Using stock KDE under SuSE 9.3) ? Well i am out of luck (for the time being). So i tried to enable him to erase files on the floppy (using chmod, i think i could use chown, but it did no cross my mind). So i must find out what on the earth made the box mount the floppy under root ID. If something 'funny' will come out, i am going to open another subject. Thanks! Zvone Z. Zvone Z. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Zvone Zagar wrote:
jdd sur free wrote:
cross my mind). So i must find out what on the earth made the box mount the floppy under root ID.
vfat have no idea of what "root id" is. there are only "attribs" read only or writable, enabled for anybody and disabled by anybody :-( probably better for you to make your users learn mtools, much better for dos users jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (3)
-
Carl Hartung
-
jdd sur free
-
Zvone Zagar