LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2013, 01:50 PM   #1
9gagarmy
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
How to remove directory make by another user


hi there i want to remove a folder make by another user and this folder have permission 777 but i can remove it. I think it because file owen and group owner but how i can change it with chown ?
ps: this directory under / directory

Last edited by 9gagarmy; 07-29-2013 at 01:54 PM.
 
Old 07-29-2013, 01:53 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
What are the permissions of the containing directory? You must have 'write' on the containing directory to be able to delete any of its contents.
 
Old 07-29-2013, 02:58 PM   #3
geek@LQ
LQ Newbie
 
Registered: Jul 2013
Posts: 14

Rep: Reputation: Disabled
If you really need to remove the directory and other means to do so has failed then just become root and then you can remove it.

rm -rf directory

If you want to keep the directory but change ownership then type
Code:

chown -R user:group directory # use the code if you want to change owner and group
chown -R user directory    # use the code if you want to change owner only
If you're using a distro like ubuntu or its derivatives, precede the command with sudo

Replace user and group with the desired name and group. The -R will applied to parent and sub directories within.

Last edited by geek@LQ; 07-29-2013 at 03:16 PM.
 
  


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
[SOLVED] unable to remove user home directory daisychick Linux - Newbie 8 11-16-2011 12:13 AM
why can I remove files owned by another user in a directory of mine? melcataclysm Linux - Newbie 5 10-18-2009 07:06 AM
Make FTP user and specify directory outside home mirror51 Linux - Newbie 4 09-21-2009 01:19 AM
allow user to make directory RajRed Linux - General 10 02-20-2006 10:51 PM
remove read only attribute in user's directory dsholden Linux - Newbie 5 09-14-2005 06:10 PM


All times are GMT -5. The time now is 05:15 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