Mounting NTFS-partitions and getting readingrights for users.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mounting NTFS-partitions and getting readingrights for users.
Hi guys an gals.
I have a little problem with my ntfs-disks. When I try to mount it as my ordinary user (festiz) , it complains about me not beeing root. Although my /etc/fstab looks like this:
you didn't specify read only in your /etc/fstab like
/dev/hda3 /mnt/c ntfs ro,users,noauto 0 0
Same in mount. Now, usually the kernel supports only reading, not writing to ntfs. Maybe your distro is crying foul?
Also, after reboot and those lines in fstab there should be no reason to mount the partitions, since they are already mounted and you'd get an error.
Does sudo work from scripts? How is it passed the password?
Well since it says noauto in fstab it doesnt mount it automatically
The Password I have to put in manually. As it is now the discs get mounted when I log in with my festizuser from my .bash_profile.
I'd like them to automatically be mounted without me doing anything. But how do I do this? if I just let fstab do it it get rootrights.. If i place my script to be run from rc.local it still is root that runs the script and mounts. what preferences can I use so that ANY user can access the mounted partitions? If i need to specify the userid or groupid in fstab and thats the only way - how do I find these out without installing webmin?
Originally posted by Festiz Well since it says noauto in fstab it doesnt mount it automatically
The Password I have to put in manually. As it is now the discs get mounted when I log in with my festizuser from my .bash_profile.
I'd like them to automatically be mounted without me doing anything. But how do I do this? if I just let fstab do it it get rootrights.. If i place my script to be run from rc.local it still is root that runs the script and mounts. what preferences can I use so that ANY user can access the mounted partitions? If i need to specify the userid or groupid in fstab and thats the only way - how do I find these out without installing webmin?
change noauto to auto then they will be mounted when you boot up. and since you have listings in fstab you don't need to do mount with any flags. su into root and issue this command:
Originally posted by Festiz Well that doesnt give me the right rights now does it? It is still only root who can read it!! are you guys not reading my message clear enough?
I Want my nonsuperuserusers to be able to read a couple of NTFSpartiitons.
it should. the default mount permissions for mounting windows partitions is rwx-r-x-r-x.
try a line like this then if slack is doing things differently:
I solved it so that my at the moment only local user (festiz) can access it by putting in the uid and gid preferences in fstab. Do you btw know how I get hold of those numbers without using webmin?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.