Hi, I am really trying to get the easiest samba setup working without any luck. I just want to create a share anyone can access without username/password. [root@redhat-test ~]# testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[guest]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = ACNEU realm = EU.ACNCORP.COM server string = %h interfaces = lo, eth0 security = SHARE password server = 10.130.12.100 passdb backend = tdbsam local master = No wins server = 10.130.12.120 idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [guest] comment = Shared Folder for guests path = /home/Guest/share read only = No guest ok = Yes My shared folder is there [root@redhat-test ~]# ls -ail /home/Guest/ 6520842 drwxrwxrwx 2 nobody root 4096 Jul 25 16:23 share But i get this in the logs when i try to access it: [2008/07/25 17:23:43, 0] smbd/service.c:make_connection_snum(1003) '/home/Guest/share' does not exist or permission denied when connecting to [guest] Error was Permission denied iptables is off, selinux is off. [root@redhat-test ~]# smbclient -L localhost Password: Domain=[ACME] OS=[Unix] Server=[Samba 3.0.28-1.el5_2.1] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (redhat-test) guest Disk Shared Folder for guests Domain=[ACME] OS=[Unix] Server=[Samba 3.0.28-1.el5_2.1] Server Comment --------- ------- AMS-DC02 ACME Domain controller AMS-TS03 REDHAT-TEST redhat-test Workgroup Master --------- ------- ACME AMS-DC02 What am i doing wrong? Thank you.
On Fri, Jul 25, 2008 at 11:28 AM, Thomas Vito <shoktai@gmail.com> wrote:> I am really trying to get the easiest samba setup working without any luck. > I just want to create a share anyone can access without username/password. >The easiest/simplest smb.conf i know how to make: workgroup = MYGROUP server string = Samba Server security = share #============================ Share Definitions ============================= [stuff] path = /stuff read only = No guest ok = yes Leave everything else as is. It works from version 3.0.20 to 3.0.28 (i haven't upgraded to 3.0.30 yet) Linux and Win XP Pro clients can connect with no authentication of any kind. XP Home should work too since this setup does not create a domain controller. Hope it works for you. Mike
On Fri, Jul 25, 2008 at 11:47 AM, Mike <1100100@gmail.com> wrote:> > > #============================ Share Definitions > =============================> > [stuff] > path = /stuff > read only = No > guest ok = yes > > >I forgot to mention, you need to "su to root" and "~$mkdir /stuff" so it exists for samba to point to.
Check, if user "nobody" has at least read access to /home/Guest. If not, then it must be the reason, why you get an access denied error message (you cannot access a child directory, if you don't have at least read access to the parent directory). Chown the directory /home/Guest as "nobody:root" or give read permission to other users (chmod o+r /home/Guest). Regards Gergely Kiss
Well i did my smb.conf as simple as you showned. [root@amsdev-dv09 ~]# testparm Load smb config files from /etc/samba/smb.conf Processing section "[share]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = ACME server string = %h security = SHARE [share] path = /home/acn/share read only = No guest ok = Yes The top root folder has been created with the following rights (applied to subfodlers too): drwxrwxrwx 4 nobody root And i still get errors trying to connect: [2008/07/28 09:29:55, 0] lib/util_sock.c:send_smb(761) Error writing 4 bytes to client. -1. (Connection reset by peer) [2008/07/28 09:30:05, 0] lib/util_sock.c:write_data(562) write_data: write failure in writing to client 10.130.12.54. Error Connection reset by peer [2008/07/28 09:30:05, 0] lib/util_sock.c:send_smb(761) Error writing 4 bytes to client. -1. (Connection reset by peer) [2008/07/28 09:30:06, 0] auth/auth_util.c:create_builtin_administrators(792) create_builtin_administrators: Failed to create Administrators [2008/07/28 09:30:06, 0] auth/auth_util.c:create_builtin_users(758) create_builtin_users: Failed to create Users>From Windows the error is: share is not accessible. You might not havepermission to use this network resource. The network path was not found.
> >From Windows the error is: share is not accessible. You might not have > permission to use this network resource. The network path was not found. > --Have you tried from windows connecting by ipaddress instead of any other method. Type \\ipaddress in explorer and see if that connects. John
No improvement with the IP address. Error states in smb.log getpeername failed. Error was Transport endpoint is not connected. 2008/7/28 John Drescher <drescherjm@gmail.com>> > >From Windows the error is: share is not accessible. You might not have > > permission to use this network resource. The network path was not found. > > -- > Have you tried from windows connecting by ipaddress instead of any > other method. Type \\ipaddress in explorer and see if that connects. > > John >