-
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
![Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture](/store/img/g/9HsAAOSw3OZmMT~n/s-l225/Dell-PowerEdge-FX2s-CTO-Blade-4-Slot-2U-Chassis-2x.jpg)
Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W
$399.00
![HP ProLiant BL460c Gen9 Blade 2x E5-2697v4 2.3GHz =36 Cores 64GB P246 650FLB picture](/store/img/g/O1gAAOSwJ19k0wlZ/s-l225/HP-ProLiant-BL460c-Gen9-Blade-2x-E5-2697v4-2-3GHz-.jpg)
HP ProLiant BL460c Gen9 Blade 2x E5-2697v4 2.3GHz =36 Cores 64GB P246 650FLB
$279.00
![DELL PowerEdge M630 Blade 2x E5-2680v4 2.4GHz =28 Cores 128GB H330 2x10Gb X520 picture](/store/img/g/GmIAAOSwC8Jk0V~~/s-l225/DELL-PowerEdge-M630-Blade-2x-E5-2680v4-2-4GHz-28-C.jpg)
DELL PowerEdge M630 Blade 2x E5-2680v4 2.4GHz =28 Cores 128GB H330 2x10Gb X520
$275.00
![Dell PowerEdge M620 Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD picture](/store/img/g/HUMAAOSwj3ZmdO6c/s-l225/Dell-PowerEdge-M620-Blade-Server-2-x-Xeon-e5-2665-.jpg)
Dell PowerEdge M620 Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD
$49.99
![HP ProLiant BL460c Gen9 Blade Server Intel Xeon E5-2698 v3 - 512GB RAM picture](/store/img/g/lasAAOSwj1hmYhKc/s-l225/HP-ProLiant-BL460c-Gen9-Blade-Server-Intel-Xeon-E5.jpg)
HP ProLiant BL460c Gen9 Blade Server Intel Xeon E5-2698 v3 - 512GB RAM
$255.42
![DELL POWEREDGE FC640 Blade Server FX2 CTO Barebones iDrac Enterprise Warranty picture](/store/img/g/xxgAAOSw~7hmS-jA/s-l225/DELL-POWEREDGE-FC640-Blade-Server-FX2-CTO-Barebone.jpg)
DELL POWEREDGE FC640 Blade Server FX2 CTO Barebones iDrac Enterprise Warranty
$199.00
![Dell PowerEdge M520 Blade Server Xeon E5-2403 NO HDD NO RAM picture](/store/img/g/VFIAAOSwXbhmYLj1/s-l225/Dell-PowerEdge-M520-Blade-Server-Xeon-E5-2403-NO-H.jpg)
Dell PowerEdge M520 Blade Server Xeon E5-2403 NO HDD NO RAM
$40.00
![CISCO UCSB-B200-M5 UCS B200 M5 BLADE SERVER - CAN BUILD TO SPEC picture](/store/img/g/7asAAOSw7h5i~lS6/s-l225/CISCO-UCSB-B200-M5-UCS-B200-M5-BLADE-SERVER-CAN-BU.jpg)
CISCO UCSB-B200-M5 UCS B200 M5 BLADE SERVER - CAN BUILD TO SPEC
$495.00
![HP ProLiant BL460c Gen9 Blade 2x E5-2690v4 2.6GHz =28 Cores 32GB P246 650FLB picture](/store/img/g/ofQAAOSw62Rk0wlt/s-l225/HP-ProLiant-BL460c-Gen9-Blade-2x-E5-2690v4-2-6GHz-.jpg)
HP ProLiant BL460c Gen9 Blade 2x E5-2690v4 2.6GHz =28 Cores 32GB P246 650FLB
$223.00
![HP BL460c G10 Blade 2x Gold 6140 2.3GHz =36 Cores 128GB P204i-B QMH2672 2x 20GB picture](/store/img/g/t-YAAOSw3G5k0wiH/s-l225/HP-BL460c-G10-Blade-2x-Gold-6140-2-3GHz-36-Cores-1.jpg)
HP BL460c G10 Blade 2x Gold 6140 2.3GHz =36 Cores 128GB P204i-B QMH2672 2x 20GB
$642.00