-
Senior Member
registered user
Can I start KNOPPIX Samba service from the commandline
What I would like to be able to do is to ssh into a newly booted knoppix livecd (with ssh started) from a remote workstation and start the samba service from the command line instead of having to do the initial start (enter password twice, export drives y/n) from the command line of the remote terminal.
Any suggestions?
~pau1
-
Senior Member
registered user
Re: Can I start KNOPPIX Samba service from the commandline
![Quote](images/misc/quote_icon.png)
Originally Posted by
pau1knopp
What I would like to be able to do is to ssh into a newly booted knoppix livecd (with ssh started) from a remote workstation and start the samba service from the command line instead of having to do the initial start (enter password twice, export drives y/n) from the command line of the remote terminal.
Any suggestions?
~pau1
Havent worked with Samba, but, here is my guess...
I looked at /etc/init.d folder, and found that a "samba" shell script exists, upon examination, it appears the script is "standard" start / stop form... i.e. init.d scripts "expect" to be passed a parameter of either start or stop, and then either start the services, or stop them, depending on the passed parameter....
My best guess here, is, the following command should do the trick:
/etc/init.d/samba start
and to stop, the following:
/etc/init.d/samba stop
you probably want to do this as a root, not sure though...
Hope this has helped,
Ms. Cuddles
-
Senior Member
registered user
You can only start a preconfigured service (password, export drives y/n) this way. Essentially, I would like to start the service (including configuration) from the command line.
Good input Ms. Cuddles, I'll keep digging and post results here unless someone else has the answer.
Regards,
Paul
-
I'm not sure. But I think this is what you want.
start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- -D --configfile=YOURCONFIGFILE
start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D --configfile=YOURCONFIGFILE
start-stop-daemon --stop --quiet --exec /usr/sbin/nmbd
start-stop-daemon --stop --quiet --exec /usr/sbin/smbd
FYI: nmbd is the NetBIOS name server and smbd is the Samba server daemon
.::EDIT::.
Cuddles is right. You need to do all this under root. After all, only root can open ports below 1024.
-
Senior Member
registered user
Excellent input...
What is the format of YOURCONFIGFILE? Is this smb.conf?
~pau1
-
Yep. Everything you would ever want to know about that can be found at http://www.samba.org/samba/docs/man/smb.conf.5.html and a quick howto guide can be found at http://www.faqs.org/docs/securing/chap29sec284.html
Similar Threads
-
By BALDRICK in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 03-28-2006, 11:20 AM
-
By ben1440 in forum Networking
Replies: 2
Last Post: 02-23-2006, 07:25 AM
-
By v-lee in forum Customising & Remastering
Replies: 6
Last Post: 06-27-2005, 09:03 PM
-
By jMon54 in forum Networking
Replies: 2
Last Post: 03-28-2005, 03:23 PM
-
By InstallScript in forum General Support
Replies: 2
Last Post: 02-09-2003, 10:58 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C picture](/store/img/g/tqEAAOSwkbxmR-l8/s-l225/New-Precision-DWDM-SFP-10G-80km-Tunable-Transceive.jpg)
New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C
$90.00
![LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module picture](/store/img/g/JEEAAOSwzu9ibCFX/s-l225/LOT-OF-20-Genuine-Cisco-SFP-10G-SR-V03-10GBASE-SR-.jpg)
LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module
$95.00
![Original CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi mode Module picture](/store/img/g/KTkAAOSwcmBisISE/s-l225/Original-CISCO-SFP-10G-SR-V03-10-2415-03-850nm-10G.jpg)
Original CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi mode Module
$6.80
![Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture](/store/img/g/aIgAAOSwXWNi1sm1/s-l225/Brand-New-Cisco-GLC-LH-SMD-1000BASE-LX-LH-SFP-Modu.jpg)
Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC
$12.99
![Precision PRE-SFP-TMI-CSCO 1GB BASE-T RJ-45 SFP Transceiver - For Cisco picture](/store/img/g/NYMAAOSwLTJlgKxZ/s-l225/Precision-PRE-SFP-TMI-CSCO-1GB-BASE-T-RJ-45-SFP-Tr.jpg)
Precision PRE-SFP-TMI-CSCO 1GB BASE-T RJ-45 SFP Transceiver - For Cisco
$2.89
![GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03 picture](/store/img/g/tAkAAOSwdENkHItI/s-l225/GENUINE-Cisco-SFP-10G-SR-V03-SFP-GBIC-Transceiver-.jpg)
GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03
$6.80
![CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty picture](/store/img/g/FkQAAOSwtBZbqRX9/s-l225/CISCO-SFP-10G-LR-SFP-TRANSCEIVER-MODULE-GBIC-10G-1.jpg)
CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty
$39.99
![NEW FS SFP-10G-T 10GBASE T SFP+ 30M Transceiver Module (Lot of 1 Unit) picture](/store/img/g/K7UAAOSwWdtmNYNP/s-l225/NEW-FS-SFP-10G-T-10GBASE-T-SFP-30M-Transceiver-Mod.jpg)
NEW FS SFP-10G-T 10GBASE T SFP+ 30M Transceiver Module (Lot of 1 Unit)
$39.95
![New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module picture](/store/img/g/SO8AAOSwwW1l1Cr6/s-l225/New-HP-HPE-Aruba-J9150D-10G-SFP-LC-SR-850nm-300m-M.jpg)
New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module
$45.99
![10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module picture](/store/img/g/BGYAAOSwya1mar8M/s-l225/10-PCS-Cisco-GLC-LH-SMD-10-2625-01-1310nm-SFP-Tran.jpg)
10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module
$85.00