Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-15-2015, 08:25 AM   #1
LQ Newbie
Registered: Aug 2015
Posts: 2

Rep: Reputation: Disabled
grant read-only and write permission using ip in smb.conf

I want to give read-only permission to specific ip(say and r/w permission to ip ( on same share.
; path = /mnt/share1
; public = yes
; writable = yes
; read only = no
; force user = nobody
; hosts allow =

; path = /mnt/share1
; public = yes
; writable = no
; read only = yes
; force user = nobody
; hosts allow =
As suggestions I could search on net.But it seems that samba only takes last configuration.In upper case it would see every ip as read only and if I reverse it would become r/w for both ips.
Please help.
Old 08-16-2015, 12:07 PM   #2
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
The problem you seem to be facing is your restricting access based on IP and not user accounts. That's not really the way SAMBA works, in addition to being file server software, it's also a user permissions repository and domain controller.

You'd probably have better luck creating a system account on the client machine, giving it sufficient local permissions to mount the slice and on the SAMBA server, restrict that account to "read only".


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
Grant user to read only permission linuxmantra Linux - Newbie 12 04-22-2014 07:26 AM
smb.conf assistance on read/write server jer2eydevil88 Linux - Newbie 9 09-28-2005 08:26 PM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 08:14 PM
Why is smb.conf read only? spike0 Linux - Software 3 08-20-2004 07:51 PM
smb.conf file write permission jbraum Mandriva 3 01-09-2004 06:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 AM.

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