PDA

View Full Version : can someone post his smb.conf file?


ariskk
2007-10-28, 01:00 PM CDT
Hi, I find it impossible to setup samba to work correctly for me. I just want to share a couple of folders to all windows machines and users. I don't want security, I just want for example /shared folder to be visible by any windows machine and users.

Thanks, Kostas

hermouche
2007-10-28, 01:20 PM CDT
Hy,

This is what you asked:

[root@ibm samba]# cat smb.conf
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/10/24 21:34:16

[global]
workgroup = MSHOME
server string = Samba Server Version %v
encrypt passwords = No
log file = /var/log/samba/log.%m
max log size = 50
wins support = Yes
valid users = red
admin users = red
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[redtest]
comment = Access redtest
path = /redtest
guest ok = Yes
[root@ibm samba]#

red

ariskk
2007-10-28, 03:19 PM CDT
thanks Hermouche. Unfortunatelly, again, samba is not working ! I copied your config, pasted into my smb.conf and restarted samba. I can see the samba server on my workgroup, but can't open it. Also tried opening straight away the shared folder.

only changes I did is:

workgroup = KALYPSO
...
valid users = root,aris,ariskk

aris is my windows user name. ariskk is my linux user name. I've also tried all combinations of these users.

also tried this:
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /shared
read only = no
public = yes

didn't work either. Dunno what to do. I've tried also varous combinations from the examples.

Brian1
2007-10-28, 03:25 PM CDT
have you added users to samba and set their passwords?

Brian

Seve
2007-10-28, 03:38 PM CDT
Hello:
Have you run
testparm /etc/samba/smb.conf

Seve

ariskk
2007-10-28, 04:26 PM CDT
Brian1, I want **any** window user to access the shared folders. But I did try setting up user permissions without any luck. I've posted an other thread regarding this: http://forum.fedoraforum.org/showthread.php?p=885107#post885107 . I was just able to copy files but not read or modify them!!!

Seve, here is the testparm output:

[root@laptop samba]# testparm smb.conf
Load smb config files from smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[shared]"
Processing section "[tmp1]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

I really can't get what's wrong with samba. I tried many sample configs as described in the samba.conf.

c.teneyck
2007-10-28, 11:48 PM CDT
chmod +777 /whatever the directory you have shared

c.teneyck
2007-10-28, 11:50 PM CDT
also check your firewall settings make sure you have enabled samba in iptables and selinux

ariskk
2007-11-01, 04:47 PM CDT
hi, tried chmod 777 /shared , did n't work.

I'm sure it's not a firewall problem, since I can copy files to the shared folder but after copying them I can't open those files!

c.teneyck
2007-11-04, 09:12 PM CST
ok post your smb.conf file so i can take a look see....

ariskk
2007-11-05, 03:14 AM CST
ok post your smb.conf file so i can take a look see....

Hi, you were right, it was selinux! now all work ok!!! Thanks

c.teneyck
2007-11-06, 12:29 AM CST
No Problem. I don't use selinux and have it disabled. Good job!