Login  Register

Re: Permission to only one directory

Posted by ErmanArslansOracleBlog on Aug 25, 2021; 10:11am
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/Permission-to-only-one-directory-tp10155p10172.html

Yes..That can be done using chmod command.
Give the required permissions "only" for the custom top directory to the user.
Remove the execute (+any other permissions) permission for the other directories which reside in the same directory as the custom top directory.
Then give "only" the execute privilege for the parent directory to the user and that's it.

So that user should have only the execute privilege on the parent directory. That user should not have any privileges on the other directories which reside in the same parent directory as the custom directory. Finally that user should have the required privileges (rwx or any other) for the custom top directory. This way, the user can access only the custom directory.