LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to hide the directories content for /opt/ directory from user mike. (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-hide-the-directories-content-for-opt-directory-from-user-mike-4175507394/)

srijivdimri 06-08-2014 05:33 AM

Need to hide the directories content for /opt/ directory from user mike.
 
Hi Experts,

I hope you all are doing well.

RedHat 6.2 (Santiago).

I need your help in granting permission to a user in such a way that he is able to see and access JUST FILES under a sub-directory. I don't want this user to even see the contents under the main directory except for the one which I want to granted him the permission to.

Ex:- I have configured a user 'mike'. I want this user to just see and access the file under /opt/yahoo/gmail/abc/ . If he does an wscp from the windows machine to this redhat server, he should be just able to see /opt/yahoo/gmail/abc/X and nothing else. Rest all other contents under /opt/ or /opt/yahoo should be hidden from it.

I am pretty sure there must be a way, but I am not able to figure it out. I tried to work with the chmod and acl's but that is not solving my purpose and issue as the user is still able to see /opt/ and all the other contents under this directory.

Need your expert guidance.

Appreciate all your help in advance.

unSpawn 06-08-2014 06:25 AM

I have no intention to find out what "wscp" is (unless you meant WinSCP in which case you shouldn't use abbreviations only you use), and also note saying "I tried to work with the chmod and acl's but that is not solving my purpose" without showing proof of that is utterly meaningless, asserting this is about SSH access IIRC the term you're looking for is "chroot" (as in 'man sshd_config':ChrootDirectory or 'scponly' or 'rssh').


All times are GMT -5. The time now is 01:05 AM.