Jump to content
Sign in to follow this  
MrMorden

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

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...