On Wed, 2006-06-07 at 12:50 +0200, Holger Keilhauer wrote:
Hi! i have a problem with ntfs partitions. (openSUSE 10.1) I found that the partitions per default was not mounted. I added the mount informations in the fstab (mounted: read only). But the problem is, the owner is root. I cant acces the devices as user. Just as root works fine. What can i do to give all users access to this patritions?
The default umask on a NTFS mount is "0077" -- i.e., it blocks rwx legacy UNIX permissions for _all_ except root. Add "umask=0222" to the mount options in your fstab entry (or after -o at the command-line). It's typically a good idea to assign a uid/gid to ownership as well. You can limit access to a group by assigning a gid and setting "umask=0227". I am actually a bit more anal. I set "uid" to someone with minimal permission and "umask=7227". The last thing I want is someone accidentally firing off a Windows executable if they accidentally had the WINE-run service running (which I never enable, but some WINE packages do upon installation/update), and especially not if the uid is root and maybe suid is somehow mapped (yes, I'm anal). I don't think "noexec" and "nosuid" work and, again, I'm not sure of the logic of the WINE-run service. E.g., /dev/sda1 /mnt/c ntfs ro,umask=7222 0 0 Or if you have a gid assigned, and want to limit access to the gid: /dev/sda1 /mnt/c ntfs ro,uid=nouser,gid=ntfs,umask=7227 0 0 I actually like to use the automounter, instead of putting in "user", so users can only access the data with the exact options I specify and it is only mounted when it is actually accessed. BTW, another option to know about is "posix=1" -- which makes it case sensitive, including providing the mangled 8.3 names which appear as hard links to the real file name. This is far more compatible with native Linux programs accessing the data. -- Bryan J. Smith Professional, technical annoyance mailto:b.j.smith@ieee.org http://thebs413.blogspot.com ------------------------------------------------------- Illegal Immigration = "Representation Without Taxation" -- 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