LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   n00b question: Problems with linux root permissions and ntfs partition (https://www.linuxquestions.org/questions/linux-general-1/n00b-question-problems-with-linux-root-permissions-and-ntfs-partition-262907/)

wLancer 12-05-2004 02:03 PM

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.

sigsegv 12-05-2004 03:44 PM

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.

egag 12-06-2004 09:49 AM

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

abisko00 12-06-2004 10:37 AM

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).

wLancer 12-06-2004 04:32 PM

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:11 PM.