Folders showing lock iconFolders showing lockError while starting hadoopHow to add users from text file into...

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Inappropriate reference requests from Journal reviewers

Failed to fetch jessie backports repository

Is a stroke of luck acceptable after a series of unfavorable events?

Was Spock the First Vulcan in Starfleet?

How did Doctor Strange see the winning outcome in Avengers: Infinity War?

How do we know the LHC results are robust?

Is HostGator storing my password in plaintext?

Why are there no referendums in the US?

Implement the Thanos sorting algorithm

Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

Do sorcerers' Subtle Spells require a skill check to be unseen?

Applicability of Single Responsibility Principle

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

Where does the Z80 processor start executing from?

India just shot down a satellite from the ground. At what altitude range is the resulting debris field?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

Anatomically Correct Strange Women In Ponds Distributing Swords

What does "I’d sit this one out, Cap," imply or mean in the context?

Can the discrete variable be a negative number?

How to pronounce the slash sign

Two monoidal structures and copowering

What can we do to stop prior company from asking us questions?



Folders showing lock icon


Folders showing lockError while starting hadoopHow to add users from text file into the unix system?Nautilus crashes when accessing some foldersLost/Missing FoldersUnable to access any folder (including HOME)Items on desktop all disappered, including my Home, from icon listWindows folder lock 7 forgotten passwordFolders showing lockI cant' change my folders icons [17.04]What is reason for automatic file lock symbol or automatic binary file conversion?Overwrote the desktop folder to a file. How can i reverse it?Cannot open folders from icons on desktop













25















Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it.



I tried changing the root access using sudo chmod user:directory/ but it fails. I am not able to delete or perform any file action with it.



What action should I perform to fix it?










share|improve this question




















  • 2





    Please take a screenshot from Permissions and post it (or upload it and put the link to it) here. To see permissions, right click on a folder or file and select Properties.

    – AliNâ
    Mar 3 '13 at 14:09











  • Hey I have same problem with ubuntu 13.10. But all folders turn locked suddenly. and I can't open any program even shutdown doesn't work. To execute commands >> no chance at all because no program open up including terminal too. ultimately i had to restart the machine. please suggest any method to get rid of this bug..

    – user269619
    Apr 16 '14 at 17:26
















25















Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it.



I tried changing the root access using sudo chmod user:directory/ but it fails. I am not able to delete or perform any file action with it.



What action should I perform to fix it?










share|improve this question




















  • 2





    Please take a screenshot from Permissions and post it (or upload it and put the link to it) here. To see permissions, right click on a folder or file and select Properties.

    – AliNâ
    Mar 3 '13 at 14:09











  • Hey I have same problem with ubuntu 13.10. But all folders turn locked suddenly. and I can't open any program even shutdown doesn't work. To execute commands >> no chance at all because no program open up including terminal too. ultimately i had to restart the machine. please suggest any method to get rid of this bug..

    – user269619
    Apr 16 '14 at 17:26














25












25








25


19






Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it.



I tried changing the root access using sudo chmod user:directory/ but it fails. I am not able to delete or perform any file action with it.



What action should I perform to fix it?










share|improve this question
















Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it.



I tried changing the root access using sudo chmod user:directory/ but it fails. I am not able to delete or perform any file action with it.



What action should I perform to fix it?







directory home-directory lock gnome-documents






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 3 '13 at 14:15









Eric Carvalho

42.3k17115147




42.3k17115147










asked Mar 3 '13 at 14:03









SaketSaket

3982515




3982515








  • 2





    Please take a screenshot from Permissions and post it (or upload it and put the link to it) here. To see permissions, right click on a folder or file and select Properties.

    – AliNâ
    Mar 3 '13 at 14:09











  • Hey I have same problem with ubuntu 13.10. But all folders turn locked suddenly. and I can't open any program even shutdown doesn't work. To execute commands >> no chance at all because no program open up including terminal too. ultimately i had to restart the machine. please suggest any method to get rid of this bug..

    – user269619
    Apr 16 '14 at 17:26














  • 2





    Please take a screenshot from Permissions and post it (or upload it and put the link to it) here. To see permissions, right click on a folder or file and select Properties.

    – AliNâ
    Mar 3 '13 at 14:09











  • Hey I have same problem with ubuntu 13.10. But all folders turn locked suddenly. and I can't open any program even shutdown doesn't work. To execute commands >> no chance at all because no program open up including terminal too. ultimately i had to restart the machine. please suggest any method to get rid of this bug..

    – user269619
    Apr 16 '14 at 17:26








2




2





Please take a screenshot from Permissions and post it (or upload it and put the link to it) here. To see permissions, right click on a folder or file and select Properties.

– AliNâ
Mar 3 '13 at 14:09





Please take a screenshot from Permissions and post it (or upload it and put the link to it) here. To see permissions, right click on a folder or file and select Properties.

– AliNâ
Mar 3 '13 at 14:09













Hey I have same problem with ubuntu 13.10. But all folders turn locked suddenly. and I can't open any program even shutdown doesn't work. To execute commands >> no chance at all because no program open up including terminal too. ultimately i had to restart the machine. please suggest any method to get rid of this bug..

– user269619
Apr 16 '14 at 17:26





Hey I have same problem with ubuntu 13.10. But all folders turn locked suddenly. and I can't open any program even shutdown doesn't work. To execute commands >> no chance at all because no program open up including terminal too. ultimately i had to restart the machine. please suggest any method to get rid of this bug..

– user269619
Apr 16 '14 at 17:26










7 Answers
7






active

oldest

votes


















52














Run the following to fix your home directory permissions:



sudo chown -R $USER: $HOME





share|improve this answer


























  • This will change the permissions or directly delete the folder??

    – MashukKhan
    Dec 15 '16 at 6:24











  • @MashukKhan This will restore the correct ownership of your home folder and subfolders. Nothing will be deleted.

    – Eric Carvalho
    Dec 15 '16 at 11:02













  • Okay.... Thanks a lot this worked for me

    – MashukKhan
    Dec 17 '16 at 13:03






  • 1





    After running the command I had to reboot my system for changes to take effect. It worked great!

    – codeaviator
    Sep 7 '17 at 12:15



















15














sudo chmod 777 -R /path to folder you want to delete- This would give all permissions (Read, Write, Execute) to you



The permissions (in this case 777) are as follow:




  • 7 - Full (Read, Write & Execute)

  • 6 - read and write

  • 5 - read and execute

  • 4 - read only

  • 3 - write and execute

  • 2 - write only

  • 1 - execute only

  • 0 - none


First number change Ownership of file, second affect Group of users can access, and third refers to Others user.



Owner   Group   Other
7 7 7


after changing the permission, try and delete the folder.






share|improve this answer





















  • 1





    This would also allow anyone else to access the folder, including guests.

    – Marco Scannadinari
    Mar 7 '13 at 18:32











  • thats why i have given you the explanation. use 757 instead of 777 then

    – Janmejay
    Mar 8 '13 at 20:26











  • sudo chmod u+w -R path_to_folder is a neater way of giving yourself write permission. Not that it makes much difference if you're deleting the folder anyway.

    – lane
    Sep 7 '16 at 12:58











  • Very simple and clean explanation

    – RIT
    Sep 22 '17 at 15:08











  • To apply all permission on current directory type and run: sudo chmod 777 -R .

    – EsmaeelE
    Nov 20 '18 at 11:48





















0














Open terminal and type



gksudo nautilus



Browse to the location of documents. Goto properties and set the permission for owner as well as group as read and write. Now try to delete the folder from another nautilus window (one without root privileges).



Don't forget to close that super user nautilus as soon as you don't need it any more!






share|improve this answer





















  • 3





    Never suggest sudo nautilus - gksudo nautilus is the recommended command - if really needed at all.

    – guntbert
    Mar 3 '13 at 18:49



















0














This would happen probably because you downloaded something from the web. And you don't have the write access to the folders. If you are sure that the files are virus free, try the following command.



chmod -R +rw *


This will remove the lock icon from the nautilus.






share|improve this answer































    0














    I had this problem as I had set everything to chmod 755 to get back into my system after messing with /var permissions.



    sudo chown -R $USER:$USER ~


    solved it for me, eventually. I had to delete some files I'd downloaded first.






    share|improve this answer

































      0














      Change the file permissions of lock file via CHMOD command:



      user@pc:~$ sudo chmod 754 /var/lib/lock *


      Note: 754 is access permission and path to the directory of lock file present if 754 doesn't, do try 777. Once done you can delete the file.






      share|improve this answer

































        0














        You should have a look at this answer on Super User. Adding on to this answer, you can also create a bash function like this:



        # bash function for changing locked status of folders, pass folder name as command line argument
        unlock() {
        chflags -R nouchg $1
        }


        You can put this function in your .bashrc (Linux) or .bash_profile (Mac) file and run source ~/.bashrc or source ~/.bash_profile to rebuild the bash file.





        share








        New contributor




        Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




















          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f263450%2ffolders-showing-lock-icon%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          7 Answers
          7






          active

          oldest

          votes








          7 Answers
          7






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          52














          Run the following to fix your home directory permissions:



          sudo chown -R $USER: $HOME





          share|improve this answer


























          • This will change the permissions or directly delete the folder??

            – MashukKhan
            Dec 15 '16 at 6:24











          • @MashukKhan This will restore the correct ownership of your home folder and subfolders. Nothing will be deleted.

            – Eric Carvalho
            Dec 15 '16 at 11:02













          • Okay.... Thanks a lot this worked for me

            – MashukKhan
            Dec 17 '16 at 13:03






          • 1





            After running the command I had to reboot my system for changes to take effect. It worked great!

            – codeaviator
            Sep 7 '17 at 12:15
















          52














          Run the following to fix your home directory permissions:



          sudo chown -R $USER: $HOME





          share|improve this answer


























          • This will change the permissions or directly delete the folder??

            – MashukKhan
            Dec 15 '16 at 6:24











          • @MashukKhan This will restore the correct ownership of your home folder and subfolders. Nothing will be deleted.

            – Eric Carvalho
            Dec 15 '16 at 11:02













          • Okay.... Thanks a lot this worked for me

            – MashukKhan
            Dec 17 '16 at 13:03






          • 1





            After running the command I had to reboot my system for changes to take effect. It worked great!

            – codeaviator
            Sep 7 '17 at 12:15














          52












          52








          52







          Run the following to fix your home directory permissions:



          sudo chown -R $USER: $HOME





          share|improve this answer















          Run the following to fix your home directory permissions:



          sudo chown -R $USER: $HOME






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 12 '15 at 16:14

























          answered Mar 3 '13 at 14:14









          Eric CarvalhoEric Carvalho

          42.3k17115147




          42.3k17115147













          • This will change the permissions or directly delete the folder??

            – MashukKhan
            Dec 15 '16 at 6:24











          • @MashukKhan This will restore the correct ownership of your home folder and subfolders. Nothing will be deleted.

            – Eric Carvalho
            Dec 15 '16 at 11:02













          • Okay.... Thanks a lot this worked for me

            – MashukKhan
            Dec 17 '16 at 13:03






          • 1





            After running the command I had to reboot my system for changes to take effect. It worked great!

            – codeaviator
            Sep 7 '17 at 12:15



















          • This will change the permissions or directly delete the folder??

            – MashukKhan
            Dec 15 '16 at 6:24











          • @MashukKhan This will restore the correct ownership of your home folder and subfolders. Nothing will be deleted.

            – Eric Carvalho
            Dec 15 '16 at 11:02













          • Okay.... Thanks a lot this worked for me

            – MashukKhan
            Dec 17 '16 at 13:03






          • 1





            After running the command I had to reboot my system for changes to take effect. It worked great!

            – codeaviator
            Sep 7 '17 at 12:15

















          This will change the permissions or directly delete the folder??

          – MashukKhan
          Dec 15 '16 at 6:24





          This will change the permissions or directly delete the folder??

          – MashukKhan
          Dec 15 '16 at 6:24













          @MashukKhan This will restore the correct ownership of your home folder and subfolders. Nothing will be deleted.

          – Eric Carvalho
          Dec 15 '16 at 11:02







          @MashukKhan This will restore the correct ownership of your home folder and subfolders. Nothing will be deleted.

          – Eric Carvalho
          Dec 15 '16 at 11:02















          Okay.... Thanks a lot this worked for me

          – MashukKhan
          Dec 17 '16 at 13:03





          Okay.... Thanks a lot this worked for me

          – MashukKhan
          Dec 17 '16 at 13:03




          1




          1





          After running the command I had to reboot my system for changes to take effect. It worked great!

          – codeaviator
          Sep 7 '17 at 12:15





          After running the command I had to reboot my system for changes to take effect. It worked great!

          – codeaviator
          Sep 7 '17 at 12:15













          15














          sudo chmod 777 -R /path to folder you want to delete- This would give all permissions (Read, Write, Execute) to you



          The permissions (in this case 777) are as follow:




          • 7 - Full (Read, Write & Execute)

          • 6 - read and write

          • 5 - read and execute

          • 4 - read only

          • 3 - write and execute

          • 2 - write only

          • 1 - execute only

          • 0 - none


          First number change Ownership of file, second affect Group of users can access, and third refers to Others user.



          Owner   Group   Other
          7 7 7


          after changing the permission, try and delete the folder.






          share|improve this answer





















          • 1





            This would also allow anyone else to access the folder, including guests.

            – Marco Scannadinari
            Mar 7 '13 at 18:32











          • thats why i have given you the explanation. use 757 instead of 777 then

            – Janmejay
            Mar 8 '13 at 20:26











          • sudo chmod u+w -R path_to_folder is a neater way of giving yourself write permission. Not that it makes much difference if you're deleting the folder anyway.

            – lane
            Sep 7 '16 at 12:58











          • Very simple and clean explanation

            – RIT
            Sep 22 '17 at 15:08











          • To apply all permission on current directory type and run: sudo chmod 777 -R .

            – EsmaeelE
            Nov 20 '18 at 11:48


















          15














          sudo chmod 777 -R /path to folder you want to delete- This would give all permissions (Read, Write, Execute) to you



          The permissions (in this case 777) are as follow:




          • 7 - Full (Read, Write & Execute)

          • 6 - read and write

          • 5 - read and execute

          • 4 - read only

          • 3 - write and execute

          • 2 - write only

          • 1 - execute only

          • 0 - none


          First number change Ownership of file, second affect Group of users can access, and third refers to Others user.



          Owner   Group   Other
          7 7 7


          after changing the permission, try and delete the folder.






          share|improve this answer





















          • 1





            This would also allow anyone else to access the folder, including guests.

            – Marco Scannadinari
            Mar 7 '13 at 18:32











          • thats why i have given you the explanation. use 757 instead of 777 then

            – Janmejay
            Mar 8 '13 at 20:26











          • sudo chmod u+w -R path_to_folder is a neater way of giving yourself write permission. Not that it makes much difference if you're deleting the folder anyway.

            – lane
            Sep 7 '16 at 12:58











          • Very simple and clean explanation

            – RIT
            Sep 22 '17 at 15:08











          • To apply all permission on current directory type and run: sudo chmod 777 -R .

            – EsmaeelE
            Nov 20 '18 at 11:48
















          15












          15








          15







          sudo chmod 777 -R /path to folder you want to delete- This would give all permissions (Read, Write, Execute) to you



          The permissions (in this case 777) are as follow:




          • 7 - Full (Read, Write & Execute)

          • 6 - read and write

          • 5 - read and execute

          • 4 - read only

          • 3 - write and execute

          • 2 - write only

          • 1 - execute only

          • 0 - none


          First number change Ownership of file, second affect Group of users can access, and third refers to Others user.



          Owner   Group   Other
          7 7 7


          after changing the permission, try and delete the folder.






          share|improve this answer















          sudo chmod 777 -R /path to folder you want to delete- This would give all permissions (Read, Write, Execute) to you



          The permissions (in this case 777) are as follow:




          • 7 - Full (Read, Write & Execute)

          • 6 - read and write

          • 5 - read and execute

          • 4 - read only

          • 3 - write and execute

          • 2 - write only

          • 1 - execute only

          • 0 - none


          First number change Ownership of file, second affect Group of users can access, and third refers to Others user.



          Owner   Group   Other
          7 7 7


          after changing the permission, try and delete the folder.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 20 '18 at 13:29









          EsmaeelE

          1908




          1908










          answered Mar 3 '13 at 20:08









          JanmejayJanmejay

          28512




          28512








          • 1





            This would also allow anyone else to access the folder, including guests.

            – Marco Scannadinari
            Mar 7 '13 at 18:32











          • thats why i have given you the explanation. use 757 instead of 777 then

            – Janmejay
            Mar 8 '13 at 20:26











          • sudo chmod u+w -R path_to_folder is a neater way of giving yourself write permission. Not that it makes much difference if you're deleting the folder anyway.

            – lane
            Sep 7 '16 at 12:58











          • Very simple and clean explanation

            – RIT
            Sep 22 '17 at 15:08











          • To apply all permission on current directory type and run: sudo chmod 777 -R .

            – EsmaeelE
            Nov 20 '18 at 11:48
















          • 1





            This would also allow anyone else to access the folder, including guests.

            – Marco Scannadinari
            Mar 7 '13 at 18:32











          • thats why i have given you the explanation. use 757 instead of 777 then

            – Janmejay
            Mar 8 '13 at 20:26











          • sudo chmod u+w -R path_to_folder is a neater way of giving yourself write permission. Not that it makes much difference if you're deleting the folder anyway.

            – lane
            Sep 7 '16 at 12:58











          • Very simple and clean explanation

            – RIT
            Sep 22 '17 at 15:08











          • To apply all permission on current directory type and run: sudo chmod 777 -R .

            – EsmaeelE
            Nov 20 '18 at 11:48










          1




          1





          This would also allow anyone else to access the folder, including guests.

          – Marco Scannadinari
          Mar 7 '13 at 18:32





          This would also allow anyone else to access the folder, including guests.

          – Marco Scannadinari
          Mar 7 '13 at 18:32













          thats why i have given you the explanation. use 757 instead of 777 then

          – Janmejay
          Mar 8 '13 at 20:26





          thats why i have given you the explanation. use 757 instead of 777 then

          – Janmejay
          Mar 8 '13 at 20:26













          sudo chmod u+w -R path_to_folder is a neater way of giving yourself write permission. Not that it makes much difference if you're deleting the folder anyway.

          – lane
          Sep 7 '16 at 12:58





          sudo chmod u+w -R path_to_folder is a neater way of giving yourself write permission. Not that it makes much difference if you're deleting the folder anyway.

          – lane
          Sep 7 '16 at 12:58













          Very simple and clean explanation

          – RIT
          Sep 22 '17 at 15:08





          Very simple and clean explanation

          – RIT
          Sep 22 '17 at 15:08













          To apply all permission on current directory type and run: sudo chmod 777 -R .

          – EsmaeelE
          Nov 20 '18 at 11:48







          To apply all permission on current directory type and run: sudo chmod 777 -R .

          – EsmaeelE
          Nov 20 '18 at 11:48













          0














          Open terminal and type



          gksudo nautilus



          Browse to the location of documents. Goto properties and set the permission for owner as well as group as read and write. Now try to delete the folder from another nautilus window (one without root privileges).



          Don't forget to close that super user nautilus as soon as you don't need it any more!






          share|improve this answer





















          • 3





            Never suggest sudo nautilus - gksudo nautilus is the recommended command - if really needed at all.

            – guntbert
            Mar 3 '13 at 18:49
















          0














          Open terminal and type



          gksudo nautilus



          Browse to the location of documents. Goto properties and set the permission for owner as well as group as read and write. Now try to delete the folder from another nautilus window (one without root privileges).



          Don't forget to close that super user nautilus as soon as you don't need it any more!






          share|improve this answer





















          • 3





            Never suggest sudo nautilus - gksudo nautilus is the recommended command - if really needed at all.

            – guntbert
            Mar 3 '13 at 18:49














          0












          0








          0







          Open terminal and type



          gksudo nautilus



          Browse to the location of documents. Goto properties and set the permission for owner as well as group as read and write. Now try to delete the folder from another nautilus window (one without root privileges).



          Don't forget to close that super user nautilus as soon as you don't need it any more!






          share|improve this answer















          Open terminal and type



          gksudo nautilus



          Browse to the location of documents. Goto properties and set the permission for owner as well as group as read and write. Now try to delete the folder from another nautilus window (one without root privileges).



          Don't forget to close that super user nautilus as soon as you don't need it any more!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 3 '13 at 19:44









          guntbert

          9,471133170




          9,471133170










          answered Mar 3 '13 at 14:13









          learnerlearner

          3621517




          3621517








          • 3





            Never suggest sudo nautilus - gksudo nautilus is the recommended command - if really needed at all.

            – guntbert
            Mar 3 '13 at 18:49














          • 3





            Never suggest sudo nautilus - gksudo nautilus is the recommended command - if really needed at all.

            – guntbert
            Mar 3 '13 at 18:49








          3




          3





          Never suggest sudo nautilus - gksudo nautilus is the recommended command - if really needed at all.

          – guntbert
          Mar 3 '13 at 18:49





          Never suggest sudo nautilus - gksudo nautilus is the recommended command - if really needed at all.

          – guntbert
          Mar 3 '13 at 18:49











          0














          This would happen probably because you downloaded something from the web. And you don't have the write access to the folders. If you are sure that the files are virus free, try the following command.



          chmod -R +rw *


          This will remove the lock icon from the nautilus.






          share|improve this answer




























            0














            This would happen probably because you downloaded something from the web. And you don't have the write access to the folders. If you are sure that the files are virus free, try the following command.



            chmod -R +rw *


            This will remove the lock icon from the nautilus.






            share|improve this answer


























              0












              0








              0







              This would happen probably because you downloaded something from the web. And you don't have the write access to the folders. If you are sure that the files are virus free, try the following command.



              chmod -R +rw *


              This will remove the lock icon from the nautilus.






              share|improve this answer













              This would happen probably because you downloaded something from the web. And you don't have the write access to the folders. If you are sure that the files are virus free, try the following command.



              chmod -R +rw *


              This will remove the lock icon from the nautilus.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 25 '14 at 0:59









              VforVitaminVforVitamin

              1213




              1213























                  0














                  I had this problem as I had set everything to chmod 755 to get back into my system after messing with /var permissions.



                  sudo chown -R $USER:$USER ~


                  solved it for me, eventually. I had to delete some files I'd downloaded first.






                  share|improve this answer






























                    0














                    I had this problem as I had set everything to chmod 755 to get back into my system after messing with /var permissions.



                    sudo chown -R $USER:$USER ~


                    solved it for me, eventually. I had to delete some files I'd downloaded first.






                    share|improve this answer




























                      0












                      0








                      0







                      I had this problem as I had set everything to chmod 755 to get back into my system after messing with /var permissions.



                      sudo chown -R $USER:$USER ~


                      solved it for me, eventually. I had to delete some files I'd downloaded first.






                      share|improve this answer















                      I had this problem as I had set everything to chmod 755 to get back into my system after messing with /var permissions.



                      sudo chown -R $USER:$USER ~


                      solved it for me, eventually. I had to delete some files I'd downloaded first.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jan 19 '16 at 16:04









                      Eduardo Cola

                      4,58621031




                      4,58621031










                      answered Jan 19 '16 at 13:00









                      crissixpaulcrissixpaul

                      1337




                      1337























                          0














                          Change the file permissions of lock file via CHMOD command:



                          user@pc:~$ sudo chmod 754 /var/lib/lock *


                          Note: 754 is access permission and path to the directory of lock file present if 754 doesn't, do try 777. Once done you can delete the file.






                          share|improve this answer






























                            0














                            Change the file permissions of lock file via CHMOD command:



                            user@pc:~$ sudo chmod 754 /var/lib/lock *


                            Note: 754 is access permission and path to the directory of lock file present if 754 doesn't, do try 777. Once done you can delete the file.






                            share|improve this answer




























                              0












                              0








                              0







                              Change the file permissions of lock file via CHMOD command:



                              user@pc:~$ sudo chmod 754 /var/lib/lock *


                              Note: 754 is access permission and path to the directory of lock file present if 754 doesn't, do try 777. Once done you can delete the file.






                              share|improve this answer















                              Change the file permissions of lock file via CHMOD command:



                              user@pc:~$ sudo chmod 754 /var/lib/lock *


                              Note: 754 is access permission and path to the directory of lock file present if 754 doesn't, do try 777. Once done you can delete the file.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Sep 12 '16 at 9:50









                              snoop

                              2,90262850




                              2,90262850










                              answered Sep 12 '16 at 4:38









                              Rahul PyakurelRahul Pyakurel

                              1




                              1























                                  0














                                  You should have a look at this answer on Super User. Adding on to this answer, you can also create a bash function like this:



                                  # bash function for changing locked status of folders, pass folder name as command line argument
                                  unlock() {
                                  chflags -R nouchg $1
                                  }


                                  You can put this function in your .bashrc (Linux) or .bash_profile (Mac) file and run source ~/.bashrc or source ~/.bash_profile to rebuild the bash file.





                                  share








                                  New contributor




                                  Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.

























                                    0














                                    You should have a look at this answer on Super User. Adding on to this answer, you can also create a bash function like this:



                                    # bash function for changing locked status of folders, pass folder name as command line argument
                                    unlock() {
                                    chflags -R nouchg $1
                                    }


                                    You can put this function in your .bashrc (Linux) or .bash_profile (Mac) file and run source ~/.bashrc or source ~/.bash_profile to rebuild the bash file.





                                    share








                                    New contributor




                                    Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.























                                      0












                                      0








                                      0







                                      You should have a look at this answer on Super User. Adding on to this answer, you can also create a bash function like this:



                                      # bash function for changing locked status of folders, pass folder name as command line argument
                                      unlock() {
                                      chflags -R nouchg $1
                                      }


                                      You can put this function in your .bashrc (Linux) or .bash_profile (Mac) file and run source ~/.bashrc or source ~/.bash_profile to rebuild the bash file.





                                      share








                                      New contributor




                                      Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.










                                      You should have a look at this answer on Super User. Adding on to this answer, you can also create a bash function like this:



                                      # bash function for changing locked status of folders, pass folder name as command line argument
                                      unlock() {
                                      chflags -R nouchg $1
                                      }


                                      You can put this function in your .bashrc (Linux) or .bash_profile (Mac) file and run source ~/.bashrc or source ~/.bash_profile to rebuild the bash file.






                                      share








                                      New contributor




                                      Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.








                                      share


                                      share






                                      New contributor




                                      Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.









                                      answered 7 mins ago









                                      Chintan GandhiChintan Gandhi

                                      11




                                      11




                                      New contributor




                                      Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.





                                      New contributor





                                      Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.






                                      Chintan Gandhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f263450%2ffolders-showing-lock-icon%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                                          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                                          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...