LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot connect to samba Server on suse server 10 (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-connect-to-samba-server-on-suse-server-10-a-615381/)

B-Boy 01-22-2008 12:02 AM

cannot connect to samba Server on suse server 10
 
Hi guys ...I setup a Samba server but i can not connect to it from my WIN XP PC it does not appear on my network places as well this is the config:
# smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed.
# Date: 2006-06-16
[global]
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
passdb backend = smbpasswd
wins support = Yes
netbios name = (my choice)
ldap suffix =
workgroup =
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/ [groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
[(my choice)]
comment = (my choice)
inherit acls = Yes
path = /home/(my choice)
read only = No

jschiwal 01-22-2008 12:18 AM

You didn't state if you are using XP pro or XP home.
Code:

wins support = Yes
netbios name = (my choice)
ldap suffix =
workgroup =

Since you have "wins support = Yes", then enter your samba server's IP address as the WINS address in the windows TCP/IP configuration. If you use a NAT router, then you may be able to enter it there instead and DHCP will supply this info if the XP computer uses DHCP.

Enter in the name of your Workgroup. That is probably the reason that your Samba server doesn't show up.

With your configuration, there are 3 services which should be running: smbd, nmbd and winbind.
You can check if they are with:
sudo /usr/sbin/rcsmb status
sudo /usr/sbin/rcnmb status
sudo /usr/sbin/winbind status

Also, when posting a config file, please put it inside [ code ] ... [ /code ] blocks (without the spaces I added to print it literally).

B-Boy 01-22-2008 12:43 AM

Quote:

Originally Posted by jschiwal (Post 3030998)
You didn't state if you are using XP pro or XP home.
Code:

wins support = Yes
netbios name = (my choice)
ldap suffix =
workgroup =

Since you have "wins support = Yes", then enter your samba server's IP address as the WINS address in the windows TCP/IP configuration. If you use a NAT router, then you may be able to enter it there instead and DHCP will supply this info if the XP computer uses DHCP.

Enter in the name of your Workgroup. That is probably the reason that your Samba server doesn't show up.

With your configuration, there are 3 services which should be running: smbd, nmbd and winbind.
You can check if they are with:
sudo /usr/sbin/rcsmb status
sudo /usr/sbin/rcnmb status
sudo /usr/sbin/winbind status

Also, when posting a config file, please put it inside [ code ] ... [ /code ] blocks (without the spaces I added to print it literally).


all the services are running except winbind ...i also added a work group but the problem persists

jschiwal 01-22-2008 12:53 AM

See if you can ping the Samba server. If not check your network configuration.

Enter the IP address in the filebrowser:
\\192.168.1.100
for example. Do the shares show up.

Make sure you have the same username/password for the two machines and use the "smbpasswd" command to enter this info into samba's password file. This is needed for the [profile] and [homes] services to work.

Install the samba-doc package. It adds 3 books in /usr/share/doc/packages/samba/. Both "Samba 3 by Example" and "Samba 3 HOWTO & Reference Guide" will contain troubleshooting sections that might help.

Also, consider using Samba Swat to configure the samba server.
First edit /etc/xinet.d/swat:
Code:

cat /etc/xinetd.d/swat
# SWAT is the Samba Web Administration Tool.
service swat
{
        socket_type    =  stream
        protocol        =  tcp
        wait            =  no
        user            =  root
        server          =  /usr/sbin/swat
        only_from      =  127.0.0.1
        log_on_failure  += USERID
        disable        =  no
}

Change "disable=yes" to "disable=no". Then restart xinetd: "sudo killall -SIGHUP xinetd" or "sudo /usr/sbin/xinetd restart". Next point your web browser at "http://localhost:901"

B-Boy 01-22-2008 01:07 AM

Quote:

Originally Posted by jschiwal (Post 3031020)
See if you can ping the Samba server. If not check your network configuration.

Enter the IP address in the filebrowser:
\\192.168.1.100
for example. Do the shares show up.

Make sure you have the same username/password for the two machines and use the "smbpasswd" command to enter this info into samba's password file. This is needed for the [profile] and [homes] services to work.

Install the samba-doc package. It adds 3 books in /usr/share/doc/packages/samba/. Both "Samba 3 by Example" and "Samba 3 HOWTO & Reference Guide" will contain troubleshooting sections that might help.

Also, consider using Samba Swat to configure the samba server.
First edit /etc/xinet.d/swat:
Code:

cat /etc/xinetd.d/swat
# SWAT is the Samba Web Administration Tool.
service swat
{
        socket_type    =  stream
        protocol        =  tcp
        wait            =  no
        user            =  root
        server          =  /usr/sbin/swat
        only_from      =  127.0.0.1
        log_on_failure  += USERID
        disable        =  no
}

Change "disable=yes" to "disable=no". Then restart xinetd: "sudo killall -SIGHUP xinetd" or "sudo /usr/sbin/xinetd restart". Next point your web browser at "http://localhost:901"


i can ping the ip and its all ok i can even ssh into the server and if I enter the IP address in the filebrowser and i get an error Windows cannot find {ipaddress) i also tried the other stuff you posted and it still does not work

jschiwal 01-24-2008 09:27 AM

Look in the trouble shooting sections of the books I mentioned. I probably didn't think of something, that that would be my next step if I were having a problem. If you were having the problem when using Linux, I would recommend checking the /etc/nsswitch.con and /etc/host.conf files. The error message you posted doesn't make sense because Windows already has the IP address. Did you enter "\\<ip address>" or just "<ip address>". If you know the service name, enter "\\<ip address>\service".

Also make sure that the WINS field in the TCP/IP network configuration has the IP address of the server. Check that ports 137-139 are open on both computers. Also open 445. I think that is what WINS uses.

I am using a simpler global configuration. To tell the truth, I'll only boot up into XP to run updates periodically.
Code:

[global]
        workgroup = JESNET
        map to guest = Bad User
        printcap name = cups
        logon path = \\%L\profiles\.msprofile
        logon drive = P:
        logon home = \\%L\%U\.9xprofile
        wins support yes
        usershare allow guests = No
        printing = cups
        cups options = raw
        print command =
        lpq command = %p
        lprm command =
        include = /etc/samba/dhcp.conf

This is my desktop's smb.conf. I don't have the samba services running normally but I did start them up and verified that I could reach my desktop from my laptop. I should really remove the [home] service. The [profile] service will do the same thing without displaying the other users. My username and password is the same on both machines in windows and Linux and I use smbpasswd to update them in samba after a change.

You could try adding your server in your windows hosts and lmhosts files but you shouldn't have to.

jschiwal 01-24-2008 10:07 AM

Update: I booted my laptop into XP and verified that I could access my desktop from an XP Home computer. If you have an old share mapped for the server, go into tools -> unmap network drive and unmap it and then try again.


All times are GMT -5. The time now is 04:13 AM.