LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-29-2004, 04:54 PM   #1
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
FSTAB entry for normal user to access windows partition


hey guys,
i am running slackware 9.1 on my machine...i have a NTFS windows partition.i want the normal user to be able to access this partition.my fstab entries look like this:
Code:
/dev/hdb2        /                reiserfs    defaults         1   1
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
/dev/hda1        /mnt/Windows     ntfs        noauto,owner,user,ro  0   2
/dev/hda6        /mnt/Knoppix     xfs         noauto,owner,user,rw  0   2
if you notice i have passed the user paramter to the windows partition...now a normal user can mount the partition but not access it...i can do mount /dev/hda1 as normal user and it works but then when i do cd /mnt/Windows it says access denied...now this is a real pain since i have all my music in that partition and i dont want to be copying it over everytime.
can someone point me to the right direction?
thanks

Last edited by rmanocha; 01-29-2004 at 04:56 PM.
 
Old 01-29-2004, 05:05 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
try just putting the options :
user, ro, umask=022
and see if you can mount and access it
 
Old 01-29-2004, 05:10 PM   #3
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
that worked...thanks a ton...but i dont understand this...how come i can cd into my knoppix partition as normal user but not into the windows partition as normal user until adding umask=022(btw i removed owner from the windows line...hope that is ok).
what does umask mean any way?
newayz thanks again.
 
Old 01-29-2004, 05:30 PM   #4
eeried
Member
 
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136

Rep: Reputation: 15
Hello, rmanocha,

I'd better give you this link: MOTUB

It's a rather long article but it's very helpful. it gives you sound advice on how to share a win partition permanently on a Linux platform and explains mask022 better than I would.

Permissions are a bit of a hassle i fond for newbies, but such useful options, aren't they,, but motub tells you all you need to know about fstab at first. her instructions works very well, from my own experience --being a newbie, and simply knowing about rwx and chmod.
I think you adapt certain instructions to your own case - distros are varied, as they should be -- but if you follow every step you can't go wrong -- even if what she calls the "dummy user" is not needed, you can always create it.

On my Linux (Libranet) "owner" is not used, but anyway "uid" replaces it.

There's a line about NTFS partitions (read-only, shouldn't write on it = ro)

PS: there shouldn't any space between the words, not even after the ,:
user, ro, umask=022 should be user,ro,umask=022

Have a good read!

Cheers,
 
Old 01-29-2004, 05:33 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
i wasn't implying spaces i was just making it clear on what the options were that would probably work ... just like with any other list of things in an english sentence you type comma follow by space and then the next item ... and since eeried analyzed it to that point, hopefully you didn't too
and also since it did work for him, then he must have done it right ..
 
  


Reply


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't access ntfs partition as normal user rezzie Linux - Newbie 6 11-26-2005 09:09 AM
cant access windows partition with mnt or editing fstab mayasedai Linux - General 13 03-17-2005 01:17 PM
Debian normal user cant mount windows shared partition silverstormboy Debian 3 01-14-2005 08:25 AM
Access my windows partition as a normal user necbrownie Slackware 5 10-13-2004 05:22 PM
fstab: giving a user acct read-only access to specific partition doorbits Linux - General 4 05-18-2004 03:11 PM


All times are GMT -5. The time now is 06:02 AM.

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