LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-21-2005, 05:46 PM   #1
lunarcloud_88
Member
 
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, 07:08 AM   #2
Chromezero
Member
 
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...
Code:
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.

*Edit*
I forgot to mention. You may also need to do something like...
Code:
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 07:15 AM.
 
Old 07-22-2005, 08:12 AM   #3
LinuxLala
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, 12:43 PM   #4
lunarcloud_88
Member
 
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.
 
  


Reply


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 05: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 02:59 PM
Where Is My Trash? thorman82 Linux - General 9 01-01-2004 08:40 AM
Trash DavidTempler Mandriva 4 10-15-2003 08:38 PM
trash can loganwva Linux - General 1 11-26-2001 06:41 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration