Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Newbie question:
Let's say we have a folder called: /var/admin/ and only admin has access to it. If we have another folder called /var/admin/user/ how can we give access to a specific user to the "user" folder only?
Let's say we have two users: admin and user
We want "admin" to have (rwx) access to /var/admin/ directory and "user" to have (rwx) access to /var/admin/user/ directory only. So the "user" cannot access /var/admin/ folder.
Let's say we have two users: admin and user
We want "admin" to have (rwx) access to /var/admin/ directory and "user" to have (rwx) access to /var/admin/user/ directory only. So the "user" cannot access /var/admin/ folder.
You mean to say only admin user have 7 (rwx) permission on /var/admin dir. and other users has 0 (no permission) am i right? As per my view this is not possible to set full access on sub dir. without read access on parent.
If i didnt get it wrong. You mean to say, There are 2 folders on the same machine /path/to/admin and /path/to/admin/user. The user should have no rights on the admin folder??
I think the easiest way to restrict access to the user is by not providing him sudo access. Then you can look at this link , for more info regarding giving permissions
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.