-
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
![RARE 1984 Macintosh 128K MacTilt TILT SWIVEL Stand Mac 512K Plus Metal Very NICE picture](/store/img/g/SE0AAOSwrqZmdhBf/s-l225/RARE-1984-Macintosh-128K-MacTilt-TILT-SWIVEL-Stand.jpg)
RARE 1984 Macintosh 128K MacTilt TILT SWIVEL Stand Mac 512K Plus Metal Very NICE
$119.99
![Macintosh Platinum Mouse - Apple 128K 512K 512Ke Mac Plus Lisa IIe M0100 - NEW picture](/store/img/g/~R8AAOSw5opkqjoc/s-l225/Macintosh-Platinum-Mouse-Apple-128K-512K-512Ke-Mac.jpg)
Macintosh Platinum Mouse - Apple 128K 512K 512Ke Mac Plus Lisa IIe M0100 - NEW
$44.99
![Apple IIe 128K Computer Only A2S2064 SOLD AS IS picture](/store/img/g/1uAAAOSwu7NmaxFX/s-l225/Apple-IIe-128K-Computer-Only-A2S2064-SOLD-AS-IS.jpg)
Apple IIe 128K Computer Only A2S2064 SOLD AS IS
$99.99
![Apple Macintosh 128k 512k Plus Analog Board Capacitor Re-Cap Kit - US Shipping picture](/store/img/g/8mwAAOSw2I1mIvLI/s-l225/Apple-Macintosh-128k-512k-Plus-Analog-Board-Capaci.jpg)
Apple Macintosh 128k 512k Plus Analog Board Capacitor Re-Cap Kit - US Shipping
$23.95
![Macintosh Platinum Mouse - Apple II, IIe, 128K 512K 512Ke Mac Plus M0100 - New picture](/store/img/g/DLsAAOSwQdRmBbYc/s-l225/Macintosh-Platinum-Mouse-Apple-II-IIe-128K-512K-51.jpg)
Macintosh Platinum Mouse - Apple II, IIe, 128K 512K 512Ke Mac Plus M0100 - New
$37.75
![Vintage Apple Macintosh Classic 128K Application On New 400K Double Density Disk picture](/store/img/g/GVIAAOSwrPpl~3Sd/s-l225/Vintage-Apple-Macintosh-Classic-128K-Application-O.jpg)
Vintage Apple Macintosh Classic 128K Application On New 400K Double Density Disk
$26.99
![Apple Keyboard and Cable for Macintosh 128k 512k Mac Plus RARE Vintage M0110 picture](/store/img/g/aLwAAOSwohZmG3Eo/s-l225/Apple-Keyboard-and-Cable-for-Macintosh-128k-512k-M.jpg)
Apple Keyboard and Cable for Macintosh 128k 512k Mac Plus RARE Vintage M0110
$179.99
![1984 APPLE MACINTOSH Model M0001 1st MAC 128K 40th Anniversary PICASSO KIT NICE picture](/store/img/g/9FYAAOSwen9mCtep/s-l225/1984-APPLE-MACINTOSH-Model-M0001-1st-MAC-128K-40th.jpg)
1984 APPLE MACINTOSH Model M0001 1st MAC 128K 40th Anniversary PICASSO KIT NICE
$4999.99
![Apple Macintosh 128K M0001 Computer with Mouse, no keyboard. Case included. 1984 picture](/store/img/g/PKUAAOSwQ2Vk0TIr/s-l225/Apple-Macintosh-128K-M0001-Computer-with-Mouse-no-.jpg)
Apple Macintosh 128K M0001 Computer with Mouse, no keyboard. Case included. 1984
$510.86
![Apple Macintosh M0001 Computer 1984 picture](/store/img/g/MvoAAOSw1ZZkmI~A/s-l225/Apple-Macintosh-M0001-Computer-1984.jpg)
Apple Macintosh M0001 Computer 1984
$1036.00