Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have winXP and RH7.2 on two different disks.
Linux root user can write to windows disk. How do we give permission others to write to windows disk?Thanks for any help

Copied from my answer to sjU59 in the thread above this one:
Add this line to your /etc/fstab file. The option you are looking for is umask.
/dev/hda1 /mnt/windows ntfs ro,umask=000 0 0
now mount with:
mount /mnt/windows
Keep in mind that ntfs is READ ONLY in Linux. There is support for ntfs write, but it is very dangerous (data corruption). By mounting read only (ro), you avoid any problems. You will be able to see your files just fine, but not write to that partition. If you want to write to a win partition from both XP and Linux, use a fat32 file system.

Thanks Barry;
If the window partion is fat32. What would be in /etc/fstab insted of
/dev/hda1 /mnt/windows ntfs ro,umask=000 0 0

change the filesystem to vfat, drop the umask option and the rw option. You can specify "defaults", and "user" if you want a normal user to be able to mount it. Also, if you dont' want it automatically mounted at boottime, use "noauto".
/dev/hda1 /mnt/windows vfat defaults,user 0 0
read "man fstab" for a full explanation

The line
"/dev/hda1 /mnt/windows vfat defaults,user 0 0"
allows users to mount the specified file system,however,users still don't have the permission to write to fat32.
Is there any other restriction preventing users from writing to fat32?
Always changing to su is troublesome.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |