creating a safe samba config
I have the dir
Code:
$ ls -ld /shared/ 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] Code:
[data] 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 |
Have you restarted the smbd, and nmbd? You'll have to do that after any changes you make to the smb.conf for them to take effect.
good luck. |
1) How do you restart it? I wrote a script that the howto toldhow to start samab, but not how to end/restart it. I haven't started it yet because of not knowing how to stop it besides rebooting, and
2) I'm confused by the output of testparm. Why Does the testparm not show read only? This worries me that guest users will be able to edit my files. |
1) smbd stop
nmbd stop smbd start nmbd start 2) I think you have to restart the daemons for the changes to take effect. good luck. |
All times are GMT -5. The time now is 05:22 PM. |