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

Thread: Can't delete file in Waste

  1. #1
    Join Date
    Aug 2008
    Location
    London
    Posts
    112

    Default Can't delete file in Waste

    Can someone please tell me how to empty my waste bin when there is a protected file inside? I've tried a few different ideas but nothing has worked yet. The file inside had different permissions and thus, I can't delete it. Is there is a SU command in terminal I can use?

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,726
    Blog Entries
    20

    Default Re: Can't delete file in Waste

    Use file manager super user mode
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Aug 2008
    Location
    London
    Posts
    112

    Default Re: Can't delete file in Waste

    Ok, I'm there now but it says the Trash is empty? I'm using Gnome by the way, not KDE.

  4. #4
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: Can't delete file in Waste

    Hmmm, you are probably logged in as root, and that is root's trash. Do NOT login as root to desktop session. Just log in with your own user, and run your file manager in super user mode as caf4926 said. How to do that under Gnome... I have no idea
    Here is the answer: file manager super user - Ubuntu Forums.
    User's trash folder is under ~/.local/share/Trash
    Good luck
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  5. #5
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: Can't delete file in Waste

    Quote Originally Posted by ram88 View Post
    ...
    Here is the answer: file manager super user - Ubuntu Forums.
    ...
    I'm sorry for this (it was the first in Google)
    Here is the answer: How to open Nautilus? - openSUSE Forums
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  6. #6
    Join Date
    Jun 2008
    Location
    Hellas+SuSEland
    Posts
    22

    Default Re: Can't delete file in Waste

    Running nautilus in root mode is essential because some hidden files do not appear when you are normal user. So you can't delete them...:-)

  7. #7
    Join Date
    Aug 2008
    Location
    London
    Posts
    112

    Default Re: Can't delete file in Waste

    I tried running nautilus in su from the terminal but it didn't show any files in the trash? I'm also logged in as a normal user. Isn't there a simple command in the terminal that I can run from su and execute?

  8. #8
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: Can't delete file in Waste

    In your ~./local/share/Trash/files/ folder execute this
    Code:
    # sudo chmod -R 777 * (before executing this command, check one more time, are you in the right folder ;))
    # rm -r *
    Now go to the ~./local/share/Trash/info/ folder and repeat the Code: section above.
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,504
    Blog Entries
    15

    Default Re: Can't delete file in Waste

    Quote Originally Posted by RJWEcology
    I tried running nautilus in su from the terminal but it didn't show any
    files in the trash? I'm also logged in as a normal user. Isn't there a
    simple command in the terminal that I can run from su and execute?
    Hi
    You need to change to the users directory first. From a terminal it
    would be;
    Code:
    malcolml@kermit-opensuse:~$ cd .local/share/Trash/
    malcolml@kermit-opensuse:~/.local/share/Trash$ su
    Password:
    kermit-opensuse:/home/malcolml/.local/share/Trash # ls
    files  info
    kermit-opensuse:/home/malcolml/.local/share/Trash # rm files/*
    kermit-opensuse:/home/malcolml/.local/share/Trash # rm info/*
    kermit-opensuse:/home/malcolml/.local/share/Trash # exit
    exit
    Note the su command (no -) will leave me with users environment.

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
    up 0:28, 2 users, load average: 0.10, 0.04, 0.10
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  10. #10
    Join Date
    Aug 2008
    Location
    London
    Posts
    112

    Default Re: Can't delete file in Waste

    I get 'cannot remove `files/cedega-engine-6.0.5': Is a directory'

Page 1 of 2 12 LastLast

Posting Permissions

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