LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-24-2005, 07:02 AM   #1
rezzie
LQ Newbie
 
Registered: Mar 2005
Distribution: CRUX
Posts: 16

Rep: Reputation: 0
can't access ntfs partition as normal user


i have an ntfs partition on /dev/hda1, but when i mount it as normal user i cant read anything from it

there is no problem when mounting and accessing fat partition on /dev/hda5

here is two line from my /etc/fstab

/dev/hda1 /mnt/hda1 ntfs ro,user 0 0
/dev/hda5 /mnt/hda5 vfat rw,user,umask=133 0 0
 
Old 11-24-2005, 07:22 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Try the umask parameter (e.g. umask=000) for the ntfs partition as well. Also check the permission of the mountpoint (/mnt/hda1).
 
Old 11-24-2005, 07:35 AM   #3
rezzie
LQ Newbie
 
Registered: Mar 2005
Distribution: CRUX
Posts: 16

Original Poster
Rep: Reputation: 0
i dont think the usmak can solve the problem

but here is information about permission:

/dev/hda1
owner: root
group: disk
chmod:660
/dev/hda5
owner: root
group: disk
chmod:660

/mnt/hda1
owner: root
group: disk
chmod: 660
/mnt/hda5
owner: root
group: disk
chmod: 660

when i mount the /dev/hda1 i notice that the permission
of the /mnt/hda1 changed to:
/mnt/hda1
owner: root
group: root
chmod: 600

note: the normal user account is a member of 'disk' group
 
Old 11-24-2005, 08:10 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Why don't you think umask will help? I am willing to learn!

From what I know it controls the default permissions on the mounted filesystem and this is what goes wrong here. You can also try to set gid=disk, but with these permissions set, the group still does not have access.

But maybe I am wrong.
 
Old 11-26-2005, 08:03 AM   #5
rezzie
LQ Newbie
 
Registered: Mar 2005
Distribution: CRUX
Posts: 16

Original Poster
Rep: Reputation: 0
because i've tried it...

and from what i read it will change the default permission of all files on the mounted directory NOT the mounted directory itself



hmmm, i think i'll read more on man pages carefully
 
Old 11-26-2005, 08:09 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
/dev/hda2 /mnt/windows ntfs user,umask=000

that's my line in Fstab, i can read from both root/normal user.
 
Old 11-26-2005, 09:09 AM   #7
rezzie
LQ Newbie
 
Registered: Mar 2005
Distribution: CRUX
Posts: 16

Original Poster
Rep: Reputation: 0
well, i think i found the solution, it is still related to umask (sorry to abisko00 for saying that wouldn't solve the problem )

i must enter the umask four digit to get it work correctly like what i want
 
  


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
why doesnt i have any access to my ntfs partition as user? mannnetobbelob Linux - Software 25 11-11-2010 05:10 AM
Not Able to Access NTFS as normal user rob0t Slackware 6 09-21-2005 07:57 PM
Access my windows partition as a normal user necbrownie Slackware 5 10-13-2004 05:22 PM
FSTAB entry for normal user to access windows partition rmanocha Linux - Software 4 01-29-2004 05:33 PM
An NTFS partition not accessible to the normal user fiod Linux - General 2 09-28-2003 11:29 AM


All times are GMT -5. The time now is 02:11 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration