[HowTo] Install and Configure a WORKING Samba (Vista included)
Disclaimer.
Don't know if this guide works from head to tail.
I've composed it from my remberings. But if you have a little knowledge about linux you should understand if there is anything missing or wrong.
Please tell me, so I could update the how to.
I assume you already installed the basics (steps from other tutorials).
Let's get started...
# Login to the web interface and disable the experimental Samba.
# Uninstall any previous xinetd/samba2/samba3 you might have tried with no succes
# Do not remove xinetd if you might need it !!!
Code:
ipkg remove xinetd
ipkg remove samba2
ipkg remove samba
#I suggest you should go to /opt/etc/init.d and remove any SXXSamba file you might have there (XX is a number)
# Get the better ipkg
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
ipkg.sh install ipkg-opt_0.99.163-9_mipsel.ipk
# Get the better uclibc
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
ipkg.sh install uclibc-opt_0.9.28-12_mipsel.ipk
# Update the list using the improved ipkg
# Now upGRADE your system:
Code:
ipkg upgrade
ipkg list_installed
# Create a download folder for Samba, go there and download the latest version (in this case samba_3.0.26a-1_mipsel.ipk)
Code:
mkdir /opt/sambaNew
cd /opt/sambaNew
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/samba_3.0.26a-1_mipsel.ipk
# Install this version of Samba
Code:
ipkg install samba_3.0.26a-1_mipsel.ipk
# This is my working smb.conf file located in /opt/etc/samba
# edit it with your favorite editor, for example nano
Code:
nano /opt/etc/samba/smb.conf
# Copy paste the green lines below in your smb.conf
Quote:
[global]
workgroup = YOUR_WORKGROUP
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
netbios name = Working_Samba
server string = Router wl500gPremium working with Vista.
[share1]
path=/opt/share/samba1
read only = no
writeable = yes
browseable = yes
public = yes
# Create the physical shared folder on your partition
Code:
mkdir /opt/share/samba1
#In order to read/write to this folder you have to give rights permissions.
Code:
chmod 777 /opt/share/samba1
# The final command...
Code:
flashfs save && flashfs commit && flashfs enable && reboot
# Not sure if this is required, but in Windows Vista, you should run secpol.msc
# then in the left tree select Local Policies > Security Options
# then in the right open Network security: LAN Manager authentication level
# and select Send LM & NTLM - use NTLMv2 security if negotiated instead of Send NTLMv2 response only.
# Now you should have a working Samba share accesible even from Windows Vista.
Cheers,
Arise
VISTA works with the samba version 2 !!
I've been seeking on this forum.
I'm running the default samba version 2
The only thing I changed to get a VISTA client working is
modify a policy.
start | run | secpol.msc
Go to Local Policies | Security Options and find Network Security: LAN Manager authentcation level
Change settings from: SendNTLMv2 response only
to: NTLMv2 session security if negotiated
Trouble starting smbd and nmbd
Let me start this with "GREAT WORK" I have had some fun with this....:D
Install of samba 3 went fine:D
[admin@BestCat etc]$ wget http://ipkg.nslu2-linux.org/feeds/op...a-1_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.167.165]:80
samba_3.0.26a-1_mips 100% |*****************************| 21324 KB 00:00 ETA
[admin@BestCat etc]$
[admin@BestCat etc]$ ipkg install samba_3.0.26a-1_mipsel.ipk
Installing samba (3.0.26a-1) to /opt/...
Configuring samba
The original samba version 2 config (/etc/samba/smb.conf) is no longer
working with this version of samba.
Please create a new samba version 3 config (/opt/etc/samba/smb.conf).
After verify your smb.conf file, modify and execute /opt/etc/init.d/S08samba
to activate the samba version 3.
Successfully terminated.
Here is the current version of S08samba
[admin@BestCat init.d]$ cat /opt/etc/init.d/S08samba
#!/bin/sh
# set samba_active=1 to activate samba
samba_active=1
[ 1 = $samba_active ] || exit 0
if [ -n "`pidof smbd`" ] ; then
echo "Stopping smbd:"
killall smbd
fi
if [ -n "`pidof nmbd`" ] ; then
echo "Stopping nmbd:"
killall nmbd
fi
sleep 2
/opt/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf
/opt/sbin/nmbd -D -n myasus -o -l /tmp -s /opt/etc/samba/smb.conf
And smb.conf
[admin@BestCat init.d]$ cat /opt/etc/samba/smb.conf
[global]
domain master = no
local master = no
preferred master = no
hosts allow = 192.168.
socket options = TCP_NODELAY IPTOS_LOWDELAY
workgroup = Damnynke
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
netbios name = Working_Samba
server string = Router wl500gPremium
[share1]
path=/opt/share/samba1
force user = admin
writeable = yes
browseable = yes
public = yes
[share2]
path = /tmp/harddisk
force user = admin
writeable = yes
browseable = yes
public = yes
However, I seem to be missing a specific version of libsasl2.so:(
[admin@BestCat init.d]$ ./S08samba
/opt/sbin/smbd: can't load library 'libsasl2.so.2'
/opt/sbin/nmbd: can't load library 'libsasl2.so.2'
Any clues where I can get the correct version?
Any help would be greatly appreciated.
Mark