LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   No access to NTFS mounts for regular user account (https://www.linuxquestions.org/questions/slackware-14/no-access-to-ntfs-mounts-for-regular-user-account-376102/)

lowpro2k3 10-23-2005 02:46 PM

No access to NTFS mounts for regular user account
 
I can only browse my NTFS mounts as root, I'm trying to switch over to doing just about everything as a regular user right now. As this user, I can't browse my NTFS mounts. When they become mounted, the permissions are 'dr-x------ root root'. I've tried messing around with my /etc/fstab file and modifying these lines:

Code:

/dev/hda1        /mnt/c-drive    ntfs        ro              1  0
/dev/hdb1        /mnt/g-drive    ntfs        ro              1  0

to this
Code:

/dev/hda1        /mnt/c-drive    ntfs        user,ro              1  0
/dev/hdb1        /mnt/g-drive    ntfs        user,ro              1  0

They are both mounted on boot, and I want regular users to have read-only access to them.

edit: I should also mention that 'chmod 755 /mnt/g-drive' fails because its a read-only filesystem. When I unmount the filesystem, the empty /mnt/g-drive directory defaults to 755 permissions. When I remount, it goes back to 500 permissions.

I just tried using a program I found in my KDE->System menu, 'xfce fstab mount manager'. It tries to do the same thing, run a chmod command. This fails because the file system is read-only.

mago 10-23-2005 02:50 PM

try users,ro instead

lowpro2k3 10-23-2005 02:57 PM

OK, I made the changes, unmounted and re-mounted the partitions, is this all I should have to do? Because I changed 'user' to 'users', umounted and remounted the partitions and they still switch to the permissions I described above.

I was going to try 'users' since I read it in mount(8), but it seems basically the same except it allows regular users to umount a partition as well. I don't really want/need this functionality. I guess I'll try rebooting and post results just to be safe (keeping the changes I made).

EDIT: I tried making the changes above, rebooting -> nothing changed. I still cannot browse the mount points as a regular user.

grautu 10-23-2005 04:52 PM

Code:

/dev/hda1        /mnt/c-drive    ntfs        ro,umask=0              1  0

Woodsman 10-23-2005 05:03 PM

This is from my fstab:

/dev/hda2 /mnt/nt_c1 ntfs noauto,user,ro,exec,umask=0222 0 0

/dev/hda7 /mnt/nt_e ntfs ro,exec,umask=0222 0 0

In the first line I use noauto because I don't always need access to that partition. I use the user option so that any user login account on my box can mount the partition later if needed. You can ignore those options if you want the partition accessible all the time and the second line shows how I mount an ntfs partition that I usually always need access to.

I hope this helps.

lowpro2k3 10-23-2005 05:21 PM

Quote:

Originally posted by grautu
Code:

/dev/hda1        /mnt/c-drive    ntfs        ro,umask=0              1  0

Quote:

Originally posted by Woodsman
This is from my fstab:

/dev/hda2 /mnt/nt_c1 ntfs noauto,user,ro,exec,umask=0222 0 0

/dev/hda7 /mnt/nt_e ntfs ro,exec,umask=0222 0 0

In the first line I use noauto because I don't always need access to that partition. I use the user option so that any user login account on my box can mount the partition later if needed. You can ignore those options if you want the partition accessible all the time and the second line shows how I mount an ntfs partition that I usually always need access to.

I hope this helps.

Thanks very much, I appended a umask of 0 to mount options field and it works the way I had hoped. Theres one issue crossed off my list ;)


All times are GMT -5. The time now is 04:21 PM.