Can't setup Samba - Suse 9.1
HI,
I am running a small home network consisting of a Windows xp desktop and an XP laptop. I have recently installed Suse 9.1 onto a second desktop. I wish to use this second machine as both a web server and a file server for for the network. I have sucessfully installed and tested Apache. I have been fighting for a couple of days to get samba up and running. I have gotten nowhere. My windows xp machine can find the linux box (cleverly named "Linux") but when I double click on the icon I get an error suggesting a see the network administrator, which unfortunately is me. If anyone can offer me any help I would appreciate it. Thanks |
What is in your smb.conf file?
|
Here is the smb.conf file. It is on a wireless network and I edited the the file so that it used wlan0 but that may not be the correct way to do that.
# smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE # Date: 2004-04-06 [global] workgroup = Hoagland_net interfaces = 192.168.1.105 wlan0 bind interfaces only = true printing = cups printcap name = cups printer admin = @ntadmin, root, administrator map to guest = Bad User security = share encrypt passwords = yes server string = add machine script = domain master = false domain logons = no local master = no preferred master = auto ldap suffix = dc=example,dc=com passdb backend = smbpasswd [homes] comment = Home Directories valid users = %S browseable = no read only = No guest ok = no printable = no [users] comment = All users path = /home writeable = Yes inherit permissions = Yes veto files = /aquota.user/groups/shares/ browseable = yes guest ok = no printable = no [groups] comment = All groups path = /home/groups writeable = Yes inherit permissions = Yes browseable = yes guest ok = no printable = no [pdf] comment = PDF creator path = /var/tmp printable = yes print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z create mask = 0600 browseable = yes guest ok = no [printers] comment = All Printers path = /var/tmp printable = yes create mask = 0600 browseable = no guest ok = no [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 browseable = yes guest ok = no printable = no Thanks for the help |
Where are you getting your IP addresses from? You didn't specify how the wireless link is setup; do you have a wireless router? Does it have DHCP? Are you getting your addresses via DHCP?
Does this smb.conf pass testparm? Looks like some syntax errors to me, particularly in ldap suffix= line and in passdb backend lines. Why do you have those parameters set, anyway? Try commenting them out and insert the line Code:
passwd program=/usr/bin/smbpasswd %u The workgroup is correct, isn't it? Just asking, but a silly error that could really hose you up. Why do you have "interfaces" set in smb.conf? I don't think you want to do that, since it will override the default interfaces list and that shouldn't be necessary. Try commenting that statement out. You shouldn't need "bind interfaces only" try commenting it out. For security, you definitely should set security=user. Put in a name for server string. Probably that would be "Linux" You probably need a password server; try this Code:
passwd server=%m Code:
netbios name=Linux I find the syntax of your shares section to be quite puzzling. Why have you identified a share called users that has /home as its path, and why have you established a share called groups that has /home/groups as its path? Logically, the subdirectory "group" under "home" should belong to a user named "group". This architecture leads me to believe that you don't have a good grasp of the way Linux is supposed to be organized. Also, your homes section won't work right; it needs to be writeable and available. FYI, here is much of my smb.conf, which works well - although the samba server is on a wired system. Code:
[global] |
Thanks a lot for your help. I was able to get things up and working. I pretty sure that the problem stemmed from a firewall issue. I turned it off and got samba to work instantly.
|
All times are GMT -5. The time now is 09:05 AM. |