Give read write-only access to specific folder?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I created an LDAP group rcars. I also created a directory rcars. How can I set permission so that only rcars group can read/write?
linux permissions filesystems rhel chmod
add a comment |Â
up vote
0
down vote
favorite
I created an LDAP group rcars. I also created a directory rcars. How can I set permission so that only rcars group can read/write?
linux permissions filesystems rhel chmod
Does your system use LDAP for its group memberships? Have you looked at thechmod
andchgrp
commands?
â roaima
Jul 10 at 19:44
yes it uses LDAP. I have tried both chmod & chgrp as well.
â Mervyn Clarke
Jul 10 at 19:46
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I created an LDAP group rcars. I also created a directory rcars. How can I set permission so that only rcars group can read/write?
linux permissions filesystems rhel chmod
I created an LDAP group rcars. I also created a directory rcars. How can I set permission so that only rcars group can read/write?
linux permissions filesystems rhel chmod
edited Jul 10 at 19:31
SivaPrasath
3,68311636
3,68311636
asked Jul 10 at 19:30
Mervyn Clarke
184
184
Does your system use LDAP for its group memberships? Have you looked at thechmod
andchgrp
commands?
â roaima
Jul 10 at 19:44
yes it uses LDAP. I have tried both chmod & chgrp as well.
â Mervyn Clarke
Jul 10 at 19:46
add a comment |Â
Does your system use LDAP for its group memberships? Have you looked at thechmod
andchgrp
commands?
â roaima
Jul 10 at 19:44
yes it uses LDAP. I have tried both chmod & chgrp as well.
â Mervyn Clarke
Jul 10 at 19:46
Does your system use LDAP for its group memberships? Have you looked at the
chmod
and chgrp
commands?â roaima
Jul 10 at 19:44
Does your system use LDAP for its group memberships? Have you looked at the
chmod
and chgrp
commands?â roaima
Jul 10 at 19:44
yes it uses LDAP. I have tried both chmod & chgrp as well.
â Mervyn Clarke
Jul 10 at 19:46
yes it uses LDAP. I have tried both chmod & chgrp as well.
â Mervyn Clarke
Jul 10 at 19:46
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
The rcars
directory will first need to be part of rcars
group (the folder's owner or root can perform this operation).
Syntax: chgrp <groupName> -R <folderName>
chgrp rcars -R rcars
Then, the rcars
group will need rw
permissions of the directory.
Syntax:chmod g+rw <folderName>
chmod g+rw -R rcars
To remove others access:
chmod o-rw -R rcars
-R
is for recursive permission (all sub-directories and files in it).
Thank you. The group was changed to rcars. However the perms still remain drwxrwsr-x
â Mervyn Clarke
Jul 10 at 19:40
@MervynClarke try my updated answer.
â SivaPrasath
Jul 10 at 19:43
Thanks that did it. I also did the same for the user. chmod u-rw -R rcars. Thanks again.
â Mervyn Clarke
Jul 10 at 19:49
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
The rcars
directory will first need to be part of rcars
group (the folder's owner or root can perform this operation).
Syntax: chgrp <groupName> -R <folderName>
chgrp rcars -R rcars
Then, the rcars
group will need rw
permissions of the directory.
Syntax:chmod g+rw <folderName>
chmod g+rw -R rcars
To remove others access:
chmod o-rw -R rcars
-R
is for recursive permission (all sub-directories and files in it).
Thank you. The group was changed to rcars. However the perms still remain drwxrwsr-x
â Mervyn Clarke
Jul 10 at 19:40
@MervynClarke try my updated answer.
â SivaPrasath
Jul 10 at 19:43
Thanks that did it. I also did the same for the user. chmod u-rw -R rcars. Thanks again.
â Mervyn Clarke
Jul 10 at 19:49
add a comment |Â
up vote
0
down vote
accepted
The rcars
directory will first need to be part of rcars
group (the folder's owner or root can perform this operation).
Syntax: chgrp <groupName> -R <folderName>
chgrp rcars -R rcars
Then, the rcars
group will need rw
permissions of the directory.
Syntax:chmod g+rw <folderName>
chmod g+rw -R rcars
To remove others access:
chmod o-rw -R rcars
-R
is for recursive permission (all sub-directories and files in it).
Thank you. The group was changed to rcars. However the perms still remain drwxrwsr-x
â Mervyn Clarke
Jul 10 at 19:40
@MervynClarke try my updated answer.
â SivaPrasath
Jul 10 at 19:43
Thanks that did it. I also did the same for the user. chmod u-rw -R rcars. Thanks again.
â Mervyn Clarke
Jul 10 at 19:49
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
The rcars
directory will first need to be part of rcars
group (the folder's owner or root can perform this operation).
Syntax: chgrp <groupName> -R <folderName>
chgrp rcars -R rcars
Then, the rcars
group will need rw
permissions of the directory.
Syntax:chmod g+rw <folderName>
chmod g+rw -R rcars
To remove others access:
chmod o-rw -R rcars
-R
is for recursive permission (all sub-directories and files in it).
The rcars
directory will first need to be part of rcars
group (the folder's owner or root can perform this operation).
Syntax: chgrp <groupName> -R <folderName>
chgrp rcars -R rcars
Then, the rcars
group will need rw
permissions of the directory.
Syntax:chmod g+rw <folderName>
chmod g+rw -R rcars
To remove others access:
chmod o-rw -R rcars
-R
is for recursive permission (all sub-directories and files in it).
edited Jul 10 at 19:45
Andy Dalton
4,7111520
4,7111520
answered Jul 10 at 19:35
SivaPrasath
3,68311636
3,68311636
Thank you. The group was changed to rcars. However the perms still remain drwxrwsr-x
â Mervyn Clarke
Jul 10 at 19:40
@MervynClarke try my updated answer.
â SivaPrasath
Jul 10 at 19:43
Thanks that did it. I also did the same for the user. chmod u-rw -R rcars. Thanks again.
â Mervyn Clarke
Jul 10 at 19:49
add a comment |Â
Thank you. The group was changed to rcars. However the perms still remain drwxrwsr-x
â Mervyn Clarke
Jul 10 at 19:40
@MervynClarke try my updated answer.
â SivaPrasath
Jul 10 at 19:43
Thanks that did it. I also did the same for the user. chmod u-rw -R rcars. Thanks again.
â Mervyn Clarke
Jul 10 at 19:49
Thank you. The group was changed to rcars. However the perms still remain drwxrwsr-x
â Mervyn Clarke
Jul 10 at 19:40
Thank you. The group was changed to rcars. However the perms still remain drwxrwsr-x
â Mervyn Clarke
Jul 10 at 19:40
@MervynClarke try my updated answer.
â SivaPrasath
Jul 10 at 19:43
@MervynClarke try my updated answer.
â SivaPrasath
Jul 10 at 19:43
Thanks that did it. I also did the same for the user. chmod u-rw -R rcars. Thanks again.
â Mervyn Clarke
Jul 10 at 19:49
Thanks that did it. I also did the same for the user. chmod u-rw -R rcars. Thanks again.
â Mervyn Clarke
Jul 10 at 19:49
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454555%2fgive-read-write-only-access-to-specific-folder%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Does your system use LDAP for its group memberships? Have you looked at the
chmod
andchgrp
commands?â roaima
Jul 10 at 19:44
yes it uses LDAP. I have tried both chmod & chgrp as well.
â Mervyn Clarke
Jul 10 at 19:46