Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum chmod command execution

Tagged: , ,

  • chmod command execution

    Posted by Sanjeev on December 19, 2023 at 6:02 am

    After using chmod command I am not able to view the changes in the accessibility of the file. I am also attaching the image for the same. Kindly guide me through this.

    Thank you

    Sanjeev S M

    Barış Bicer replied 3 months, 1 week ago 3 Members · 8 Replies
  • 8 Replies
  • Barış Bicer

    Moderator
    December 26, 2023 at 4:09 pm

    Hi Sanjeev,

    chmod o-x file_name : means remove the executable from the file of others.

    I did exactly what you did and I obtained what it should be… you can see in the below pic.

    so I dont know what you did. Please can you try again.

  • Barış Bicer

    Moderator
    December 26, 2023 at 4:11 pm

    delete created txt file and make it again. touch example.txt

    and then try make chmod a+x example.txt

    chmod a+r example.txt

    chmod a+w example.txt

    then it will have all right.

    Then try your command again: chmod o-x example.txt

    Then you should obtain exactly what I got

  • Sanjeev

    Member
    December 29, 2023 at 12:51 pm

    Thank you sir.

  • Sanjeev

    Member
    January 2, 2024 at 2:20 pm

    Hello sir

    As per your instructions, I tried executing the chmod command, yet I am unable to view the change. I have attached the image below for your reference.

    Thank you.

    • Rahul

      Member
      January 2, 2024 at 5:13 pm

      Hi Sanjeev,
      Could you try the same set of commands in a file/folder in your home folder itself?
      It may not be working as you are using WSL and trying to modify the permissions for a file in a Windows drive.
      Best regards
      Rahul
      Flowthermolab support

      • Sanjeev

        Member
        January 4, 2024 at 1:46 pm

        Hello sir

        Thank you very much.

    • Rahul

      Member
      January 2, 2024 at 5:29 pm

      Hi Sanjeev,
      I tried out the commands you have mentioned. What I observed is that the execute and read permissions (x and r) could not be changed for the file in the windows drive but it was possible for the file in the Ubuntu home folder. Only write permission seems to be modifiable from WSL for the file in the harddisk.
      Best regards
      Rahul

  • Barış Bicer

    Moderator
    January 5, 2024 at 7:59 am

    can you use please on terminal : sudo -s command. And the enter your password and that stands for “superuser do” and effectively gives a regular user access to administrator-like powers.

    After that please try again chmod commands

Log in to reply.

error: Content is protected !!