-
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
![Fortinet FortiGate 60F | 10 Gbps Firewall Network Security EXPIRED (FG-60F)- New picture](/store/img/g/raUAAOSwJYhjzwg-/s-l225/Fortinet-FortiGate-60F-10-Gbps-Firewall-Network-Se.jpg)
Fortinet FortiGate 60F | 10 Gbps Firewall Network Security EXPIRED (FG-60F)- New
$226.79
![Palo Alto PA-220 Next Generation Firewall Appliance w/ Power Adapter and Cord picture](/store/img/g/n8AAAOSwlM5ma1bc/s-l225/Palo-Alto-PA-220-Next-Generation-Firewall-Applianc.jpg)
Palo Alto PA-220 Next Generation Firewall Appliance w/ Power Adapter and Cord
$59.99
![Sophos XG310 Rev 1 Security Appliance Firewall Device XG 310 Distributed Edge 1U picture](/store/img/g/JxgAAOSwrV9mbNUv/s-l225/Sophos-XG310-Rev-1-Security-Appliance-Firewall-Dev.jpg)
Sophos XG310 Rev 1 Security Appliance Firewall Device XG 310 Distributed Edge 1U
$172.49
![Cisco Meraki MX84 Cloud Managed Security Firewall Appliance UNCLAIMED MX84-HW picture](/store/img/g/KSUAAOSw~-hmULkX/s-l225/Cisco-Meraki-MX84-Cloud-Managed-Security-Firewall-.jpg)
Cisco Meraki MX84 Cloud Managed Security Firewall Appliance UNCLAIMED MX84-HW
$39.99
![Dell SonicWall TZ300 5 Port Network Security Firewall Appliance APL28-0B4 picture](/store/img/g/siEAAOSwe41mcxtd/s-l225/Dell-SonicWall-TZ300-5-Port-Network-Security-Firew.jpg)
Dell SonicWall TZ300 5 Port Network Security Firewall Appliance APL28-0B4
$39.99
![Cisco ASA5506-K9 ASA 5506-X Network Security Firewall picture](/store/img/g/N60AAOSwDr1mYvWj/s-l225/Cisco-ASA5506-K9-ASA-5506-X-Network-Security-Firew.jpg)
Cisco ASA5506-K9 ASA 5506-X Network Security Firewall
$40.00
![Cisco Meraki Z3 VPN Firewall - Black picture](/store/img/g/7HcAAOSwrA1mctRx/s-l225/Cisco-Meraki-Z3-VPN-Firewall-Black.jpg)
Cisco Meraki Z3 VPN Firewall - Black
$15.00
![Barracuda Networks Spam Firewall 100 Anti-Virus Security Appliance BSF100a picture](/store/img/g/-Y0AAOSwMFNmX1rP/s-l225/Barracuda-Networks-Spam-Firewall-100-Anti-Virus-Se.jpg)
Barracuda Networks Spam Firewall 100 Anti-Virus Security Appliance BSF100a
$22.99
![1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture](/store/img/g/fxsAAOSwZD5l6PSG/s-l225/1U-BareMetal-pfsense-opnsense-Router-Firewall-DNS-.jpg)
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
![Palo Alto PA-820 Firewall Security Appliance picture](/store/img/g/8SEAAOSw449mcvFq/s-l225/Palo-Alto-PA-820-Firewall-Security-Appliance.jpg)
Palo Alto PA-820 Firewall Security Appliance
$120.00