Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-12-2005, 11:03 AM   #1
Registered: Jul 2004
Location: Smiths Falls Ontario (near ottawa [our capital])
Distribution: slackware 9.1, redhat 9.0, PHLAK, SuSE 9.0Pro windows XP (HEAVILY MODIFIED)
Posts: 111

Rep: Reputation: 15
Need Access To Windows Partition Without Being Logged As Root

i have some problems, i need files on my windows partition and i have the partition mounted i just need to be able to access it when im not logged in as root, because a program i use needsme to be a regular user not root!?!

is it possible to mount my windows partition without being root

im running suse9.0 profesional and im in KDE

Old 01-12-2005, 11:25 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Yes. You need to add the user option to the partition for a regular user to add the drive. Alternatively, you could remove the noauto option to cause it to be automatically mount at boot time.

I think that you can do this though YaST, but you can also do it in /etc/fstab. For details:
man fstab
NB: There are a couple of other security points that must be met before regular users can access the drive, but not (I think) for mounting it.
Old 01-12-2005, 03:36 PM   #3
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
To be a bit more precise, you should read the 'mount' man page, especially the part "Mount options for fat".
I have done this once, and used something like: (in mount options column in fstab, see man fstab
This should give al files in the windows partitions the permissions 555, (see man umask) which means everybody may execute and read the files. Execute is important, since dirs should be executable to ask for its contents!
The gid-thing means the group whith number 10 (normally wheel) are the group owners of al files, and since anybody including group may execute the files, users which are a memeber of wheel may execute them. But notice this isn't important, since the permission becomes 555, which means EVERYBODY may execute and read the files. Change the values of gid and umask to you're needs, and instead of gid=010 you could use uid=100, where uid, in this case 100, is you're user-id number.
You can find group and user-id numbers respectively in /etc/groups and /etc/passwd.
Old 01-12-2005, 04:10 PM   #4
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Here's how my entry in the /etc/fstab looks. The entry is for /dev/hdb1 fat partition.
After making the changes in your /etc/fstab, this is one of those rare occasions where you might need to reboot for things to take effect.

To make it writable for users with a group id of 500, edit the /etc/fstab file to include the following line /dev/hdb1 /mnt/win vfat gid=500,umask=002 0 0

To give the user complete control of that directory, try something like this in the fstab....
/dev/hdb1 /mnt/win vfat uid=500,gid=500,umask=000 1 0
Old 01-12-2005, 08:55 PM   #5
Registered: Jul 2004
Location: Smiths Falls Ontario (near ottawa [our capital])
Distribution: slackware 9.1, redhat 9.0, PHLAK, SuSE 9.0Pro windows XP (HEAVILY MODIFIED)
Posts: 111

Original Poster
Rep: Reputation: 15
OK il give that a shot thanks so much


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can only access Windows partition through root mlsbraves Slackware 4 10-12-2004 04:29 AM
non-root user cannot access Windows partition curmudgeon42 Linux - General 3 08-13-2004 04:33 PM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
Unable to access X windows logged in as root. sanfran49 Linux - Software 1 02-12-2004 02:08 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:17 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