Restricting specific folder access to a user

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have three users. For one user I want to restrict access to some specific folders. When I tried to do this through Ubuntu GUI, it did not work. Can you please tell me some commands so that I can disable listing of that folder to a specific user?



I have read on the net that I have to create groups and then assign permission to these groups, but I don't want to create groups since I have just one user.



I have tried the following, but it did not work:



sudo chmod 755 -R my_folder



Please tell me any inputs you want from my side.







share|improve this question






















  • The easiest way to do this is to create a new group. Add users you want to be able to view the folder to the group. Then change the permissions of the folder with sudo chmod 750 -R [folder]. You have to logout and back in before group changes will take effect. A more complicated option is to use Access Control Lists.
    – xiota
    May 8 at 17:27










  • chmod -R is almost never a good idea. Now all files below that folder are executable. Not exactly sensible.
    – PerlDuck
    May 8 at 17:52














up vote
0
down vote

favorite












I have three users. For one user I want to restrict access to some specific folders. When I tried to do this through Ubuntu GUI, it did not work. Can you please tell me some commands so that I can disable listing of that folder to a specific user?



I have read on the net that I have to create groups and then assign permission to these groups, but I don't want to create groups since I have just one user.



I have tried the following, but it did not work:



sudo chmod 755 -R my_folder



Please tell me any inputs you want from my side.







share|improve this question






















  • The easiest way to do this is to create a new group. Add users you want to be able to view the folder to the group. Then change the permissions of the folder with sudo chmod 750 -R [folder]. You have to logout and back in before group changes will take effect. A more complicated option is to use Access Control Lists.
    – xiota
    May 8 at 17:27










  • chmod -R is almost never a good idea. Now all files below that folder are executable. Not exactly sensible.
    – PerlDuck
    May 8 at 17:52












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have three users. For one user I want to restrict access to some specific folders. When I tried to do this through Ubuntu GUI, it did not work. Can you please tell me some commands so that I can disable listing of that folder to a specific user?



I have read on the net that I have to create groups and then assign permission to these groups, but I don't want to create groups since I have just one user.



I have tried the following, but it did not work:



sudo chmod 755 -R my_folder



Please tell me any inputs you want from my side.







share|improve this question














I have three users. For one user I want to restrict access to some specific folders. When I tried to do this through Ubuntu GUI, it did not work. Can you please tell me some commands so that I can disable listing of that folder to a specific user?



I have read on the net that I have to create groups and then assign permission to these groups, but I don't want to create groups since I have just one user.



I have tried the following, but it did not work:



sudo chmod 755 -R my_folder



Please tell me any inputs you want from my side.









share|improve this question













share|improve this question




share|improve this question








edited May 8 at 19:01









valiano

782313




782313










asked May 8 at 16:56









Pranav Mandlik

1011




1011











  • The easiest way to do this is to create a new group. Add users you want to be able to view the folder to the group. Then change the permissions of the folder with sudo chmod 750 -R [folder]. You have to logout and back in before group changes will take effect. A more complicated option is to use Access Control Lists.
    – xiota
    May 8 at 17:27










  • chmod -R is almost never a good idea. Now all files below that folder are executable. Not exactly sensible.
    – PerlDuck
    May 8 at 17:52
















  • The easiest way to do this is to create a new group. Add users you want to be able to view the folder to the group. Then change the permissions of the folder with sudo chmod 750 -R [folder]. You have to logout and back in before group changes will take effect. A more complicated option is to use Access Control Lists.
    – xiota
    May 8 at 17:27










  • chmod -R is almost never a good idea. Now all files below that folder are executable. Not exactly sensible.
    – PerlDuck
    May 8 at 17:52















The easiest way to do this is to create a new group. Add users you want to be able to view the folder to the group. Then change the permissions of the folder with sudo chmod 750 -R [folder]. You have to logout and back in before group changes will take effect. A more complicated option is to use Access Control Lists.
– xiota
May 8 at 17:27




The easiest way to do this is to create a new group. Add users you want to be able to view the folder to the group. Then change the permissions of the folder with sudo chmod 750 -R [folder]. You have to logout and back in before group changes will take effect. A more complicated option is to use Access Control Lists.
– xiota
May 8 at 17:27












chmod -R is almost never a good idea. Now all files below that folder are executable. Not exactly sensible.
– PerlDuck
May 8 at 17:52




chmod -R is almost never a good idea. Now all files below that folder are executable. Not exactly sensible.
– PerlDuck
May 8 at 17:52















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1033672%2frestricting-specific-folder-access-to-a-user%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033672%2frestricting-specific-folder-access-to-a-user%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491