Does Chown give full rights to a folder

I have given a user Test, ownership to a folder, but that user cannot remove the folder.
ownown
jskfanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
Have you tried
rm -rf testfolder?

HTH,
Dan
0
savoneCommented:
The owner does not have any permissions to the folder according to your screenshot.

Try this:
chmod 770 testfolder

That will give the OWNER (first 7) and the GROUP (second 7) full access and everyone else NO access.
0
David CarrCommented:
chown is used to change the owner.

chmod is used to change the permissions.

try chmod 755 testfolder
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

savoneCommented:
@David Carr,  Why add read/execute permissions for everybody?
0
jskfanAuthor Commented:
I guess even when you give  a group or a user ownership of a folder they cannot delete it, they can delete only whatever they create inside that folder.

permissions
0
Seth SimmonsSr. Systems AdministratorCommented:
did you just add testuser1 to testgroup1?
if so, try to log out and in again and remove that folder
0
savoneCommented:
@Seth Simmons has  a good point.

Can you show us the output of the following command:

id testuser1
0
jskfanAuthor Commented:
testuser1 is member of testgroup1
pm
0
Seth SimmonsSr. Systems AdministratorCommented:
oh...should have noticed this before
you can't delete it because you're on the root of the file system
within testfolder you can do whatever you want as a normal user but you can't delete it or create anything because the root level is owned by root (755)

do ls -lha / and you'll see why

putty
0
skullnobrainsCommented:
I guess even when you give  a group or a user ownership of a folder they cannot delete it, they can delete only whatever they create inside that folder.

yes : you need write permissions on the parent folder in order to delete a file or folder and you don't even need any permissions on the file/folder you are deleting
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jskfanAuthor Commented:
Thank you Guys!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.