Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-13-2004, 03:07 PM   #1
Registered: May 2004
Posts: 86

Rep: Reputation: 15
non-root user cannot access Windows partition

i have a dual-boot Gentoo and Windows XP computer. one of the partitions on my harddrive, /dev/hda7, is a Fat32 partition created by WinXP. my goal is to have that partiion be a location for shared data between the OSes (firefox bookmarks, thunderbird mail, documents, etc.)

my /etc/fstab has this entry:

/dev/hda7 /mnt/win_f vfat noatime 0 1

this seems to work in that when the system boots up, if i su to root, i can see the contents of that partition

however, if i am not su'ed, but logged in as my normal desktop user, i cannot access that drive.

here is the permissions on /mnt/win_f

drwxr--r-- 8 root root 16384 Jan 1 1970 win_f

i tried to change the permissions but it seemed unsuccessful. how do i allow this non-root user to access this partition? does that user have to be a member of a group or something that I didn't give it access to?


~ Justin
Old 08-13-2004, 03:22 PM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled could try adding the word "user" (or "users" possibly..."user" should do) to the fstab options section:

/dev/hda7 /mnt/win_f vfat user,noatime 0 1

I don't guarantee this works, but basically it should allow normal users access that too. don't shoot me if it doesn't help you
Old 08-13-2004, 03:44 PM   #3
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
The default for NTFS is accesable by root only. For others to access it I had to add a umask= to the line in /etc/fstab. I currently have umask=777, which is probably not the most secure, but it works.
Old 08-13-2004, 04:33 PM   #4
Registered: May 2004
Posts: 86

Original Poster
Rep: Reputation: 15
after a good ol' session of RTFM, i ended up with the following in fstab which seems to work (in a very unsecure way but this is only a desktop):

/dev/hda7 /mnt/win_f vfat auto,umask=000 0 1

now when i boot my normal user can go to /mnt/win_f and read/write without doing anything else first, which is exactly what i want

it seems that the umask is opposite of the bits for chmod, so counterintuitively 000 means access for all

thanks for the help,

~ Justin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot access windows partition as simpler user swadesh Slackware 10 02-08-2005 02:19 PM
cannot access windows partition as simpler user swadesh Linux - Software 1 02-08-2005 01:25 PM
Need Access To Windows Partition Without Being Logged As Root Superme Linux - Software 4 01-12-2005 08:55 PM
Access my windows partition as a normal user necbrownie Slackware 5 10-13-2004 04:22 PM
Can only access Windows partition through root mlsbraves Slackware 4 10-12-2004 04:29 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration