LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 07-12-2007, 03:48 PM   #1
drawde83
Member
 
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


hi,
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
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 30
presuming the trash can is
~/.trash
(usually is)
Code:
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
felixc
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu, Debian
Posts: 94

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

edit: corrected /trash/ to /.trash/
 
  


Reply

Tags
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:33 PM.

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