Results 1 to 4 of 4

Thread: Can't empty the trash; permission denied

  1. #1

    Default Can't empty the trash; permission denied

    I can't empty the trash in Open SuSE 10.3 and KDE 3.5. It says permission denied to (filename). I searched the forum and google searched, but the answers I found didn't work for me. I can't find out how to get around this error. Can anyone help please?

  2. #2

    Default Re: Can't empty the trash; permission denied

    Ok, I found out I had to su to root in the command line, then navigate to /home/user/.local/share/Trash/files and delete everything there.

  3. #3
    ab@novell.com NNTP User

    Default Re: Can't empty the trash; permission denied

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    ~From the command line:

    cd ~/.Trash #go to your trash

    If you do an `ls -l` or `ll` do you see anything in there that is not
    owned by you? If so use the owner of that file to nuke them, or just
    nuke them with 'root' if nothing else. Assuming the path above is your
    trash:

    `cd ~/.Trash ; rm -rf ./*`

    Good luck.





    BNG22908 wrote:
    | I can't empty the trash in Open SuSE 10.3 and KDE 3.5. It says
    | permission denied to (filename). I searched the forum and google
    | searched, but the answers I found didn't work for me. I can't find out
    | how to get around this error. Can anyone help please?
    |
    |
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFIf8sP3s42bA80+9kRAmO2AJ0eFMQ9q/3vfVmnuClMVSh4oMcnuQCfSfsO
    hoKd8Ky/HqvR28W1DAwpF40=
    =fJYi
    -----END PGP SIGNATURE-----

  4. #4

    Default Re: Can't empty the trash; permission denied

    Thanks for this thread! I too ran into this "permission denied" to empty the KDE trash bin. I got the gist of the issue (dropping directories containing contents with limiting permissions into the trash). Then, I came up with the following alias commands which I put into my .bashrc file which you could put into yours - or wherever you put your home shell resources, if your user account has you logging in via sh or csh, etc:

    alias trashman1='sudo rm -rf ~/.local/share/Trash/*/*'
    alias trashman2='kwriteconfig --file trash.desktop --group "Desktop Entry" --key Icon trashcan_empty'
    alias trashman3='kwriteconfig --file trashapplet.desktop --group "Desktop Entry" --key Icon trashcan_empty'
    alias trashman='trashman1; trashman2; trashman3;'

    (The 'trash man' comes to collect your garbage from your curb side - or - empty TRASH MANually.)

Posting Permissions

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