:: Re: [DNG] How to force permission c…
Página Inicial
Delete this message
Reply to this message
Autor: Fred
Data:  
Para: dng
Assunto: Re: [DNG] How to force permission change
On 10/24/23 13:25, William Peckham via Dng wrote:
> In all of these remote storage situations the host where the storage
> resides overrides everything else.  Root on a client box is no different
> than any other user on the client box, they have whatever permissions
> that the storage host gives them or allows them to change and no more.
> That implies that the first place to look for this kind of problem is on
> the host where the files reside, so that is the first thing I thought.
>
> There are more issues in the difference between Windows or cifs and
> Linux permission and authority styles, they rarely translate well.
>
> When I build a Nas box I usually the Linux operating system and export
> the storage multiple ways, one of those being shamba.
>
> I am not sure if that helps, but it gives you another approach.
>


It does appear the NAS box is refusing to change the permissions. I
will replace it with something running Devuan as soon as I can.

Thanks for the help!
Best regards,
Fred



> On Tue, Oct 24, 2023, 12:25 <dng-request@???
> <mailto:dng-request@lists.dyne.org>> wrote:
>
>     Send Dng mailing list submissions to
>     dng@??? <mailto:dng@lists.dyne.org>

>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>     <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng>
>     or, via email, send a message with subject or body 'help' to
>     dng-request@??? <mailto:dng-request@lists.dyne.org>

>
>     You can reach the person managing the list at
>     dng-owner@??? <mailto:dng-owner@lists.dyne.org>

>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of Dng digest..."
>     Today's Topics:

>
>         1. How to force permission change? (Fred)
>         2. Re: How to force permission change? (Manfred Wassmann)
>         3. Re: How to force permission change? (Rob)
>         4. Re: How to force permission change? (Fred)
>         5. Re: How to force permission change? (Fred)
>         6. Re: How to force permission change? (Steve Litt)

>
>
>
>     ---------- Forwarded message ----------
>     From: Fred <fred@??? <mailto:fred@blakemfg.com>>
>     To: dng@??? <mailto:dng@lists.dyne.org>
>     Cc:
>     Bcc:
>     Date: Tue, 24 Oct 2023 06:52:29 -0700
>     Subject: [DNG] How to force permission change?
>     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

>
>
>
>
>     ---------- Forwarded message ----------
>     From: Manfred Wassmann <berlinsight@???
>     <mailto:berlinsight@gmail.com>>
>     To: Devuan ML <dng@??? <mailto:dng@lists.dyne.org>>
>     Cc:
>     Bcc:
>     Date: Tue, 24 Oct 2023 14:06:28 +0000
>     Subject: Re: [DNG] How to force permission change?
>     you may have an attribute (immutable) set. Try 'man chattr'. HTH

>
>     On Tuesday, October 24, 2023, Fred <fred@???
>     <mailto:fred@blakemfg.com>> 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
>         _______________________________________________
>         Dng mailing list
>         Dng@??? <mailto:Dng@lists.dyne.org>
>         https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>         <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng>

>
>
>
>     -- 
>     sent from mobile

>
>
>
>     ---------- Forwarded message ----------
>     From: Rob <Nuisance@??? <mailto:Nuisance@protonmail.com>>
>     To: "dng@??? <mailto:dng@lists.dyne.org>"
>     <dng@??? <mailto:dng@lists.dyne.org>>
>     Cc:
>     Bcc:
>     Date: Tue, 24 Oct 2023 14:33:36 +0000
>     Subject: Re: [DNG] How to force permission change?

>
>
>
>
>     Sent from ProtonMail, encrypted email based in Switzerland.

>
>
>     ------- Original Message -------
>     On Tuesday, October 24th, 2023 at 14:52, Fred <fred@???
>     <mailto:fred@blakemfg.com>> 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

>
>
>
>
>     ---------- Forwarded message ----------
>     From: Fred <fred@??? <mailto:fred@blakemfg.com>>
>     To: dng@??? <mailto:dng@lists.dyne.org>
>     Cc:
>     Bcc:
>     Date: Tue, 24 Oct 2023 09:02:56 -0700
>     Subject: Re: [DNG] How to force permission change?
>     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@???
>     <mailto:fred@blakemfg.com>> 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@??? <mailto:Dng@lists.dyne.org>
>      > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>     <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng>
>     It is cifs accessed by samba.

>
>     Best regards,
>     Fred

>
>
>
>
>
>     ---------- Forwarded message ----------
>     From: Fred <fred@??? <mailto:fred@blakemfg.com>>
>     To: dng@??? <mailto:dng@lists.dyne.org>
>     Cc:
>     Bcc:
>     Date: Tue, 24 Oct 2023 09:06:10 -0700
>     Subject: Re: [DNG] How to force permission change?
>     On 10/24/23 07:06, Manfred Wassmann via Dng wrote:
>      > you may have an attribute (immutable) set. Try 'man chattr'. HTH
>      >
>      > On Tuesday, October 24, 2023, Fred <fred@???
>     <mailto:fred@blakemfg.com>
>      > <mailto:fred@blakemfg.com <mailto:fred@blakemfg.com>>> 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
>      >     _______________________________________________
>      >     Dng mailing list
>      > Dng@??? <mailto:Dng@lists.dyne.org>
>     <mailto:Dng@lists.dyne.org <mailto:Dng@lists.dyne.org>>
>      > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>     <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng>
>      >     <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>     <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng>>

>      >

>      >

>      >
>      > --
>      > sent from mobile

>      >
>      > _______________________________________________
>      > Dng mailing list
>      > Dng@??? <mailto:Dng@lists.dyne.org>
>      > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>     <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng>
>     Hi,

>
>     I tried chattr -i /mnt/dns321/pdf_6/ELCON_UL9_cap.pdf
>     I received permission denied.  It doesn't appear to me the other chattr
>     options apply.

>
>     lsattr by root also gives permission denied.

>
>     Best regards,
>     Fred

>
>
>
>
>
>     ---------- Forwarded message ----------
>     From: Steve Litt <slitt@???
>     <mailto:slitt@troubleshooters.com>>
>     To: dng@??? <mailto:dng@lists.dyne.org>
>     Cc:
>     Bcc:
>     Date: Tue, 24 Oct 2023 12:25:31 -0400
>     Subject: 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@???
>     <mailto:fred@blakemfg.com>>
>      >> 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@??? <mailto:Dng@lists.dyne.org>
>      >> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/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
>     <http://www.troubleshooters.com/rl21>

>
>     _______________________________________________
>     Dng mailing list
>     Dng@??? <mailto:Dng@lists.dyne.org>
>     https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>     <https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng>

>
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng