Give read write-only access to specific folder?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question





















  • 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















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?







share|improve this question





















  • 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













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?







share|improve this question













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?









share|improve this question












share|improve this question




share|improve this question








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 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

















  • 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
















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











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).





share|improve this answer























  • 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











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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






























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).





share|improve this answer























  • 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















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).





share|improve this answer























  • 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













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).





share|improve this answer















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).






share|improve this answer















share|improve this answer



share|improve this answer








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

















  • 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













 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay