I have the dir
Code:
$ ls -ld /shared/
drwxr-xr-x 2 jake users 112 2004-11-21 13:36 /shared/
That I want "jake" to be able to write to.
On my lan, which all have ip's of 192.168.1.xxx I want to allow read only access to this directory.
So I need to 1) allow only lan IP's to connect to my computer, and 2) allow read only access to my directory to win computers on the network.
I'm confused by the output of "testparm"
Code:
[global]
workgroup = HOME
server string = Jake Linux Server
passdb backend = tdbsam
log file = /usr/local/samba/var/log.%m
max log size = 50
dns proxy = No
hosts allow = 192.168.1.
[data]
comment = Data
path = /shared
guest ok = Yes
But when I check my config file, I get
Code:
[data]
comment = Data
path = /shared
read only = yes
#syn for guest ok
public = yes
1) I believe I have this solved with my hosts allow line, correct me if I am wrong.
2) Why Does the testparm not show read only? This worries me that guest users will be able to edit my files.
After I get this fixed, I want to later add a subdirectory that someone on my LAN can copy a file to, so I can access it. (ex: /shared/public ) that has read/write access either with a password or guest, it shouldn't matter since I only allow people on my LAN to write to my computer.
Any advice would be greatly appreciated.
thanks
--monkey