chmod: Operation not permitted

5,054

The dir probably has the immutable attribute set. Try

# chattr -R -ia hs

Also, use the search function before posting.

Share:
5,054

Related videos on Youtube

Sanskar Sahu
Author by

Sanskar Sahu

Hello there! I am a computer science student having more than 4 years of experience in programming languages. Computer : Programs && Tools Vscode is the Best editor for web chromium is best then chrome Gimp for image manipulation I highly prefer Arch. but, sometimes you can rely on debiun. so, Pops Os by (System76) Languages And Tools ≧◉ᴥ◉≦ Frontend Technologies: Html Scss JavaScritp BootStrap TailWind ReactJS (NextJS) Backend Technologies: NodeJS (HBS) PHP RestAPIs Database and Server Technologies : Heroku ( cloud platform ) FireBase ( server less ) MongoDB ( document-oriented database ) MYSQL ( relational database ) Available for :Team projects, particularly open-source and is MERN stack. 🌱 I’m currently learning more about reactjs(nextjs) AND Deno. 👯 I’m looking to collaborate on github. 🤔 I’m looking for help with Nextjs documentation. 💬 Ask me about web Development or any tech-related stuff. 😄 Pronouns: He/His MailBox : Touch Me Ꮚˊ•⌔•ˋᏊ [email protected] || https://github.com/DSDmark || https://dev.to/dsmark

Updated on September 18, 2022

Comments

  • Sanskar Sahu
    Sanskar Sahu over 1 year

    how can change my folder permissions? I also tried it as root but it did not work and I also cannot change the ownership.

    root@darkmark:~# pwd
    /root
    root@darkmark:~# sudo chown -R darkmark '/home/darkmark/hs'
    chown: changing ownership of '/home/darkmark/hs': Operation not permitted
    root@darkmark:~# sudo chmod 755 '/home/darkmark/hs'
    chmod: changing permissions of '/home/darkmark/hs': Operation not permitted
    root@darkmark:~# _
    
    darkmark@darkmark:~$ ls -l
    total 32
    drwxrwxr-x 4 darkmark darkmark 4096 Jul 12 15:39 dictionaries
    drwxrwxr-x 3 darkmark darkmark 4096 Jul 12 21:27 Directory-Wordlist
    drwxrwxrwx 2 darkmark darkmark 4096 Jul 14 20:35 Downloads
    drwxrwxrwx 3 root     root     4096 Jul 10 16:55 hs
    drwxrwxr-x 5 darkmark darkmark 4096 Jul 10 15:32 Main_data_dir
    drwxrwxr-x 6 darkmark darkmark 4096 Jul 12 19:46 SecLists
    drwxrwxr-x 3 darkmark darkmark 4096 Jul 14 20:35 wifite
    drwxrwxr-x 3 darkmark darkmark 4096 Jul 14 20:57 wordlist
    darkmark@darkmark:~$ sudo chmod -rw hs
    [sudo] password for darkmark:
    chmod: changing permissions of 'hs': Operation not permitted
    darkmark@darkmark:~$ _
    
    • Admin
      Admin almost 3 years
      Please edit your question and use copy and paste from the text in your terminal.
  • Sanskar Sahu
    Sanskar Sahu almost 3 years
    thank you bro help it work thank you bro really
  • Jeff Isaacs
    Jeff Isaacs almost 3 years
    You're welcome! Please hit the accept button if my answer solved your problem :)