Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Up SAMBA 1

Status
Not open for further replies.

Tezdread

Technical User
Oct 23, 2000
468
GB
I've been trying to get my SuSE system om my Windows domain so that I can share the drive. I've read through the tutorial on suse.com ( and it says

&quot;First the package samba from series n should be installed. By setting the variable <START_SMB> to the value yes in the file /etc/rc.config, the SMB services are started when the computer is booted.&quot;

The problem is when I opened the rc.config file with KEdit there was no variable <START_SMB> to set to yes?

This is what my rc.config file looks like

#
# /etc/rc.config
#
# Copyright (c) 1996-2002 SuSE Linux AG Nuernberg, Germany.
# All rights reserved.
#
# Author: Werner Fink <werner@suse.de>, 1996
# Burchard Steinbild <feedback@suse.de>, 1996
#
# Configuration database for shell scripts in /etc/init.d, /sbin/SuSEconfig
# and /etc/cron.daily/aaa_base*
#
# Please edit this file and execute /sbin/SuSEconfig to configure everything.
#



#
# Attention! This variable PATH is NOT setting the PATH for user or root
# shells. It is only used internally for /etc/init.d/*, SuSEconfig and
# cron.daily. Please do NOT change PATH here.
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin

##
## Formatting the boot script messages, see /etc/rc.status.
## Source /etc/rc.status if rc_done isn't defined
##
test &quot;$rc_done&quot;= = = -a -e /etc/rc.status && . /etc/rc.status

I tried adding <START_SMB> at the end but this doesn't seem to have made a difference.

The other info says

&quot;The main configuration file of Samba is /etc/smb.conf.&quot; but this file doesn't exist?

If anyone knows of a better tutorial they can point me to or can advise, it would be much appriciated. Tezdread
&quot;With every solution comes a new problem&quot;
 
Is Samba installed on your system?

I think that Suse uses RPMS. Try this...

rpm -qa | grep samba



ChrisP
 
By the looks of it samba is running, I typed the above and it returned &quot;samba-client-2.2.3a-117 but the files that the documentation refer to are missing? Tezdread
&quot;With every solution comes a new problem&quot;
 
I thought I had started samba by typing /etc/init.d/rc smb start, but I'm not sure? I found the smb.conf file in /etc/samba/

This is what it looks like...

[global]
workgroup = mynetwork
os level = 2
security = user
encrypt passwords = Yes
guest account = Nobody
map to guest = Bad User
username map = /etc/samba/smbusers
log file = /var/log/samba/%m
log level = 1
security = server
password server = 192.168.1.10
printing = LPRNG
printcap name = /etc/printcap
load printers = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY

local master = No
interfaces = 192.168.1.1/255.255.255.0
wins support = No
wins server = 192.168.1.1
character set = ISO8859-15
client code page = 850

README.Win32-Viruses
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
domain logons = Yes
domain master = Yes
logon script = %U.bat
logon script = %m.bat

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
logon home = \\%L\profiles\%U
logon home = \\%L\%U\profile
logon path = \\%L\profiles\%U

[profiles]
comment = Network Profiles Service
path = /var/lib/samba/profiles
browseable = No

[homes]
comment = Home Directories
read only = No
create mask = 0640
directory mask = 0750
browseable = No

cdrom]
comment = Linux CD-ROM
path = /media/cdrom
locking = No

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

I can ping the suse box but still can't see it in the entire network and when i type //192.168.1.105 from the Run command on the Win2k boxit can't find it?

Tezdread
&quot;With every solution comes a new problem&quot;
 
To see if the service is running, try...

ps -ef | grep smb


I don't think that the RPM package you have installed is for running a Samba server. It may only be for connecting to Windows shares, but I'm not sure. Run the following command and see what is says about it...

rpm -qi samba-client


ChrisP
 
you're right Chris it is just the client software.

I assume it's running because I have a mounted drive from my win2k server but when I typed ps -ef | grep smb i got the following message

root 2723 2662 0 18:55 pts/2 00:00:00 grep smb

I think the way forward for me, will be to buy the professional edition so that I can join it to my domain and use it as a full on server but in the mean time would I be able to download a server version of samba? and if so how do I go about this?

I have been looking at the samba site and when i go to download I have various options? Tezdread
&quot;With every solution comes a new problem&quot;
 
Buy the professional edition of what? Suse? There is no need to. You can do whatever you want with any version of Linux. You can download Samba here --> and compile from source. If you don't want to do this, then you can go to and get an RPM package of Samba for your distro.


ChrisP
 
Yeah I was thinking about buying SuSE Pro, as I thought it would give me more options? Also if I buy a copy i will get a manual to go with it. Saying that I am finding help on the web and thanks to you things are coming together.

When you say &quot;compile from source&quot; what do you mean? I thought compiling was to do with writing programs.

I couldn't find a SuSE version of samba on rpmfind.net but I'm downloading the samba file from your other link and will have a look at that, notsure what I'm looking for though :) Tezdread
&quot;With every solution comes a new problem&quot;
 
Downloaded the samba-2.2.5.tar.gz file but what do I do with the files contained?

I also found, downloaded and installed Webmin (my first rpm installation :), which looks like it will help me out. Webmin is saying that samba isn't running. will the new samba program I downloaded be the server or just the client that needs to be configured into the server? When i open the tar.gz file it gives me a folder samba 2.5 and that contains loads of files. I will read through the Docs to see if I can figure it out, but may wwell need more help. Tezdread
&quot;With every solution comes a new problem&quot;
 
Compiling from source is installing files from source code. The link above to the .tar.gz file is samba source code.

After you extract the tarball with &quot;tar zxvf filename.tar.gz&quot;, you need to &quot;cd&quot; to the folder that you just extracted. You should always read any readme's or install files inside this folder. Generally, all you need to do is the following to install a program, but its often different...

./configure {options, if any}
make
make install

An example option you might use is &quot;./configure --prefix=/usr/local/samba&quot; to pick the installation directory.


ChrisP
 
I've open up the tar.gz file and cd to the folder, read through the install doc and it says the same as you but when I type ./configure in the directory that the doc refers to I get the following...

SuSE:/home/Downloads/samba-2.2.5/source # ./configure
loading cache ./config.cache
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
SuSE:/home/Downloads/samba-2.2.5/source #

Any suggestions? Tezdread
&quot;With every solution comes a new problem&quot;
 
You don't have the C programming language installed. I think all you need to install is the gcc package. I'm not a programmer and I've always installed all of the progamming languages during the OS installation.


ChrisP
 
any ideas how I find this or where to get it from? I never saw anything about it in the installation? Tezdread
&quot;With every solution comes a new problem&quot;
 
Maybe a little further but still having problems!

I've installed samba-2.2.5 by using ./configure I never used any other settings but everything was installed (although not sure where) I couldn't get gcc installed and I needed to upgrade the hardware so I did a full FTP install and this installed the C language stuff.

I tried running a rpm of samba 2.2.3a but this also ran into problems. It wasn't a suse rpm so I guess it was looking for files relating to a different distribution...

I'm stuck for what to do next?

When I type ps -ef | grep smb I get the following message

root 13802 1225 0 20:59 pts/1 00:00:00 grep smb

when I type rpm -qi samba-client I get a load of information about the client so it must be installed but only as a client?

Any suggestions? Tezdread
&quot;With every solution comes a new problem&quot;
 
updatadb
locate samba

Try the following commands to try and find out where Samba is installed.


ChrisP
 
It sounds like you're running into difficulties getting samba installed, which leads me to believe that other problems will occur when it is eventually running. Unless you install webmin or swat then you will have to modify the samba config manually which can be tricky. I would imagine that neither webmin or swat are enabled on your system so this could mean a difficult road ahead. My solution to this would be to install from scratch a more cuddly version of linux such as red hat or mandrake and make sure all the samba components and utilities are installed at the start. This will get samba up and running and make life much easier for you. I'm not saying that SUSE is no good, just that other distros are more user friendly and provide extra wizards and guides. I suppose that you could re-install SUSE , selecting the options I have mentioned , but I have little experience of that particular distro.
Hope this is of use to you. Good luck.

Will.
 
Thanks, haven't had the chance to run those commands yet, but will went I get home.

I have installed Webmin but this is also saying that Samba is either not installed or the locations of the files are wrong. Chris I guess your commands will point these out.

When I try and find smbd using the find box it searches for ages starting at root but then it disappears, Is this normal?

The more I get stuck the more I feel that I will need to purchase the Pro edition with the manuals and CD's.. Tezdread
&quot;With every solution comes a new problem&quot;
 
Chris, where do I enter those commands? I tried entering them in the shell but got a message saying that the command couldn't be found? Tezdread
&quot;With every solution comes a new problem&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top