-
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
![Seagate Exos X22 ST22000NM001E 22TB 512E SATA 6Gb/s 3.5](/store/img/g/LfgAAOSw9~1l-F1x/s-l225/Seagate-Exos-X22-ST22000NM001E-22TB-512E-SATA-6Gb-.jpg)
Seagate Exos X22 ST22000NM001E 22TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive
$311.99
![Seagate ST8000NM0055 8TB 7200RPM 256MB SATA 6.0 Gb/s 3.5](/store/img/g/pM0AAOSwNJNmTand/s-l225/Seagate-ST8000NM0055-8TB-7200RPM-256MB-SATA-6-0-Gb.jpg)
Seagate ST8000NM0055 8TB 7200RPM 256MB SATA 6.0 Gb/s 3.5" Enterprise Hard Drive
$41.71
![881507-001 HPE 2.4TB SAS 12G 10K SC 512E DS G8-G10 Hard Drive 881457-B21 F/S picture](/store/img/g/ghkAAOSwlaFlOC86/s-l225/881507-001-HPE-2-4TB-SAS-12G-10K-SC-512E-DS-G8-G10.jpg)
881507-001 HPE 2.4TB SAS 12G 10K SC 512E DS G8-G10 Hard Drive 881457-B21 F/S
$274.95
![Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5](/store/img/g/-HkAAOSwJ69l-Fud/s-l225/Seagate-Exos-X16-ST14000NM001G-14TB-512E-SATA-6Gb-.jpg)
Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive
$169.99
![HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5](/store/img/g/buwAAOSwDghlwalj/s-l225/HGST-Ultrastar-DC-HC520-12TB-SATA-6Gb-256MB-3-5-En.jpg)
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$82.99
![HGST Ultrastar HE10 10TB SATA 6.0Gb/s 7200 3.5](/store/img/g/2NYAAOSwj9hkeS1e/s-l225/HGST-Ultrastar-HE10-10TB-SATA-6-0Gb-s-7200-3-5-Dat.jpg)
HGST Ultrastar HE10 10TB SATA 6.0Gb/s 7200 3.5" Datacenter HDD - HUH721010ALE601
$79.99
![Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5](/store/img/g/ZyMAAOSw4ullEigP/s-l225/Seagate-ST12000NM0127-12TB-256MB-7200RPM-3-5-SATA-.jpg)
Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$87.99
![WD Ultrastar DC HC530 14TB SATA 6G 3.5](/store/img/g/gggAAOSwwB5mL~fg/s-l225/WD-Ultrastar-DC-HC530-14TB-SATA-6G-3-5-7200RPM-Ent.jpg)
WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604
$110.00
![Seagate Exos X22 ST20000NM004E 20TB 512E SATA 6Gb/s 3.5](/store/img/g/obwAAOSwhgNl-F4h/s-l225/Seagate-Exos-X22-ST20000NM004E-20TB-512E-SATA-6Gb-.jpg)
Seagate Exos X22 ST20000NM004E 20TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive
$268.99
![HUH721010AL4200/42C0 HGST Ultrastar He10 10TB 7200RPM SAS 12Gbps 256MB 2017 picture](/store/img/g/7LcAAOSwmOhl6rSM/s-l225/HUH721010AL4200-42C0-HGST-Ultrastar-He10-10TB-7200.jpg)
HUH721010AL4200/42C0 HGST Ultrastar He10 10TB 7200RPM SAS 12Gbps 256MB 2017
$69.99