-
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
![1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture](/store/img/g/PDMAAOSwlhdmFJ5R/s-l225/1TB-2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-St.jpg)
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$80.39
![Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture](/store/img/g/oroAAOSwsJNmFPcr/s-l225/Type-C-USB-3-0-Flash-Drive-Thumb-Drive-Memory-Stic.jpg)
Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot
$73.29
![Samsung 1TB 850 EVO 2.5](/store/img/g/flYAAOSwzBNmPSrL/s-l225/Samsung-1TB-850-EVO-2-5-SATA-Solid-State-Drive-MZ7.jpg)
Samsung 1TB 850 EVO 2.5" SATA Solid State Drive MZ7LE1T0 ** READ **
$48.99
![Seagate ST1000DX001 1TB 3.5](/store/img/g/JfQAAOSw12dmXmPq/s-l225/Seagate-ST1000DX001-1TB-3-5-Desktop-Hybrid-SSHD-So.jpg)
Seagate ST1000DX001 1TB 3.5" Desktop Hybrid SSHD Solid-State Hybrid Drive
$37.50
![WD - Blue SN580 1TB Internal SSD PCIe Gen 4 x4 NVMe picture](/store/img/g/QjsAAOSwx-JlMDZh/s-l225/WD-Blue-SN580-1TB-Internal-SSD-PCIe-Gen-4-x4-NVMe.jpg)
WD - Blue SN580 1TB Internal SSD PCIe Gen 4 x4 NVMe
$64.99
![CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD picture](/store/img/g/qqcAAOSw~xVgcyGX/s-l225/CISCO-A03-D1TBSATA-1TB-7-2K-6G-2-5INCH-SATA-HDD.jpg)
CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD
$9.00
![Samsung - 870 EVO 1TB Internal SSD SATA picture](/store/img/g/cb8AAOSwgC5gPSup/s-l225/Samsung-870-EVO-1TB-Internal-SSD-SATA.jpg)
Samsung - 870 EVO 1TB Internal SSD SATA
$99.99
![1TB HDD/SSD 2.5](/store/img/g/IlgAAOSwtgpmKHfn/s-l225/1TB-HDD-SSD-2-5-SATA-Hard-Drive-for-Laptop-with-Wi.jpg)
1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed
$28.99
![Internal HDD SATA 3.5](/store/img/g/PDYAAOSw-ONkwOKE/s-l225/Internal-HDD-SATA-3-5-250GB-2TB-Hard-Drive-with-Le.jpg)
Internal HDD SATA 3.5" 250GB-2TB Hard Drive with Legacy Windows 11 Pro Installed
$29.15
![Samsung - 990 980 970 PRO & EVO 4TB 2TB 1 TB Internal PCle Gen 4x4 NVMe M.2SSD picture](/store/img/g/4jMAAOSwtO5maEst/s-l225/Samsung-990-980-970-PRO-EVO-4TB-2TB-1-TB-Internal-.jpg)
Samsung - 990 980 970 PRO & EVO 4TB 2TB 1 TB Internal PCle Gen 4x4 NVMe M.2SSD
$320.00