Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 470
  • Last Modified:

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
0
jskfan
Asked:
jskfan
  • 3
  • 3
  • 2
  • +3
6 Solutions
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
jskfanAuthor Commented:
Thank you Guys!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now