LinuxQuestions.org
Visit Jeremy's Blog.
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 01-26-2005, 04:39 PM   #1
chemdawg
Member
 
Registered: Jan 2005
Distribution: Mandriva
Posts: 206

Rep: Reputation: 31
unlocking a directory


I have a dual boot with 2 ntfs partitions, one is for windows xp, the other is for storage. I want to access the one for storage as user. I have successfully mounted it to the /mnt/windows direcotry, but every time it does that it locks that directory so that only root can get in. So, the only way i have to access that directory, which i want to be read only, is through file manager in super user mode. i want to access it as user. here's my fstab file:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hde3 / ext3 defaults,errors=remount-ro 0 1
/dev/hde7 /home ext3 defaults 0 2
/dev/hde6 none swap sw 0 0
/dev/hda /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdc /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/hde5 /mnt/windows ntfs ro,user,noauto,unmask=0022 0 0


hde5 is the partition i wish to access read only. i tried mounting it in other folders, owned by user but it locks me out of those, too.

i have been reading other's postings on this matter and even tried some suggestions, but so far none have worked for me.
 
Old 01-26-2005, 04:47 PM   #2
CluelessSteve
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.1 official + KDE 3.2
Posts: 25

Rep: Reputation: 15
Chemdawg, I'm a newbie also so don't jump all over me if this is off-base, but can it be a simple matter of setting the permissions for the NTFS directory using chmod?? Or is that way too simple for this issue?
 
Old 01-26-2005, 04:51 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
way too simple i'm afraid...

1) NTFS does not support UNIX file permissions. at the low ow file system level, NTFS doesn't recognise user id's, groups etc.... what you see if just the hack that linux has to use to make it look like something vaguely unixy

2) NTFS write support is VERY VERY VERY bad, for many reasons. DO NOT TRY TO WRITE TO NTFS PARTITIONS. you WILL destroy data. so much so, it's often impossible, as ntfs support is provided in a read-only module by default (called "ntfs") and optionally as the very dangerous read / write version, "ntfs_rw" i think.
 
Old 01-26-2005, 04:56 PM   #4
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
Hi I don't know if it was a typo here only or also in /etc/fstab file but it should be "umask" with no "n" hope this is your only problem with this issue.
 
Old 01-26-2005, 05:06 PM   #5
chemdawg
Member
 
Registered: Jan 2005
Distribution: Mandriva
Posts: 206

Original Poster
Rep: Reputation: 31
good eye, brainiac! That was in fact a typo and it fixed it! Thank you all for your suggestions.

C-dawg
 
  


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
problem unlocking screensaver acb67 Linux - General 6 01-31-2012 05:44 AM
6800nu unlocking? Jason711 Linux - Hardware 0 04-18-2005 02:51 AM
Unlocking /root file Carpinus Linux - Newbie 4 01-16-2005 04:12 AM
Unlocking Windows partition Waldhorn34 Linux - Hardware 7 10-05-2004 01:41 PM
trouble unlocking a windows directory j-la Linux - Newbie 7 01-08-2004 05:56 PM

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

All times are GMT -5. The time now is 03:08 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
Open Source Consulting | Domain Registration