Discussion Locked

Samba installation with RH 6.0

0 helpful
21 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to install Samba on our RH 6.0 box, and I'm a novice on Linux. What's the best editor to use..? What would a properly configured Samba.conf file look like..? I need to integrate Win95/98, Win-NT, and Mac O/S 8.X into this Intranet. This box isused with IP Masquerade to keep the private network connected.

21 replies

by forhire

For Samba, there's a web-based application called SWAT that makes basic setup easy. You install it and point your browser to http://localhost:901.

Alternately, gtksamba is a good samba setup program for X.

by mihai

First, use the GnoRPM utility to add the Samba package to the system. The GnoRPM is a graphical tool that you can find under System in Gnome desktop panel. You insert the RedHat 6 CD, you type in a terminal screen the command mount /dev/cdrom. In GnoRPM change the search path to /mnt/cdrom and select the desired RPM package to install.
Then you have to configure the Samba service. You may take a look at some samba.conf files but it is easier to configure it with a web tool. So, use the SWAT tool that you can find at http://www.samba.org, but better use a tool which can be used to configure almost all services. The tool is called Webmin, you can find it at http://www.webmin.com/webmin/ with full documentation.The tool is very simply to install, it will take 5 minutes. It will run on the http server (Apache) on port 10000 by default. Then you start the browser and open the http://localhost:10000 address. The tool will let you to configure the server from the web browser, from any location you like. You can

by jlwallen

installing samba is a very simple matter of getting the rpm (www.freshmeat.net) installing it, configuring your smb.conf file (i'll try to attach a sample) and then configure your clients.

[global]
printcap name = /etc/printcap
printing = bsd
load printers = yes
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
workgroup = NAME_OF_WORKGROUP
encrypt passwords = no
password level = 0
preferred master = no
os level = 0
null passwords = no
dead time = 0
debug level = 0
domain master = no

[public]
comment = Public Stuff
path = PATH_YOU_WANT_TO_READ
public = yes
writable = yes
printable = no
write list = @staff

[tmp] comment = temporary files
path = /tmp
read only = yes

[printers]
comment = COMMENT_FOR_PRINTERS
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes

[ljet]
comment= COMMENT_FOR_PRINTE

by zbrain75

As far as what editor to use, it is a matter of prefference and what you find easiest to use. I use emacs, others like VI. I don't like VI because the mode toggling feature frustrates me.

You need to decide how you want to invoke Samba services. You will want to either invoke it as a daemon as a startup service or using the internet super daemon "inetd". If you are providing services to many users, you will be better off running it as a stand alone daemon. So after logging in at a terminal as "root", do either step 2a or step 2b below.

1. First of all, networking must be set up. See the NET-3 howto if necessary. These are available on the web at places like "metalab.unc.edu". If you can't find them, you can use a search engine line "mamma.com". Also there are gnu manuals at "www.gnu.org/manual/manual.html".

Type "less /etc/services" and be sure the following two lines are in the file:
netbios-ssn 139/tcp nbssn # NETBIOS session service
netbios-ssn 139/udp
Press "q" to exi

by bob

On my RH6.0 box, I used LinuxConf to setup SAMBA. Worked like a charm, created the appropriate public and user areas. You can access Linuxconf from the console by logging in as root and typing "linuxconf". If you are running GNOME or KDE, don't run linuxconf from an Xterm if your display is only set to 640x480, you won't be able to get to the control buttons on the bottom of the panel. Another way is to run linuxconf from the console, enable web access by going into Config->Networking->Misc->Linuxconf Network Access. Activate the changes, and you'll be able to point a web browser at the linux box and run Linuxconf thru that. For example, if your linux system is called "rh60", you'd type "http://rh60:98/" into your web browser's address, location, or URL line.

Hope this helps,

Bob Williams, RLW Consulting

by yknaidu

Samba is a well documented software. Try to go through SAMBA-HOWTO on your RedHat Box and it will be located in /usr/doc/HOWTO. By default, smb.conf will be installed in /etc directory, just go through this file with any editor or pager like 'less' or 'cat'. smb.conf is documented with nice comments for the ease of configuration, but it has many options which can be very intimidating for a novice user. Try to configure your Samba server with either linuxconf or Samba Web Administration Tool (SWAT)

by dtighe

OK, First off, we I'll tell you Samba won't do Macs. Although Samba won't Netatalk will and it's Samba compatable, I'v personally never used it (I use the default appletalk services). Currently I'm using my Samba server (Proudly running on a G3 w/ LinuxPPC) as a PDC for out windows network works well, clean, drop me an e-mail if you want my config. Personally I didn't like SWAT, it was annoying, so I did the good ole manual edit w/ *pico*.

by jtb

My favorite plain text editor in linux is pico. It is easy to use and friendly and works very well when X is not available (such as remotely)

I am running a samba server on my RedHat 6.0 box. I use Windows 95,Windows 98 and Windows 2000 on a vmware machine on a linux box and have no problems accessing the shares.

If you intend on using plain text password instead of keeping a separate smb password file the you will need to insert some registry keys to enable plain text transfers of passwords. These can be found in:
/usr/docs/samba-2.0.5a/docs. Just copy to your windows hard drive and doubleclick and the registry keys will be inserted into the registry. This will require a reboot on the windows machine.

There is very good documentation to be found right on the distribution cd in the howtos to help you get samba working correctly for you.

Below is an example of the smb.conf file that I am currently using.

As far as Macs go, I think they look cool and one time I eventouched one in a sto

by jtb

[global]

workgroup = yourworkgroup

server string = Samba Server

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

# 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/smbpasswd

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

# 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 ye

by jtb

dns proxy = no
comment = yourcomment
encrypt passwords = no
password level = 0
preferred master = no
os level = 0
null passwords = no
dead time = 0
debug level = 0
domain master = no
guest account = guest

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
available = yes
public = no
only user = no

# NOTE: If you havea BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
[share]
available = yes
path = /share
public = no
guest only = no
writable = yes
browseable = yes
only user = no
valid users = me, mywife, myfriend
forcecreate mode = 0770

This discussion is closed to new replies.