LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 12-05-2004, 03:03 PM   #1
wLancer
Member
 
Registered: Nov 2004
Location: TN
Distribution: Ubuntu 10.04
Posts: 30

Rep: Reputation: 15
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.
 
Old 12-05-2004, 04:44 PM   #2
sigsegv
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: Reputation: 47
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.
 
Old 12-06-2004, 10:49 AM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 12-06-2004, 11:37 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
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).
 
Old 12-06-2004, 05:32 PM   #5
wLancer
Member
 
Registered: Nov 2004
Location: TN
Distribution: Ubuntu 10.04
Posts: 30

Original Poster
Rep: Reputation: 15
thank you very much for the replies ill get back to you to see if it works!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntfs partition permissions trawler Linux - General 2 10-23-2005 06:27 PM
Windows partition requires root permissions- chmod question Garibaldi3489 Slackware 19 05-16-2005 02:52 AM
Can't change the read permissions on an NTFS partition as root? EOHooligan Linux - Newbie 4 01-09-2005 07:48 AM
Permissions for NTFS partition MikTheUser Slackware 5 07-08-2004 08:41 PM
Linux NTFS Partition Question migrax Linux - Software 5 05-07-2004 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 AM.

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