Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
|
|
12-05-2004, 03:03 PM
|
#1
|
Member
Registered: Nov 2004
Location: TN
Distribution: Ubuntu 10.04
Posts: 30
Rep:
|
n00b question: Problems with linux root permissions and ntfs partition
I am using slack 10 and am trying to import my music from my ntfs windows partition. I tried changing permissions in root but it will give me a random windows file saying I dont have sufficient permission to change the settings of the file even though im logged in as root.
|
|
|
12-05-2004, 04:44 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
ntfs is read only unless you mount it rw (which is a bad idea). Just copy off the files to your linux filesystem and format the disk.
|
|
|
12-06-2004, 10:49 AM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
permissions for win-partitions are set in the "/etc/fstab " file.
i've got this for ntfs :
dev/hda3 /win-e ntfs ro,user,umask=222 1 0
it's mounted readonly and users can play music form it.
egag
|
|
|
12-06-2004, 11:37 AM
|
#4
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
The critical point is the umask option in /etc/fstab.
Since ntfs uses another system to set file permissions, it is not compatible with the unix style permissions. Additionally you cannot write on ntfs in a safe way. The umask parameter 'translates' the ntfs permissions into the unix system. This is rather unflexible, since the parameter that is set in fstab is valid for the whole partition, but it works. The umask parameter is substracted from full unix permissions. Setting umask=2 gives unix permission 5, which means read and exec rights. Changing single file/folder permissions doesn't make sense due to the above mentioned restrictions.
To make the long story short: add umask=000 to the options in /etc/fstab (see egag's post) and you have full permission for everyone (even write permissions, although that doesn't make much sense).
|
|
|
12-06-2004, 05:32 PM
|
#5
|
Member
Registered: Nov 2004
Location: TN
Distribution: Ubuntu 10.04
Posts: 30
Original Poster
Rep:
|
thank you very much for the replies ill get back to you to see if it works!
|
|
|
All times are GMT -5. The time now is 12:57 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
|
|