Mailinglist Archive: opensuse (1620 mails)

< Previous Next >
Re: [opensuse] Read-only NTFS Disks?
On 2014-11-18 01:28, Lew Wolfgang wrote:

Files/directories created in an NTFS filesystem are 777 and can't
be changed with chmod. Chown doesn't work either.

It works with FAT. It is a Linux limitation, but I don't know exactly where.

I tried with a usb stick formatted as ntfs and another as fat. The
second one worked:

cer@Telcontar:/media/CORSA_2> l
total 52
drwx------ 4 cer users 16384 Nov 18 02:16 ./
drwxr-xr-x 3 root root 4096 Nov 18 02:16 ../
...
-rw-r--r-- 1 cer users 0 Nov 18 02:16 p
cer@Telcontar:/media/CORSA_2> chmod a-r p ; l p
-rw-r--r-- 1 cer users 0 Nov 18 02:16 p
cer@Telcontar:/media/CORSA_2> chmod a-w p ; l p
-r--r--r-- 1 cer users 0 Nov 18 02:16 p
cer@Telcontar:/media/CORSA_2>


Then I removed the stick, reconnected it, and the directory was holding:


cer@Telcontar:~> l /media/CORSA_2/p
-r--r--r-- 1 cer users 0 Nov 18 02:16 /media/CORSA_2/p
cer@Telcontar:~>
cer@Telcontar:~> rm /media/CORSA_2/p
rm: remove write-protected regular empty file ‘/media/CORSA_2/p’? yes
cer@Telcontar:~> l /media/CORSA_2/p
ls: cannot access /media/CORSA_2/p: No such file or directory
cer@Telcontar:~>


maybe there is some other tool that can do the trick. fuse?


But is it possible that extended attributes might work? I'll have
to research this one.

acls, perhaps.


--
Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)

< Previous Next >