Jump to content

Can't access /mnt/windows/ as a regular user


MrMorden
 Share

Recommended Posts

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

Edited by MrMorden
Link to comment
Share on other sites

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

 

umask=0

 

the entry will be like this:

 

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

 

for example, so that you can see the format.

Link to comment
Share on other sites

Made your changes, same result. Here's my fstab:

 

# 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.

Link to comment
Share on other sites

This is my fstab

/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.

Link to comment
Share on other sites

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:

 

umount /mnt/windows
mount /mnt/windows

 

to remount and use the changes.

Link to comment
Share on other sites

Adding the comma fixed the problem. Here is my fstab as it now stands:

 

# 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!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...