How to install samba (aka smb) on Red Hat Linux /quick and easy guide
Well, well, well…
Just a side thought: I am going to add new tag “Q&EG” (quick and easy guide) to all similar guides from now on.
Step 1.1 – install samba via yum:
yum install samba
Step 1.2 – or via rpm:
Obtain Samba rpm from rhn.redhat.com
rpm -ivh samba*.rpm
Step 2 – config file creation and change:
cd /etc/samba mv smb.conf smb.conf.backup vi smb.conf
And put into smb.conf following content (notice my share of apache htdocs directory – /var/www/html):
[global]
workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
[share]
writeable = yes
admin users = smbuser
path = /var/www/html
force user = root
valid users = smbuser
public = yes
available = yes
Step 3 – add new user into system and samba and restart smb deamon:
adduser smbuser passwd smbuser smbpasswd -a smbuser service smb restart
Step 4 – Now it’s time to test it and add mapped network drive in your windows (I only tested on WinXP so far):
Run “cmd” from Windows/RUN
and enter following (note my server IP:192.168.1.12 ):
net use z: \\192.168.1.12\share /user: smbuser ***password***