Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 06-08-2014, 06:33 AM   #1
Registered: Jun 2013
Location: India.
Posts: 35

Rep: Reputation: Disabled
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.
Old 06-08-2014, 07:25 AM   #2
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
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').


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions problems in directories not in user home directory. Grtyop Linux - Newbie 5 12-18-2013 04:23 PM
hide share directory of samba/windows user centos123 Linux - Server 1 09-03-2011 03:28 PM
Mystery user "mike" in home directory tekmann33 Linux - Software 3 07-13-2009 06:47 PM
How to hide content of /home directory? krivenok Linux - Security 5 09-14-2006 10:57 PM
How to hide and block a directory for a specific user hoolie_v Linux - Newbie 2 08-08-2004 08:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration