LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-15-2015, 07:25 AM   #1
deepaksaharan
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 1.1.1.111) and r/w permission to ip (1.1.1.112) on same share.
;[sdfs_vol1]
; path = /mnt/share1
; public = yes
; writable = yes
; read only = no
; force user = nobody
; hosts allow = 1.1.1.112

;[sdfs_vol1]
; path = /mnt/share1
; public = yes
; writable = no
; read only = yes
; force user = nobody
; hosts allow = 1.1.1.111
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, 11:07 AM   #2
dijetlo
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".
 
  


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

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

All times are GMT -5. The time now is 08:47 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