LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-24-2015, 05:08 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Limit users to see Directories.


Hello.
I want to share some Directories on my Linux Box and some users in network connect to my server for work on my Directories but I just want they can see my Samba shares and can't Browse other Directories and etc.
For example, When Clients on Windows use "SFTP" they can see other Directories too but how can I limit them to special parts?

Thank you.
 
Old 04-24-2015, 05:41 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Use unix permissons (chown + chmod).
 
Old 04-25-2015, 12:31 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
In your opinion I must use "chmod" and "chown" for all directory in my Linux system!!!!!!!!!!!!!!!!!!!!
I guess you misunderstand I mean. When I use a user for logging into Linux, This user can browse all directories and it is so bad
 
Old 04-25-2015, 12:34 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
You need to share exactly what you want to share, nothing more. But without knowing your configuration (samba, nfs, ftp, whatever) we cannot say more. And of course you need to set up permissions/access rights properly.
 
Old 04-25-2015, 03:42 AM   #5
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I joined my Linux Box into Windows Domain and all users in Active directory can logging into Linux and see all Linux Directories. Any idea?
 
  


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
gzip directories: 1GB split, with CPU limit? (partial solution figured out) Ultrus Linux - Server 8 12-12-2013 12:51 AM
[SOLVED] pam_listfile to limit users domain users SSH access r3z Linux - Enterprise 5 09-19-2009 01:25 AM
Limit Internet access to specific directories pcchicks Linux - Security 4 09-13-2009 12:09 PM
Way to limit home directories.... anon111 Linux - Software 1 04-12-2005 08:34 PM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:56 PM.

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