LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-08-2014, 05:33 AM   #1
srijivdimri
Member
 
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, 06:25 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

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


Reply



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 03:23 PM
hide share directory of samba/windows user centos123 Linux - Server 1 09-03-2011 02:28 PM
Mystery user "mike" in home directory tekmann33 Linux - Software 3 07-13-2009 05:47 PM
How to hide content of /home directory? krivenok Linux - Security 5 09-14-2006 09:57 PM
How to hide and block a directory for a specific user hoolie_v Linux - Newbie 2 08-08-2004 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 AM.

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