Help - Search - Members - Calendar
Full Version: Can't access /mnt/windows/ as a regular user
MandrivaUsers.org > Advanced Topics > Security
MrMorden
Hello, everyone:

When I try to access my windows partition as a regular user, I get...

[???????@localhost mnt]$ cd windows
bash: cd: windows: Permission denied
[???????@localhost mnt]$

But it works as root....

[???????@localhost mnt]$ su
Password:
[root@localhost mnt]# cd windows
[root@localhost windows]#

In my attempts to solve the problem, I have attempted to use mcc to set the permissions for /mnt/windows/ for my user account to 744, and gotten the same results as above.

Thank you,
MrMorden
ianw1974
Edit your /etc/fstab for the /mnt/windows entry, and make sure with the options you put:

CODE
umask=0


the entry will be like this:

CODE
/dev/sda1 /mnt/windows ntfs umask=0,otheroptions here 1 2


for example, so that you can see the format.
MrMorden
Made your changes, same result. Here's my fstab:

CODE
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda1 / ext2 umask=0022,nls=iso8859-1,ro 1 1
/dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=iso8859-1,sync,codepage=850,noauto,ro,exec,users 0 0
/dev/hdb1 /mnt/windows ntfs umask=0 ro,users,auto 0 0
none /proc proc defaults 0 0
/dev/hda6 /usr reiserfs notail 1 2
/dev/hda5 swap swap defaults 0 0
/dev/hdd /mnt/cdrom1 auto pamconsole,exec,noauto,utf8,codepage=850,iocharset=iso8859-1,managed 0 0
/dev/sda1 /mnt/removable vfat pamconsole,exec,noauto,codepage=850,iocharset=iso8859-1,managed 0 0


I also tried removing the ro (read-only?), and changing the 0 0 at the end of the windows entry to 1 2, to match your suggestion with no success.
SilverSurfer60
This is my fstab
CODE
/dev/hdb5 / ext2 defaults 1 1
/dev/hdb6 /bigun ext3 defaults 1 2
/dev/hdb7 /home ext3 defaults 1 2
/dev/hdc /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/hdd /media/cdrom2 auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /media/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=ut
f8,sync 0 0
/dev/hda1 /mnt/windows ntfs umask=0,nls=utf8,ro 0 0
none /proc proc defaults 0 0
/dev/hdb1 /spare ext3 defaults 1 2
/dev/hdb8 swap swap defaults 0 0

and I have access as a normal user no problems. I've not tried writing to it but I can certainly read from it.
ianw1974
You've got a space between umask=0 and the ro!!! That's why it fails, it should be a comma between them.

It also requires doing:

CODE
umount /mnt/windows
mount /mnt/windows


to remount and use the changes.
MrMorden
Adding the comma fixed the problem. Here is my fstab as it now stands:

CODE
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda1 / ext2 umask=0022,nls=iso8859-1,ro 1 1
/dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=iso8859-1,sync,codepage=850,noauto,ro,exec,users 0 0
/dev/hdb1 /mnt/windows ntfs umask=0,ro,users,auto 0 0
none /proc proc defaults 0 0
/dev/hda6 /usr reiserfs notail 1 2
/dev/hda5 swap swap defaults 0 0
/dev/hdd  /mnt/cdrom1 auto pamconsole,exec,noauto,utf8,codepage=850,iocharset=iso8859-1,managed 0 0
/dev/sda1 /mnt/removable vfat pamconsole,exec,noauto,codepage=850,iocharset=iso8859-1,managed 0 0


Thanks again!
ianw1974
No probs 2thumbsup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.