LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2004, 05:55 AM   #1
Irf
Member
 
Registered: May 2004
Posts: 30

Rep: Reputation: 15
Unhappy Newbie having problems with Suse 9 and Samba


Hello all....

This is my first post here, and I'm hoping I can get help with my samba problem.

What I want to do is simply set up the Suse box to act as a data storage space for the other PCs on the network. The network is a Windows one, with one machine running ME and the others XP. The Windows network operates fine as it is, with DHCP and a dsl modem/router.

Installing Suse was an absolute breeze - fantastic. The integrated network and video interfaces on the compact board have were detected and the network access set up correctly from the outset (i.e. for web access).

I have struggled from there on however, having tried a mix of command line setup and also YaST. Someone elsewhere also recommended I try Webmin, which I downloaded but then possibly installed incorrectly. (I need to try that again).

Can anyone give me some basic and simple steps to follow? I have Samba 2.2.8 I think.

Many thanks for all and any help! I'd really like to get this working as a Linux stronghold in my network!

Irf.
 
Old 05-06-2004, 06:47 AM   #2
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
try this page

http://wiki.linuxquestions.org/wiki/Samba_Server
 
Old 05-06-2004, 07:14 AM   #3
Irf
Member
 
Registered: May 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks - I have had a look and it seems to indicate how best to make sure Samba is installed. I'm pretty sure it is installed, because I have checked using a command line combination I can't remember but was given elsewhere. This responded suggesting I was running 2.2.8.

I am also following the how-to and the other docs your link points to. Would it be useful if I were to get the latest version?

Is there anything different I need to in Windows?

Cheers,

Irf.
 
Old 05-06-2004, 02:37 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
Samba server was the hardest piece of software I ever tried.
You know what I did? I gave up, and now I use ssh. Lots easier to install and run, and I can do all file transfer trough it. And it's more secure.
 
Old 05-06-2004, 04:09 PM   #5
Irf
Member
 
Registered: May 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Well I might give it a bit longer..... but what's ssh anyway?

Irf.
 
Old 05-07-2004, 05:02 AM   #6
Irf
Member
 
Registered: May 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Could someone please tell me what ssh is?

Thanks,

Irf.
 
Old 05-07-2004, 06:25 AM   #7
.oOZe.
LQ Newbie
 
Registered: May 2004
Location: Vancouver, BC
Distribution: FC14
Posts: 16

Rep: Reputation: 2
this may help you:

http://nic-ks.greatplains.net/samba/...ollection.html

and

http://ca.samba.org/samba/docs/man/howto/

BTW,
ssh won't work for what you want to do ...if i understand correctly that you want to access shared drives/files/directories on a linux boxy transparently from your windows machines.

ssh is a secure shell, kind of like telnet, but much better.
google or http://openssh.org can tell you more about that.

Last edited by .oOZe.; 05-07-2004 at 06:33 AM.
 
Old 05-07-2004, 10:45 AM   #8
Irf
Member
 
Registered: May 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Hi .oOZe.

You're right - it looks like ssh is not the correct tool for what I want to do.

I have been looking at the official samba howto, and need to do some more reading into it. I will also look at the other link you've posted because it looks promising.

One problem I'm struggling with at the moment is that I wonder if people trying to advise me have picked up the fact that I'm running a peer-to-peer network, not one with a regular server and domain system. Would that make a difference? I ask this because the first link you sent mentions 'anyone with a logon configured in the server' and I don't have a server.

Could this be the problem? Will samba work in the way I want it to, without a domain?

You can probably guess that I'm a rookie with networks as well!

Thanks,

Irf.
 
Old 05-07-2004, 05:44 PM   #9
.oOZe.
LQ Newbie
 
Registered: May 2004
Location: Vancouver, BC
Distribution: FC14
Posts: 16

Rep: Reputation: 2
Hi Irf,

I am running samba on Suse9 connected to the local network with no domain controller. I have samba set to make the Suse box the master browser.

the windows box IP is 192.168.0.2 netmask 255.255.0.0
the suse box IP is 192.168.1.2 netmask 255.255.255.0
these are connected through a linux gateway/firewall
with 3 ethernet cards which have the addresses 192.168.0.1 (to Windows box) and 192.168.1.1 (to Suse box)
plus my connection to my cable modem, so its a bit different than your setup.

Make certain that your windows firewall, or any machine connected directly to the outside world does not allow incoming or outgoing NETBIOS connections on any interfaces other than those on the internal network...you probably know this but its worth mentioning as it is the equivalent of an open barn door with a free beer sign, security-wise.

Here's the basic setup similar to what I am using:
Code:
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = MYWORKGROUP
   netbios name = susebox

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
   hosts allow = 192.168.1.2 192.168.0.2 127.0.0.1
# notice that I don't allow my gateway/firewall to access any shares
# just an extra precaution

# This must be a valid user on the linux box as well as a valid
# user generated by the smbadduser script 
   valid users = oOZe

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   socket address = 192.168.1.2

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
   interfaces = eth0
   bind interfaces only = yes

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
   local master = yes

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
   os level = 99

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
   domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
   preferred master = yes

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
   wins support = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy = no

# a typical share

[download]
   comment = downloads
   path = /mnt/store/download
   valid users = oOZe
#   public = yes
   writeable = yes
   printable = no
   create mask = 0664
   directory mask = 755
   guest ok = no
   follow symlinks = yes
   browseable = yes
This is not a complete smb.conf, there are other settings that may need to be tweaked, but have no bearing on the domain/workgroup question.

On my XP box I do not have File and Printer Sharing enabled as I have no need to share whats on the XP box with any other system. What this prevents is allowing me to browse to the samba server directly through the network neighbourhood. I can see MYWORKGROUP, but it is inaccessible.

I access the samba shares by mapping network drives and connecting as a different user (in this case oOZe and checking the 'Reconnect at Logon" box to avoid retyping the password etc) and also using the "Search for Computers..." by right-clicking the My Network Places Icon to find "susebox", which lists all the enabled shares. I'm not sure if these methods will work properly with WinME or not. You may need to search for computers by IP address, although adding your NETBIOS names to the hosts file on XP and ME should (but doesn't always seem to) work.

I used to have the susebox IP listed as a WINS server in my Local Connection Properties/Internet Protocol(TCP), but disabling it has not noticably affected access to samba shares.

Once you have things set up there is a utility that is installed with samba called 'testparm' which will spit out a lot of info about your configuration.

If your machines are directly connected together or are on the same subnet (say the xp box has IP 192.168.0.2 and the Linux box has IP 192.168.0.3, both with the subnet mask 255.255.255.0) then they should have no trouble communicating. If this is not the case you will need to use the 'route' command to modify the routing tables so that the machines can speak to each other (ping to test).
In my case I had to do this on the XP box:
Code:
route -p ADD 192.168.1.0   MASK 255.255.255.0  192.168.0.1

                ^destination            ^mask              ^gateway
The -p is for Persistent, so that it remains between reboots.

and on the Suse box add:

192.168.0.0 192.168.1.1 255.255.0.0 eth0

to
/etc/sysconfig/network/routes

If you are using DHCP for IP address assignment on your internal network, you may want to change those to static IP's as it is less complicated that way (to me anyway).

Hopefully I covered everything you need to get it running.

Good luck,
.oOZe.
 
Old 05-09-2004, 01:42 PM   #10
Irf
Member
 
Registered: May 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Wow!

That's a great help mate..... thanks. I've now almost got it as I want it:

- I can access my shares from my ME box.

- Two users can access their shares from an XP box, but the other two cannot. The two users who cannot type their names and passwords in on the XP box, but after pressing OK the dialogue box refreshes, but with the computer name / user name and password, like this:

User name: SIYANA/layla

Password: ******

No matter what I do, I cannot get past this box other than to press the Cancel button.

Why would this be? I think the settings for all users on the linux box are identical....

Any ideas?

Many thanks.

Irf.

Last edited by Irf; 05-09-2004 at 02:04 PM.
 
Old 05-11-2004, 01:43 AM   #11
Irf
Member
 
Registered: May 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Anyone know why I might be getting the above behaviour when I try to log in two particular users on the XP box? I have tried from different machines on the network, and got the same result. The dialogue box always refreshes, with compname/username in the user name box, and the password masked out.

Because I've tried it on other XP machines and got the same thing I'm guessing that the solution lies somewhere in the linux/samba set up.

Anyone have exerience/ideas?

Cheers,

Irf.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux newbie with problems installing SUSE 9.3 weston_skye SUSE / openSUSE 4 07-31-2005 09:37 AM
Newbie samba problems + Lan bandwidth K_smolka Linux - Newbie 9 05-19-2005 02:28 PM
Samba/ Windows network problems (Newbie question) cheese6590 Linux - Software 4 04-10-2005 11:17 PM
Newbie Samba problems, no swat... boardtc Mandriva 13 02-19-2004 10:06 AM
Newbie ans Suse problems - again! rogleale Linux - Software 4 07-01-2002 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration