[opensuse] Problem writing to drive shared by Vista and Suse 10.3
I have a 300g drive with a vfat filesystem (created with mkfs.vfat) that I write files (well I want to write files to) to from both opensuse 10.3 and windows vista. (dual boot config, this filesystem is never mounted to both at once) However, when booted into opensuse only root can write to the filesystem and chmod has no effect. (For example chmod 777 /mnt/data01/Documents (the mount point) appears to run successfully because $? = 0, however the permissions are not changed) I did not see anywhere in vista where I could set permissions on the directory as you could in XP. The output of mount -v shows only one option - rw. #mount -v | grep hda1 /dev/hda1 on /mnt/data01 type vfat (rw) Anyone have any suggestions?? Thanks, CC -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Chuck wrote:
I have a 300g drive with a vfat filesystem (created with mkfs.vfat) that I write files (well I want to write files to) to from both opensuse 10.3 and windows vista. (dual boot config, this filesystem is never mounted to both at once)
However, when booted into opensuse only root can write to the filesystem and chmod has no effect. (For example chmod 777 /mnt/data01/Documents (the mount point) appears to run successfully because $? = 0, however the permissions are not changed)
I did not see anywhere in vista where I could set permissions on the directory as you could in XP.
Vista (and XP is the same!!) cannot grant file access permissions to your drive because FAT does not support it. In order to get this for NT4/w2k/XP/Vista/2k03, you will need to use ntfs instead. kind regards Eberhard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I was initially trying to use ntfs and even root was unable to write to it. =( -Chuck On 1/12/08, Eberhard Roloff <tuxebi@gmx.de> wrote:
Chuck wrote:
I have a 300g drive with a vfat filesystem (created with mkfs.vfat) that I write files (well I want to write files to) to from both opensuse 10.3 and windows vista. (dual boot config, this filesystem is never mounted to both at once)
However, when booted into opensuse only root can write to the filesystem and chmod has no effect. (For example chmod 777 /mnt/data01/Documents (the mount point) appears to run successfully because $? = 0, however the permissions are not changed)
I did not see anywhere in vista where I could set permissions on the directory as you could in XP.
Vista (and XP is the same!!) cannot grant file access permissions to your drive because FAT does not support it.
In order to get this for NT4/w2k/XP/Vista/2k03, you will need to use ntfs instead.
kind regards Eberhard
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- Chuck Carson - Sr. Software Engineer Galileo Educational Solutions -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2008-01-12 at 10:59 -0600, Chuck wrote:
I was initially trying to use ntfs and even root was unable to write to it. =(
There is a page in the wiki explaining why and how to solve that. You can also use ext3 in windows... - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHiQe1tTMYHG2NR9URArzTAJ9saaG/wxSy01LZaAP4497EN0bbAgCghc6A WeLzs6usi17se1UIjHX/mh0= =IUv9 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2008-01-12 at 10:52 -0600, Chuck wrote:
I have a 300g drive with a vfat filesystem (created with mkfs.vfat) that I write files (well I want to write files to) to from both opensuse 10.3 and windows vista. (dual boot config, this filesystem is never mounted to both at once)
However, when booted into opensuse only root can write to the filesystem and chmod has no effect. (For example chmod 777 /mnt/data01/Documents (the mount point) appears to run successfully because $? = 0, however the permissions are not changed)
Yes, that's intentional. The only method to change the permissions is to change them at mount time, or editing the fstab file. By default files belong to the user that mounted it. For instance: /dev/hda1 /windows/C vfat noauto,users,gid=users,fmask=0117,dmask=0007,iocharset=iso8859-1,codepage=437 0 0 You can find more options in the mount manual. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHiQdatTMYHG2NR9URAqJfAJ429ujiDvzXxcLuxuPKmZQkDdXqQQCfdvYU Oe58StFEFj3cHvCproRkpE4= =+fzt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Then something is bugged: mkfs.ntfs -f -v /dev/hda1 mount -t ntfs -o rw,gid=users,fmask=0000,dmask=0000 su - ccarson ccarson@hummer:/mnt > id uid=1000(ccarson) gid=100(users) groups=16(dialout),33(video),100(users) ccarson@hummer:/mnt> cd /mnt/ ccarson@hummer:/mnt> ls -la total 12 drwxr-xr-x 3 root root 4096 2008-01-11 14:19 . drwxr-xr-x 24 root root 4096 2008-01-12 06:35 .. drwxrwxrwx 1 root users 4096 2008-01-12 12:45 data01 cd data01 ccarson@hummer:/mnt/data01> mkdir test mkdir: cannot create directory `test': Permission denied ccarson@hummer:/mnt/data01> touch test touch: cannot touch `test': Permission denied ccarson belongs to users and is trying to create a file/directory underneath a directory with wide open perms. (0777) Even root is now unable to create files under /mnt/data01, however changing the permissions of /mnt/data01 at least now has the cosmetic affect of getting changed: ie: hummer:/mnt/data01 # chmod 0700 /mnt/data01/ && echo $? 0 hummer:/mnt/data01 # ls -ld /mnt/data01/ drwx------ 1 root users 4096 Jan 12 12:45 /mnt/data01/ In the log I can see where it is using ntfs v3.1 which is what is needed for Vista compatability (per the documentation anyway) Anyone else get this to work... -CC On 1/12/08, Carlos E. R. <robin.listas@telefonica.net> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2008-01-12 at 10:52 -0600, Chuck wrote:
I have a 300g drive with a vfat filesystem (created with mkfs.vfat) that I write files (well I want to write files to) to from both opensuse 10.3 and windows vista. (dual boot config, this filesystem is never mounted to both at once)
However, when booted into opensuse only root can write to the filesystem and chmod has no effect. (For example chmod 777 /mnt/data01/Documents (the mount point) appears to run successfully because $? = 0, however the permissions are not changed)
Yes, that's intentional.
The only method to change the permissions is to change them at mount time, or editing the fstab file. By default files belong to the user that mounted it.
For instance:
/dev/hda1 /windows/C vfat noauto,users,gid=users,fmask=0117,dmask=0007,iocharset=iso8859-1,codepage=437 0 0
You can find more options in the mount manual.
- -- Cheers, Carlos E. R.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFHiQdatTMYHG2NR9URAqJfAJ429ujiDvzXxcLuxuPKmZQkDdXqQQCfdvYU Oe58StFEFj3cHvCproRkpE4= =+fzt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- Chuck Carson - Sr. Software Engineer Galileo Educational Solutions -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2008-01-12 at 12:57 -0600, Chuck wrote:
Then something is bugged:
mkfs.ntfs -f -v /dev/hda1 mount -t ntfs -o rw,gid=users,fmask=0000,dmask=0000
Hold on, my instructions were for vfat, not ntfs: I don't use ntfs. Are you sure you will be able to write with that mask? How does "mount | grep /dev/hda1" report the mount? I would also format that disk using windows.
Even root is now unable to create files under /mnt/data01, however
I think either the partition was not clossed properly, or the mask is wrong. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHiRkMtTMYHG2NR9URAsU5AKCWtL+YPwHccGhIFuj1K0NjRFZFBwCgjwIJ ZrTQ538UM1+psgaf4FDeR8Y= =akh1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Chuck
-
Eberhard Roloff