Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: How To Gain Access To Locked Files & Folders?

  1. #11
    Join Date
    Mar 2011
    Beans
    370

    Re: How To Gain Access To Locked Files & Folders?

    Quote Originally Posted by rez182 View Post
    @~Plue, im sorry im a little confused now, i still didnt delete anything, so should i be worried using drag and drop method, even if i do it carefully making sure i dont delete anything else but those folders?
    again, its a wrong assumption on my part. if you follow yetimans advice, everything should be fine.

  2. #12
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: How To Gain Access To Locked Files & Folders?

    Quote Originally Posted by rez182 View Post
    thanks alot yetiman and plue, it worked
    You're welcome,
    Cheers from yetiman64.

  3. #13
    Join Date
    Feb 2010
    Location
    Washington, DC Area
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How To Gain Access To Locked Files & Folders?

    Quote Originally Posted by yetiman64 View Post
    @ dcsoldschool53, your first command will remove the trash directory itself not just the contents and you don't need sudo to delete files or folders in a users home directory plus the -f or force switch is totally unnecessary. Please reconsider it.

    OP if you follow my first post but change the command to "sudo rm -r" (recursive switch for directories) those folders and their contents will be removed.
    You are right, because the command is actually
    Code:
    sudo rm -rf  ~/.local/share/Trash/*
    This will work. I forgot to add the * after Trash/. SORRY this will not delete the trash folder but it will delete everything in it.

  4. #14
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: How To Gain Access To Locked Files & Folders?

    Quote Originally Posted by dcsoldschool53 View Post
    You are right, because the command is actually
    Code:
    sudo rm -rf  ~/.local/share/Trash/*
    This will work. I forgot to add the * after Trash/. SORRY this will not delete the trash folder but it will delete everything in it.
    You are removing files/folders in the users home directory so sudo is not needed also the force switch is unnecessary so the command in this case should be,

    Code:
    rm -r ~/.local/share/Trash/*
    You only need to invoke sudo if the files/folders are owned by root.

    Just tested this here and it works .

  5. #15
    Join Date
    Sep 2010
    Location
    Denmark
    Beans
    3
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How To Gain Access To Locked Files & Folders?

    @ yetiman 64, Worked for me with some folders (directories) that were beginning to drive me completely mad! Thank you.

  6. #16
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,809
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How To Gain Access To Locked Files & Folders?

    Thanks for sharing. Thread Closed.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

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