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?
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.
-----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-----
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.)