:: Re: [DNG] How to force permission c…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Steve Litt
Fecha:  
A: dng
Asunto: Re: [DNG] How to force permission change?
Fred said on Tue, 24 Oct 2023 09:02:56 -0700

>On 10/24/23 07:33, Rob via Dng wrote:
>>
>>
>>
>>
>> Sent from ProtonMail, encrypted email based in Switzerland.
>>
>>
>> ------- Original Message -------
>> On Tuesday, October 24th, 2023 at 14:52, Fred <fred@???>
>> wrote:
>>
>>
>>> Hello,
>>>
>>> I have some files on a NAS box that have funky permissions that
>>> prevent access to them. They can't be read by xpdf or others.
>>>
>>> root@ragnok:/home/fred# ls -l /mnt/dns321/pdf_6/ELCON_UL9_cap.pdf
>>> -rw------- 1 501 501 451089 Feb 17 2009
>>> /mnt/dns321/pdf_6/ELCON_UL9_cap.pdf
>>>
>>> root@ragnok:/home/fred# chown fred
>>> /mnt/dns321/pdf_6/ELCON_UL9_cap.pdf chown: changing ownership of
>>> '/mnt/dns321/pdf_6/ELCON_UL9_cap.pdf': Permission denied
>>>
>>> root@ragnok:/home/fred# chmod 664
>>> /mnt/dns321/pdf_6/ELCON_UL9_cap.pdf chmod: changing permissions of
>>> '/mnt/dns321/pdf_6/ELCON_UL9_cap.pdf': Permission denied
>>>
>>> How to force change of permissions and/or ownership?
>>>
>>> Best regards,
>>> Fred
>>
>> Does the dns321 disk have a vfat file system?
>>
>> rob
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>It is cifs accessed by samba.


It's been 23 years since I wrote Samba Unleashed and I've forgotten
most of it, but as I remember, whatever is revealed by a Samba
connection must be on a filesystem of some kind. So forgetting Samba,
if this thing was formatted for Windows you can't give things owners or
permissions. You need something like ext4 for that. Then you can mount
the ext4 via Samba using the cifs protocol.

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21