LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-22-2009, 07:55 PM   #1
bittus
Member
 
Registered: Aug 2006
Posts: 153

Rep: Reputation: 15
How to restrict samba write access from a network ?


Hi,

I am running FC8 and samba Version 3.0.28a-0.fc8. This box is also configured as an internet gateway.

eth0 - holds the internal network
eth2 - holds the external network

I need to configure samba in such a way that the users accessing thru eth0 needs the write access, while all other users should only have read access.

Can I get a help on this ?

Thanks
 
Old 03-23-2009, 12:40 AM   #2
vindoan
LQ Newbie
 
Registered: Mar 2009
Posts: 23

Rep: Reputation: 17
Unfortunately, doing what you want is not possible with samba.

Setting ready only or writeable in samba is on the share. So if you set a share as read only, it will be ready only no matter what interface.

You can specify a write list, for users that have write permission. Again that would be on the whole share.

I maybe wrong, but that is how I understand it, based on my reading of the Samba man pages. http://us1.samba.org/samba/docs/man/manpages-3/
 
Old 03-23-2009, 12:55 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I think you may need to consider running multiple instances of samba, with slightly different share definitions, and each listening to one NIC.

Not trivial - see http://us3.samba.org/samba/docs/man/...html#id2666864

Read the Multiple Virtual Server Personalities - you may be able to have different personalities listening on each NIC (see interfaces and bind interfaces parameters)

Last edited by billymayday; 03-23-2009 at 01:22 AM.
 
Old 03-23-2009, 01:49 AM   #4
bittus
Member
 
Registered: Aug 2006
Posts: 153

Original Poster
Rep: Reputation: 15
Thanks for the replies.

I ll try to host multiple servers.

By the way, has anyone done this ?
 
  


Reply


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
Ubuntu 8.04 in windows network cannot get write access for all samba shares cliffsur Linux - Newbie 6 09-18-2008 01:29 PM
Samba: How to restrict access to server via MAC-address? johnny1959 Linux - Networking 5 03-27-2008 05:43 AM
restrict Samba access to only certain LAN IP addresses? dgr Red Hat 3 08-07-2007 11:00 AM
How to set up network permissions for user accounts. Restrict network access. r00tb33r Linux - Networking 7 02-04-2007 10:10 PM
Restrict Network Access alxdotnet Linux - Software 3 04-10-2004 11:05 PM

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

All times are GMT -5. The time now is 05:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration