Linux permission for group users to delete files and directory
up vote
0
down vote
favorite
I need to grant users in a group to delete the directory and files inside the directory. I have added all the users to group named "fileHandlers". I want all users in this group to have permission to create files or folders and delete them.
drwxr-sr-x 2 www-data fileHandlers 4096 Nov 26 13:13 7005C0FA85E4A0B445E77C126EEB8056
In the above example only www-data is able to delete this files. how can i extend it for all the users in group "fileHandlers"
linux
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
I need to grant users in a group to delete the directory and files inside the directory. I have added all the users to group named "fileHandlers". I want all users in this group to have permission to create files or folders and delete them.
drwxr-sr-x 2 www-data fileHandlers 4096 Nov 26 13:13 7005C0FA85E4A0B445E77C126EEB8056
In the above example only www-data is able to delete this files. how can i extend it for all the users in group "fileHandlers"
linux
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Use ACL or just grant them write permission:chmod -R g+w whatever
– iBug
Nov 27 at 4:04
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to grant users in a group to delete the directory and files inside the directory. I have added all the users to group named "fileHandlers". I want all users in this group to have permission to create files or folders and delete them.
drwxr-sr-x 2 www-data fileHandlers 4096 Nov 26 13:13 7005C0FA85E4A0B445E77C126EEB8056
In the above example only www-data is able to delete this files. how can i extend it for all the users in group "fileHandlers"
linux
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I need to grant users in a group to delete the directory and files inside the directory. I have added all the users to group named "fileHandlers". I want all users in this group to have permission to create files or folders and delete them.
drwxr-sr-x 2 www-data fileHandlers 4096 Nov 26 13:13 7005C0FA85E4A0B445E77C126EEB8056
In the above example only www-data is able to delete this files. how can i extend it for all the users in group "fileHandlers"
linux
linux
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 27 at 3:55
codlib
101
101
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Use ACL or just grant them write permission:chmod -R g+w whatever
– iBug
Nov 27 at 4:04
add a comment |
Use ACL or just grant them write permission:chmod -R g+w whatever
– iBug
Nov 27 at 4:04
Use ACL or just grant them write permission:
chmod -R g+w whatever
– iBug
Nov 27 at 4:04
Use ACL or just grant them write permission:
chmod -R g+w whatever
– iBug
Nov 27 at 4:04
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
You need to give the users (i.e., the group)
write permission to the directory:
chmod g+w dirname
For them to be able to delete the directory itself,
they need write permission to the parent directory.
add a comment |
up vote
0
down vote
fixed the problem with following commands
chgrp -R fileHandlers attachments/
chmod -R g+w attachments/
find attachments -type d -exec chmod 2775 {} ;
find attachments -type f -exec chmod ug+rw {} ;
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
You need to give the users (i.e., the group)
write permission to the directory:
chmod g+w dirname
For them to be able to delete the directory itself,
they need write permission to the parent directory.
add a comment |
up vote
2
down vote
You need to give the users (i.e., the group)
write permission to the directory:
chmod g+w dirname
For them to be able to delete the directory itself,
they need write permission to the parent directory.
add a comment |
up vote
2
down vote
up vote
2
down vote
You need to give the users (i.e., the group)
write permission to the directory:
chmod g+w dirname
For them to be able to delete the directory itself,
they need write permission to the parent directory.
You need to give the users (i.e., the group)
write permission to the directory:
chmod g+w dirname
For them to be able to delete the directory itself,
they need write permission to the parent directory.
answered Nov 27 at 4:06
Scott
6,77642650
6,77642650
add a comment |
add a comment |
up vote
0
down vote
fixed the problem with following commands
chgrp -R fileHandlers attachments/
chmod -R g+w attachments/
find attachments -type d -exec chmod 2775 {} ;
find attachments -type f -exec chmod ug+rw {} ;
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
fixed the problem with following commands
chgrp -R fileHandlers attachments/
chmod -R g+w attachments/
find attachments -type d -exec chmod 2775 {} ;
find attachments -type f -exec chmod ug+rw {} ;
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
up vote
0
down vote
fixed the problem with following commands
chgrp -R fileHandlers attachments/
chmod -R g+w attachments/
find attachments -type d -exec chmod 2775 {} ;
find attachments -type f -exec chmod ug+rw {} ;
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
fixed the problem with following commands
chgrp -R fileHandlers attachments/
chmod -R g+w attachments/
find attachments -type d -exec chmod 2775 {} ;
find attachments -type f -exec chmod ug+rw {} ;
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Nov 27 at 6:33
codlib
101
101
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
codlib is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
codlib is a new contributor. Be nice, and check out our Code of Conduct.
codlib is a new contributor. Be nice, and check out our Code of Conduct.
codlib is a new contributor. Be nice, and check out our Code of Conduct.
codlib is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484353%2flinux-permission-for-group-users-to-delete-files-and-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Use ACL or just grant them write permission:
chmod -R g+w whatever
– iBug
Nov 27 at 4:04