LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   why doesnt i have any access to my ntfs partition as user? (https://www.linuxquestions.org/questions/linux-software-2/why-doesnt-i-have-any-access-to-my-ntfs-partition-as-user-41685/)

mannnetobbelob 01-16-2003 07:35 AM

why doesnt i have any access to my ntfs partition as user?
 
i can only reach my ntfs partition with root and not my user.
i have redhat 8.0 and i have mounted the ntfs partition.
:Pengy:

ajk 01-16-2003 07:41 AM

read thread "changing permissions of a command"

how do you mount?

JoC 01-17-2003 08:42 AM

HA HA HA HA HA HA!!!!!!!


sorry but i had to laugh!! AJK i love your comparison of linux to a tipi!!!

MasterC 01-17-2003 09:09 AM

Yeah, I really liked that too! :)

You'll need to either mount it with user permissions (the hard way) or edit your /etc/fstab entry to allow users to browse/mount the drive. You'll want it to look something like:
/dev/hdX /mnt/ntfs ntfs users,owner,umask=222,ro 0 0

I always throw in several to show ideas, but they will work. However, you should read up on the manpage for mount for more information regarding the "options" section of /etc/fstab.

Cool

macshark 01-20-2003 10:06 AM

i tried that line of code you wrote,

/dev/hda5 /mnt/windows ntfs user,owner,umask=222,ro 0 0

i am still unable to access the mounted partition, shoots out the message, "not enough permissions to read /mnt/windows"

i thought the keyword "user" would allow any user to read all the contents in that mounted parition.

MasterC 01-20-2003 12:39 PM

Try "users" instead of "user" See if that helps any.

Cool

macshark 01-20-2003 03:22 PM

nope, still unable to access the partition, "not enough permissions to read"

MasterC 01-20-2003 03:41 PM

hmmm...

Who's mounting it? If you mount it as your user you should be able to get in. Try mounting it with (as a regular user):
mount /mnt/windows

And then try getting in. If you still can't, maybe it's a problem on the directory on which it is mounted. Try:
chmod 755 /mnt/windows (as root)
Then try entering again.

Cool

macshark 01-20-2003 03:56 PM

it is automatically on boot.

tried
chmod 755 /mnt/windows

i am able to access the partition, but permission was denied to "ls"" the contents at the command line.

was unable to access the partition from konqueror too. same message "not enough permissions"

thks for your quick response.

Quote:

Originally posted by MasterC
hmmm...

Who's mounting it? If you mount it as your user you should be able to get in. Try mounting it with (as a regular user):
mount /mnt/windows

And then try getting in. If you still can't, maybe it's a problem on the directory on which it is mounted. Try:
chmod 755 /mnt/windows (as root)
Then try entering again.

Cool


MasterC 01-20-2003 05:16 PM

Are you able to get in there with root though? If root can get in, then we can look further, but if root's not even getting in, then there's a problem either with the device, or with the entry in /etc/fstab.

Cool

android1654 01-20-2003 06:23 PM

help
 
I am having the EXACT same problem with the exact same type setup. if anyone can help or if you figure it out PLEASE let me know

MasterC 01-20-2003 07:02 PM

Please post your /etc/fstab But just to get the ball rollin for you, here's something to try:
/dev/hdX /mnt/winbloze ntfs users,user,noauto,ro,umask=022 0 0

The umask of 022 won't allow writing (the 0) unless you've explicitly taken the steps to allow writing to NTFS, and you would know if you did or not, so go ahead and use that umask.

Cool

android1654 01-20-2003 07:59 PM

fstab
 
as of right now heres my the line in my fstab which isnt working

/dev/hda1 /mnt/c ntfs noauto,users,user,ro,unmask=022 0 0

MasterC 01-20-2003 08:01 PM

Can root enter the directory and list the files?

android1654 01-20-2003 08:05 PM

yes, root doesnt have any problems, but just like macshark had described before the user account gets restricted access errors at all different attempts to access the files


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