#1  
Old 21st October 2009, 05:38
mitho7 mitho7 is offline
Member
 
Join Date: Apr 2007
Posts: 33
Thanks: 4
Thanked 1 Time in 1 Post
Default Samba Configuration

Iím trying to set up some samba configuration. Here is the scenario:

I have two directories:

A. /home/users/share/
B. /home/users/share/files/abc

Iíll have one share to directory A, which has permission to certain users, with username and password and they can access from any IP on the domain. But I want to get another share to the directory B which is open for every domain users but can only be accessible from one IP address or host name, where users can login through Citrix server and access the files.

i'm using Samba 3.0.11

Thanks in advance.
__________________
--
Bip
www.makeonlineshop.com
Reply With Quote
Sponsored Links
  #2  
Old 21st October 2009, 09:31
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

How does your actual samba config look like or don't you have configured anything at all currently?

So for your problem of share b, you can add lines similar to the following ones on a per share basis (in this case your share b):
Quote:
hosts allow = 192.168.115.0/24 127.0.0.1
hosts deny = 0.0.0.0/0
But to get it right, you want to mix the auth shemes from username + passwd for share a with domain access for share b? If so I am not sure if this is possible as I though this can only be definied for the smb server security modell on a general basis.
Reply With Quote
  #3  
Old 9th November 2009, 05:44
mitho7 mitho7 is offline
Member
 
Join Date: Apr 2007
Posts: 33
Thanks: 4
Thanked 1 Time in 1 Post
 
Default

Hi Ben,

first of all sorry for late reply on it and thanks for your post. I was away. I'm not sure about the share basis restriction by host work on samba. I thought host base restriction is only Global option.

I do not need to restrict the users on share b. any one on the domain can access it as log as they come through that "hosts allow = 192.168.115.0/24" servers. So my configuration will look like:

Code:
[alluser]
comment = share for all user
path = /home/users/share/files/abc
public = yes
printable = no
writable = no
hosts allow = 192.168.115.0/24 127.0.0.1
hosts deny = 0.0.0.0/0
Does all the 3.+ version of samba allows share basis host restriction?
__________________
--
Bip
www.makeonlineshop.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15
Samba Ldap Problem ZenMatrix Server Operation 1 10th August 2008 07:02
importing samba PDC configuration antuanjoseff Server Operation 0 30th July 2008 18:57
OpenLDAP + Samba Domain Controller On Ubuntu 7.10 E1sbaer HOWTO-Related Questions 3 7th May 2008 18:41


All times are GMT +2. The time now is 07:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.