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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-26-2005, 04:39 PM
|
#1
|
Member
Registered: Jan 2005
Distribution: Mandriva
Posts: 206
Rep:
|
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.
|
|
|
01-26-2005, 04:47 PM
|
#2
|
LQ Newbie
Registered: Dec 2004
Distribution: Mandrake 10.1 official + KDE 3.2
Posts: 25
Rep:
|
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?
|
|
|
01-26-2005, 04:51 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
01-26-2005, 04:56 PM
|
#4
|
Member
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145
Rep:
|
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.
|
|
|
01-26-2005, 05:06 PM
|
#5
|
Member
Registered: Jan 2005
Distribution: Mandriva
Posts: 206
Original Poster
Rep:
|
good eye, brainiac! That was in fact a typo and it fixed it! Thank you all for your suggestions.
C-dawg
|
|
|
All times are GMT -5. The time now is 10:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|