LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to restrict samba write access from a network ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-restrict-samba-write-access-from-a-network-713650/)

bittus 03-22-2009 06:55 PM

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

vindoan 03-22-2009 11:40 PM

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/

billymayday 03-22-2009 11:55 PM

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)

bittus 03-23-2009 12:49 AM

Thanks for the replies.

I ll try to host multiple servers.

By the way, has anyone done this ?


All times are GMT -5. The time now is 03:20 PM.