Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 07-12-2007, 03:48 PM   #1
Registered: May 2006
Location: New Zealand
Distribution: ubuntu, gentoo at uni
Posts: 30

Rep: Reputation: 15
don't have permissions on files I want to delete

I tried to empty my trash but it says I don't have permission for some of the files, how do I change permissions on them so that I can

Last edited by drawde83; 07-12-2007 at 03:55 PM.
Old 07-12-2007, 04:15 PM   #2
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
presuming the trash can is
(usually is)
sudo chmod a+rwx ~/.trash -R
that will add Read Write and eXecute permission for All Recursively in the home directorys .trash folder
Old 07-13-2007, 12:11 AM   #3
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Or since you're just going to delete them, save yourself a step by using sudo to delete the files as superuser.
sudo rm -rd ~/.trash/*

edit: corrected /trash/ to /.trash/


permissions, ubuntu704

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete files that won't delete? di11rod Linux - Security 7 10-19-2005 09:14 PM
File Permissions/ Can't save or delete website files friendlyflier Linux - Security 4 08-07-2005 06:32 AM
how do you delete files? otoomet Linux - General 6 11-12-2004 04:06 AM
force delete/remove and mass file permissions-setting moxieman99 Linux - Newbie 2 02-15-2004 11:43 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration