Hi,
I want to setup a simple SAMBA file server, in its most simple configuration first, and then fine-tune that gradually. I've never worked with SAMBA before, so I based myself on Carla Schroder's "Linux Cookbook", chapter XX: SAMBA.
Here's what I did, following the step-by-step instructions and reading the explanations as to what-does-what:
# mkdir -m 777 /shares
Rename /etc/samba/smb.conf to something else (old.sambaconfig) and then edit a new smb.conf from scratch, which looks like this:
--8<-------------------- [global] workgroup = workgroup netbios name = windbag server string = Anonymous local file server security = share browseable = yes hosts allow = 192.168.1.
[share1] path = /shares comment = Test files read only = No guest ok = Yes --8<---------------------
I tested this configuration with testparm, and it looked OK.
Next I restarted SAMBA (service smb restart) and checked the status (service smb status).
After this I tried (on the same machine) to connect to my file server:
$ smbclient -L windbag
But there I got a "Failed to connect".
Now what?
Niki Kovacs
you have to create a samba user account that matches the user account of the client machine..:)
Niki Kovacs wrote:
Hi,
I want to setup a simple SAMBA file server, in its most simple configuration first, and then fine-tune that gradually. I've never worked with SAMBA before, so I based myself on Carla Schroder's "Linux Cookbook", chapter XX: SAMBA.
Here's what I did, following the step-by-step instructions and reading the explanations as to what-does-what:
# mkdir -m 777 /shares
Rename /etc/samba/smb.conf to something else (old.sambaconfig) and then edit a new smb.conf from scratch, which looks like this:
--8<-------------------- [global] workgroup = workgroup netbios name = windbag server string = Anonymous local file server security = share browseable = yes hosts allow = 192.168.1.
[share1] path = /shares comment = Test files read only = No guest ok = Yes --8<---------------------
I tested this configuration with testparm, and it looked OK.
Next I restarted SAMBA (service smb restart) and checked the status (service smb status).
After this I tried (on the same machine) to connect to my file server:
$ smbclient -L windbag
But there I got a "Failed to connect".
Now what?
Niki Kovacs
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Selon William Warren hescominsoon@emmanuelcomputerconsulting.com:
you have to create a samba user account that matches the user account of the client machine..:)
Thanks! I just figured out that the documentation on the SAMBA website is very well written, so I better take this as a place to start, rather than Carla Schroder's book.
Cheers,
Niki
On Mon, 2006-05-15 at 18:10 +0200, Niki Kovacs wrote:
Thanks! I just figured out that the documentation on the SAMBA website is very well written, so I better take this as a place to start, rather than Carla Schroder's book.
Good :). I guess that you know that 777 permissions are bad? There are some good Samba books in the Perens Open Source Series. These books can be downloaded freely from:
http://www.phptr.com/promotions/promotion.asp?promo=1484&redir=1&rl=...
Of course, if you like the books, buy them to put food on the table of the authors.
-- Daniel
There are excellent docs in /usr/share/doc/samba-3.0.10
[mike@box ~]$ cd /usr/share/doc/samba-3.0.10/
[mike@box samba-3.0.10]$ ls autofs misc Samba-Developers-Guide.pdf COPYING printer-accounting Samba-Guide.pdf history printing Samba-HOWTO-Collection.pdf htmldocs README THANKS LDAP registry WHATSNEW.txt libsmbclient REVISION Manifest Roadmap
__________________________________________________ Improve the mailing list by performing a simple search before posting and reading the FAQ/etiquette. Protect the integrity of your installation with the yum plugins.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com