LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there something better than Samba for Ubuntu 12.04 lts to Win XP home network (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-something-better-than-samba-for-ubuntu-12-04-lts-to-win-xp-home-network-4175490080/)

WA3SCM 01-03-2014 11:43 PM

Is there something better than Samba for Ubuntu 12.04 lts to Win XP home network
 
Dell 610, Ubuntu 12.04 lts, cabled to router
Acer Aspire One, Windows XP Home Service Pack 3, wireless to router
Dell Dimension 2350, Windows XP Home SP3, cabled to router
Linksys WD54G wireless router

XP network called LINUX works between both XP machines with several directories shared and printers shared working fine.

After following Ubuntu tutorials for weeks finally achieved both wireless and cable connection to the router. Verified by Linksys local network table showing the Ubuntu machine connection. (Thanks to spambait9876 recommendation)

Weeks into Samba with removals and reinstalls Ubuntu does not see the LINUX network nor do the XP machines see Ubuntu. Am I expecting too much that they wil "just connect" like the XP machines did?

True I have learned a lot along the way,,,,but is there something out there that makes networking easier than Samba?

Thanks

ericson007 01-04-2014 12:23 AM

Well it should just work. Double check you correctly setup netbios and workgroup names. Check you are running and have correctly configured samba with a wins server with udp port 137, 138 and tcp ports 139 and 445 open on the samba server.

From ubuntu make sure you have smbclient installed and it is integrated with the window manager.

On my distro it does not get installed by default. Maybe ubuntu is the same.

You can always use something like freenas, but seing it works with xp, i think the issue is likely missing libraries in ubuntu

WA3SCM 01-04-2014 12:01 PM

Thanks for the sanity check, you give me hope.

I have been using Ubuntu "quick setup" tutorials which do not get into ports. However I will do what you suggest as I figure it out.

I found a Samba manual (http://www.samba.org/samba/docs/man/...ion/index.html) and am moving thru it performing all the linux and windows terminal commands mentioned. This is where I should have started.

WA3SCM 01-04-2014 12:41 PM

Yes the Netbios names and group names are correct. Verified by nbtstat -a (machine names)
from an XP machine which also sees the Ubuntu machine.

dolphin_oracle 01-04-2014 02:39 PM

On my system at home, I have one windows box acting as a server. In ubuntu 12.04, I had to use the "connect to server" feature of nautilus to connect the server box directly by ip address. Although the server was on, it never appears in the "browse network" feature, even though other systems without shares actually do.

haertig 01-04-2014 03:15 PM

Quote:

Originally Posted by WA3SCM (Post 5091651)
Weeks into Samba with removals and reinstalls Ubuntu does not see the LINUX network nor do the XP machines see Ubuntu. Am I expecting too much that they wil "just connect" like the XP machines did?

It should all just work. I haven't set up Samba for a while (my existing setup "just works" and I've had no need to change it). But I do remember it took me about 10 minutes to set it up initially - research included. But then, I'm an old guy with decades of Linux/Unix experience. I assume you might be newer to Linux.

If anything, you are one persistant dude. I would have asked for help here on LQ.org long before "weeks into Samba..."

WA3SCM 01-04-2014 04:56 PM

Am I being stupid sticking with Ubuntu 12.04 lts? Most of the stuff I find related to 12.04 is years old and when I try to do it there is something not quite right. Should I move to the latest release 13...?

Over in the Mint forum I see a recent post saying not to use the GADMIN-SAMBA which I have been. So I just learned how to remove/purge all things samba. I will start from scratch.

jamison20000e 01-04-2014 05:35 PM

Hi. I've had this problem on occasion as well although have not used or connected to microcoughed in so long I have no help here, sorry. But, depending on what you want the connection to work with there's a decent UPnP AV media server named Rygel or SSH, etc? Best wishes and have fun. :)

haertig 01-04-2014 07:21 PM

Quote:

Originally Posted by WA3SCM (Post 5091979)
Am I being stupid sticking with Ubuntu 12.04 lts?

Not in my opinion. I am using Mint 13, which is based on Ubuntu 12.04. Specifically because it IS an LTS release.

ericson007 01-04-2014 11:05 PM

Nautilus, always tries to use a path of "network:///" not sure how this translate to searching for networks shares but changing it to "smb://servername" should do the trick. Then later just book mark that.

Using gadmin is something i don't have experience with, but you can always just check theactual samba.conf to check things look more or less ok.

WA3SCM 01-05-2014 12:52 AM

Thank You ericson9876,

I tried to clean out all of samba and start over. Loaded samba and tried to manually configure smb.conf with no luck, just too confusing, so reloaded the gadmin-samba. Somehow it found the old smb.conf file I thought I had removed.

I cleared that out and reconfigured samba using gadmin-samba as best as I know how.

Using network tools I can choose the active network services on the ubuntu machine and the check netstat button shows 6 each tcp ports listening at 127.0.0.1 (139, 5939, 53, 631, 445) but there is only one udp port listening #53. The ports you referenced udp 137, 138 have a blank status ie not listening and a 0.0.0.0 ip source.

I have looked all over the samba doc's and see no way to configure samba with a wins server. Where should I be looking?

I went to the xp machine and added UPnP service to the Windows Network services. I was looking for wins. That action caused my router to appear on the task bar.

ericson007 01-05-2014 09:55 AM

UDP 53 is used for DNS. You don't want that blocked.

To enable wins you will have to add the following to the samba.conf

Code:


[global]
        wins support = yes

global should already exist so just add the wins support directive.

Before doing that though, double check to make sure that your nmbd server is running. nmbd uses the udp ports. Strictly you don't need that running, but without it or adding a DNS host entry, the only way to find the server would be by using nmbd.

That is all strictly speaking though because mostly tcp 445 is used to connect. Anyway, the ports should be checked open on the SAMBA host, not the client and please double check that 127.0.0.1 assigned to samba ports. That will cause issues since only the local host will have access.

In your samba.conf look for "bind interfaces only = yes" in the global section.
If that is there it should look something like this

Code:

bind interfaces only = yes
interfaces = lo eth0

if it has only lo, you cannot connect from other computers.

suicidaleggroll 01-05-2014 10:53 AM

SAMBA is used to share the Linux box with the Windows boxes. If all you want to do is mount the Windows shares on Linux, you can forget all of the SAMBA stuff and just mount the share with CIFS.

WA3SCM 01-05-2014 11:47 AM

suicidaleggroll.. Sorry I did not state my goal: To share printers and files among 3 xp machines and 2 linux machines with various printers attached to and moved among the 5 machines, eventually move to all linux.

ericson007... Below is my smb.conf file so you don't have to guess. I just changed dns proxy from no to yes but have not tried a reboot yet.
Don't know how but will find out if the nmbd is running.
I think 127.0.0.1 is assigned to samba ports as per 6th line
I think hosts allow might be messed up as per 5th line
bind interfaces only is yes
I dont see an interfaces = lo eth0 which in my case should be eth1



[global]
netbios name = WA3SCM-HOME
server string = Samba file and print server
workgroup = LINUX
security = user
hosts allow = 127. 192.168.0.
interfaces = 127.0.0.1/8 192.168.0.0/24
bind interfaces only = yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
printcap name = cups
load printers = yes
cups options = raw
printing = cups
guest account = smbguest
log file = /var/log/samba/samba.log
max log size = 1000
null passwords = no
username level = 6
password level = 6
encrypt passwords = yes
unix password sync = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
domain master = no
preferred master = no
domain logons = no
os level = 33
logon drive = m:
logon home = \\%L\homes\%u
logon path = \\%L\profiles\%u
logon script = %G.bat
time server = no
name resolve order = wins lmhosts bcast
wins support = yes
wins proxy = yes
dns proxy = yes
preserve case = yes
short preserve case = yes
client use spnego = no
client signing = no
client schannel = no
server signing = no
server schannel = no
nt pipe support = yes
nt status support = yes
allow trusted domains = no
obey pam restrictions = yes
enable spoolss = yes
client plaintext auth = no
disable netbios = no
follow symlinks = no
update encrypted = yes
pam password change = no
passwd chat timeout = 120
hostname lookups = no
username map = /etc/samba/smbusers
passdb backend = tdbsam
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
add group script = /usr/sbin/groupadd '%g'
delete user script = /usr/sbin/userdel '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
machine password timeout = 120
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /dev/null
winbind use default domain = yes
winbind separator = @
winbind cache time = 360
winbind trusted domains only = yes
winbind nested groups = no
winbind nss info = no
winbind refresh tickets = no
winbind offline logon = no

[homes]
comment = Home Directories
path = /home
valid users = %U
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
public = no
printable = no
locking = no
strict locking = no

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
read only = no
available = yes
browseable = yes
writable = no
guest ok = no
public = no
printable = no
locking = no
strict locking = no

[profiles]
comment = User Profiles
path = /var/lib/samba/profiles
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
public = no
printable = no
create mode = 0600
directory mask = 0700
locking = no
strict locking = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
writable = no
guest ok = no
public = no
printable = yes
locking = no
strict locking = no

[pdf-documents]
path = /var/lib/samba/pdf-documents
comment = Converted PDF Documents
admin users = %U
available = yes
browseable = yes
writeable = yes
guest ok = yes
locking = no
strict locking = no

[pdf-printer]
path = /tmp
comment = PDF Printer Service
printable = yes
guest ok = yes
use client driver = yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command =
lprm command =

John VV 01-05-2014 12:43 PM

you also might want to install win7 or 8 or something else
XP dies in a month

Microsoft is ending all support next month


All times are GMT -5. The time now is 09:33 AM.