:: Re: [DNG] How to force permission c…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Fred
Date:  
À: dng
Sujet: Re: [DNG] How to force permission change?
On 10/24/23 09:25, Steve Litt wrote:
> 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
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Hi,
I believe the DNS321 is running some version of Linux but admin doesn't
have access to the OS. I access them by samba although ftp also works.
Their target market is, of course, Windows.

There are thousands of files on there that do show permissions and
ownership:

fred@ragnok:~$ ls -l /mnt/dns321/pdf_1/W5300.pdf
-rw-r--r-- 1 502 502 1740845 Sep 25 2011 /mnt/dns321/pdf_1/W5300.pdf

There are 23 files in two directories that have the funky permissions I
showed earlier and can't be read. I don't know how they came by the
funky permissions as I originally just mv or cp them to the NAS box.

Best regards,
Fred