LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2004, 12:27 AM   #1
tenmiles
Member
 
Registered: Nov 2004
Distribution: fedora core 3
Posts: 43

Rep: Reputation: 15
ntfs access denied


i recently installed fc3 and i have 2 ntfs partitons that i need mounted. i installed kernel-ntfs and i could access them, but i edited /etc/fstab so that they would mount on startup and it denies me permissions unless i am root. my fstab looks like this:
/dev/hdd1 /mnt/server vfat defaults,user,owner,umask=000 0 0
/dev/hdd2 /mnt/ntfs ntfs defaults,user,owner,ro 0 0
/dev/hda1 /mnt/win ntfs defaults,user,owner,ro 0 0
the first is one that works, but as you can see it is a vfat partiton. thanks
 
Old 11-25-2004, 01:36 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well it also works because of the umask, set that in the ntfs bits as well, also, I'd remove 'defaults' and supply your own args as you have.

Cool
 
Old 11-25-2004, 01:25 PM   #3
triet
Member
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 34

Rep: Reputation: 15
Question I've got the same problem

I've got the same problem as tenmiles. Here's my fstab entry:

/dev/hdh1 /NTFS ntfs ro,uid=leminhtriet,gid=leminhtriet,umask=0377 0 0

The partition is automounted on startup. However, i can't access it as any other user besides root. I've tried different combinations of umask but didn't help.

Any suggestions would be appreciated.
Thanks.
 
Old 11-26-2004, 12:58 AM   #4
tenmiles
Member
 
Registered: Nov 2004
Distribution: fedora core 3
Posts: 43

Original Poster
Rep: Reputation: 15
triet, the 3 in ur umask will take away the ability to execute and my handy dandy linux+ prep book (which i use to learn from) says that if you want to access the partiton then u need to have read and execute. all i had to do was add the umask and it worked fine.
 
Old 11-26-2004, 04:01 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Take away that preceding 0 as well, as that's your setuid, meaning, who owns the files, we don't want to stake claim, simply give permission. Three digits should suffice.

Cool
 
  


Reply

Tags
ntfs, permissions



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
Access Denied aje Linux - Newbie 7 10-18-2004 08:48 PM
Access denied?? Jaster Linux - Software 9 07-25-2004 07:42 PM
access denied crossfire_mania Linux - Software 2 01-28-2004 07:14 PM
Captive NTFS -- full r/w ntfs access for Linux spurious Linux - Software 6 01-09-2004 12:29 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration