Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: automatically changing permissions (chmod) problem

  1. #1
    Join Date
    Jan 2014
    Location
    San Jose City, PH.
    Posts
    118

    Default automatically changing permissions (chmod) problem

    What keeps automatically changing permissions (chmod) to my files in ~/public_html on OpenSUSE?

    I keep making certain PHP files executable there, but a while later something makes them UN-writable again! I looked around for a solution but haven't found any in this forum or on a Google search. I haven't a clue where to go or what to do. Can anyone point me in the right direction? What is doing this, and how do I stop it?

    Thanks!
    AMD Ryzen 3 1200 Quad-core Processor, 32MB memory, KDE
    DRIVES: 2 4TB BTRFS raid1, 1 4TB BTRFS for backups

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: automatically changing permissions (chmod) problem

    Quote Originally Posted by rwbehne1 View Post
    I keep making certain PHP files executable there, but a while later something makes them UN-writable again!
    write bit and executable bit are two different things - I'm trying to figure out what you mean here?
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  3. #3
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,746

    Default Re: automatically changing permissions (chmod) problem

    Any change you are using a non Linux file system??

  4. #4
    Join Date
    Jan 2014
    Location
    San Jose City, PH.
    Posts
    118

    Default Re: automatically changing permissions (chmod) problem

    Quote Originally Posted by gogalthorp View Post
    Any change you are using a non Linux file system??
    Not unless EXT4 is a non-Linux file system.

    That line of thinking seems like a non sequetur. Some process is changing the permissions. I imagine it has something to do with a security system. Why would anyone even think a non Linux file system would have anything to do with it?
    AMD Ryzen 3 1200 Quad-core Processor, 32MB memory, KDE
    DRIVES: 2 4TB BTRFS raid1, 1 4TB BTRFS for backups

  5. #5
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,746

    Default Re: automatically changing permissions (chmod) problem

    Very easy non Linux File systems are set up with synthesized permissions so that changes may not stick from one mount to another.

    There are no normal processes that would change permissions in you home so it is something that you run or are doing.

    Running things under root may cause permission/ownership problems for the user. Never log into a GUI as root.

  6. #6
    Join Date
    Jan 2014
    Location
    San Jose City, PH.
    Posts
    118

    Default Re: automatically changing permissions (chmod) problem

    Quote Originally Posted by Miuku View Post
    write bit and executable bit are two different things - I'm trying to figure out what you mean here?
    If you can't figure out what I mean then why are you bothering? I was very clear and concise in my question. I can't possibly make it any clearer:

    1. I chmod a file to make it writable,
    2. a while later something (I know not what) changes it back to UN-writable.
    QUESTION: What is doing that, and how do I stop it?

    And who mentioned execute permissions? Not me! You're reading into my question things I never said, and in so doing you're only confusing yourself, and wasting my time.
    AMD Ryzen 3 1200 Quad-core Processor, 32MB memory, KDE
    DRIVES: 2 4TB BTRFS raid1, 1 4TB BTRFS for backups

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,156

    Default Re: automatically changing permissions (chmod) problem

    This is from your first post:
    I keep making certain PHP files executable there, but a while later something makes them UN-writable again!
    It certainly mentions "executable". And I see no mention of you saying that they were writable. You only say that they are unwritable after some time.

    When you want to make yourself utterly clear, you should post the
    Code:
    ls -l
    before and afer. The computer will then tell us much more and with less confusion then a human being.

    Also, we are a community and all are trying to help others as good as they can.

    Your reaction will lead to many here (and not only the one you were talking to) into not wasting their time anymore and going for a more promisng thread.
    Henk van Velden

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,855
    Blog Entries
    15

    Default Re: automatically changing permissions (chmod) problem

    On Mon 20 Jul 2015 02:26:02 PM CDT, rwbehne1 wrote:


    What keeps automatically changing permissions (chmod) to my files in
    ~/public_html on OpenSUSE?

    I keep making certain PHP files executable there, but a while later
    something makes them UN-writable again! I looked around for a solution
    but haven't found any in this forum or on a Google search. I haven't a
    clue where to go or what to do. Can anyone point me in the right
    direction? What is doing this, and how do I stop it?

    Thanks!


    Hi
    An fgrep shows it's apparmor...
    Code:
    fgrep -r "public_" /etc/*
    /etc/apparmor.d/abstractions/web-data:  @{HOME}/public_html/ r,
    /etc/apparmor.d/abstractions/web-data:  @{HOME}/public_html/** r,
    Configure apparmor...

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel
    3.12.43-52.6-default If you find this post helpful and are logged into
    the web interface, please show your appreciation and click on the star
    below... Thanks!


  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: automatically changing permissions (chmod) problem

    On 2015-07-20 18:55, malcolmlewis wrote:

    > Hi
    > An fgrep shows it's apparmor...
    >
    Code:
    >  fgrep -r "public_" /etc/*
    > /etc/apparmor.d/abstractions/web-data:  @{HOME}/public_html/ r,
    > /etc/apparmor.d/abstractions/web-data:  @{HOME}/public_html/** r,
    >
    > Configure apparmor...


    apparmour changes permissions of files? :-? :-o

    Or rather, it does not allow certain access, despite the permissions of
    those files (as always)?

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: automatically changing permissions (chmod) problem

    On 2015-07-20 18:36, rwbehne1 wrote:

    > And who mentioned execute permissions? Not me! You're reading into my
    > question things I never said, and in so doing you're only confusing
    > yourself, and wasting my time.


    Please calm down, and don't go into flames that easily. We are trying to
    help, and if for whatever reason we don't understand what you wrote, we ask.

    You wrote:

    |> I keep making certain PHP files *executable* there, but a while later
    |> something makes them *UN-writable* again!

    (emphasis added)

    There, you mentioned "executable". A few words later you said
    "UN-writable". Thus you confused us.


    That said, Malcolm has hit the nail with Apparmour, I think.


    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •