Restricting specific folder access to a user
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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.
command-line chmod user-management
add a comment |Â
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.
command-line chmod user-management
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 withsudo 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
add a comment |Â
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.
command-line chmod user-management
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.
command-line chmod user-management
edited May 8 at 19:01
valiano
782313
782313
asked May 8 at 16:56
![](https://i.stack.imgur.com/MOxQB.jpg?s=32&g=1)
![](https://i.stack.imgur.com/MOxQB.jpg?s=32&g=1)
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 withsudo 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
add a comment |Â
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 withsudo 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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%2faskubuntu.com%2fquestions%2f1033672%2frestricting-specific-folder-access-to-a-user%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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