Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: samba.unc script< Next Oldest | Next Newest >
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Jan. 03 2008,05:18 QUOTE

This script installs samba.unc (if not already installed), copies over your password and smb.conf file, and starts, stops, or restarts the samba service.  Edit the paths to samba.unc, smbpasswd, and smb.config.  Runs with args: start, stop, or restart (eg. "samba start")  note: check manual for setting up password and config file.

----------------
#!/bin/bash


if [ ! -f /usr/sbin/nmbd ]; then
mydsl-load /mnt/hda3/Downloads/samba.unc
sudo cp /mnt/hda3/MyFiles/scripts/samba/smb.conf /etc/samba/
sudo cp /mnt/hda3/MyFiles/scripts/samba/smbpasswd /usr/bin/
fi

case $1 in
start )  sudo /usr/sbin/nmbd start | sudo /usr/sbin/smbd start ;;
restart )  sudo /usr/sbin/nmbd restart | sudo /usr/sbin/smbd restart ;;
stop ) sudo killall -TERM nmbd | sudo killall -TERM smbd ;;
* ) echo "args: start, stop, restart" ;;
esac
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Jan. 06 2008,19:43 QUOTE

I edited the [ ! /opt/samba ] after finding this directory loads without samba.unc installed.  /usr/sbin/nmbd installs after samba.unc loads.
Back to top
Profile PM 
1 replies since Jan. 03 2008,05:18 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: samba.unc script

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code