Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-21-2005, 04:46 PM   #1
Registered: Jun 2005
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
Angry trash permission???

Root can delete things and emty trash.

My user cant.

Please help! I dont quite understand chmod yet!
Old 07-22-2005, 06:08 AM   #2
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
I'd recommend you man chmod to get some more info, but here's some basics for ya. Your command should look something like this...
chmod 755 /home/username/desktop/trash
The numbers(755) after chmod assign what Owner, Group, Users can do. The first digit is for Owner of the file. The second digit is for the group, and third is for everyone else. The number used determines what they can do. For example, 7 means they have full access. They could delete it, change it, etc. Once again, I'd man chmod to get more info on which number you want to use.

I forgot to mention. You may also need to do something like...
chown username /home/username/desktop/trash
The user should be the owner of the trash folder, and most things in their /home/username for that matter. But I suppose it's possible that root is the owner of that folder.

Last edited by Chromezero; 07-22-2005 at 06:15 AM.
Old 07-22-2005, 07:12 AM   #3
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
It all comes down to one point, owner has the permission to delete. So, if you are trying to delete files which were created as root, you can not do so.

Example, you create a txt file as root, but save it in /home/user
Now, if you try to delete the file as user, you cannot.

As suggested, please read the man pages for chmod and chown
man chown
man chmod
Old 07-22-2005, 11:43 AM   #4
Registered: Jun 2005
Distribution: Gentoo
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks guys! Now I can delete things normally! I don't know how I did that in the first place.


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
Trash?? what does rm do exactly? numb Slackware 8 03-14-2005 04:07 PM
I changed the trash can icons but now the full trash can icon doesn't show? Why? Ausar Linux - Newbie 6 08-04-2004 01:59 PM
Where Is My Trash? thorman82 Linux - General 9 01-01-2004 07:40 AM
Trash DavidTempler Mandriva 4 10-15-2003 07:38 PM
trash can loganwva Linux - General 1 11-26-2001 05:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 AM.

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