NTFS permissions on an automounted USB disk, SUSE 9.3
Hi, How can I change permissions on an automounted USB disk with NTFS? The filesystem is automatically mounted with the following options: milou:~ # mount /dev/sda5 on /media/MR_NTFS type subfs (rw,nosuid,nodev,sync,fs=ntfs) and only root can read the data: milou:~ # ls -l /media/MR_NTFS/ total 412 drwx------ 1 root root 4096 2005-10-13 12:31 . drwxr-xr-x 11 root root 296 2005-10-21 12:57 .. drwx------ 1 root root 417792 2005-10-13 12:32 DICOM drwx------ 1 root root 0 2005-06-03 17:17 System Volume Information According to /var/log/messages, the corresponding command was: Oct 21 12:57:16 milou hal-subfs-mount[14989]: registered at resmgrd and called(0) /bin/mount -t subfs -o fs=ntfs,sync,nosuid,nodev,exec /dev/sda5 "/media/MR_NTFS" I specified /dev/sda5 /media/MR_NTFS subfs ro,uid=667,gid=667,umask=0002,nls=utf8 0 0 in /etc/fstab but this setting didn't have any effect. Any suggestions? The 500 GB external USB disk is used to transfer data between MS-Windows and SUSE 9.3. -- A.M.
On 21/10/05, Alexandr Malusek
Hi,
How can I change permissions on an automounted USB disk with NTFS?
The filesystem is automatically mounted with the following options: milou:~ # mount /dev/sda5 on /media/MR_NTFS type subfs (rw,nosuid,nodev,sync,fs=ntfs)
and only root can read the data: milou:~ # ls -l /media/MR_NTFS/ total 412 drwx------ 1 root root 4096 2005-10-13 12:31 . drwxr-xr-x 11 root root 296 2005-10-21 12:57 .. drwx------ 1 root root 417792 2005-10-13 12:32 DICOM drwx------ 1 root root 0 2005-06-03 17:17 System Volume Information
According to /var/log/messages, the corresponding command was: Oct 21 12:57:16 milou hal-subfs-mount[14989]: registered at resmgrd and called(0) /bin/mount -t subfs -o fs=ntfs,sync,nosuid,nodev,exec /dev/sda5 "/media/MR_NTFS"
I specified /dev/sda5 /media/MR_NTFS subfs ro,uid=667,gid=667,umask=0002,nls=utf8 0 0 in /etc/fstab but this setting didn't have any effect.
Any suggestions? The 500 GB external USB disk is used to transfer data between MS-Windows and SUSE 9.3.
-- A.M.
I don't know if it will work but perhaps try setting
Kevanf1
On 21/10/05, Alexandr Malusek
wrote: Oct 21 12:57:16 milou hal-subfs-mount[14989]: registered at resmgrd and called(0) /bin/mount -t subfs -o fs=ntfs,sync,nosuid,nodev,exec /dev/sda5 "/media/MR_NTFS"
I specified /dev/sda5 /media/MR_NTFS subfs ro,uid=667,gid=667,umask=0002,nls=utf8 0 0 in /etc/fstab but this setting didn't have any effect.
I don't know if it will work but perhaps try setting
that way it will readable (and writable if you dare and have the right software) by all users.
Note that the automatically launched /bin/mount command completely ignores the setting in /etc/fstab. Thus setting umask=000 wouldn't help. There 2 more questions then: - Do I have to manually remind a process that /etc/fstab has been changed? - How can I simulate the unplugging and plugging of the USB disk via a command? (The disk is connected to a machine which is 20 minutes of walk away ...) Using for instance # umount /media/MR_NTFS # OK # mount /media/MR_NTFS # OK, but /media/MR_NTFS is empty doesn't work. It somehow breaks submount. -- A.M.
participants (2)
-
Alexandr Malusek
-
Kevanf1