Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem starting Samba at boot

Status
Not open for further replies.

rene1000

IS-IT--Management
Apr 9, 2002
89
NL
I have created a startup script in the /etc/rc2.d directory to start Samba during boot.
The file contains the right command to start Samba. It works when i enter the same command at the command line, however when i manually run the startup script or automatically at boot it doesn't work. The error message is:

./P100samba[3]:/usr/lib/samba/sbin/smbd: not found

the Samba version is 2.2.6c on SCO Unix 5.07

Does anyone know how to resolve this problem ?
 
Try to rename P100samba to S89samba.


Hope This Help
PH.
 
Thanks for the reply PH. Unfortunately that didn't help.

I still get the same error message when i try to run the file manually.
./S89samba[3]:/usr/lib/samba/sbin/smbd: not found

when the file is started automatically at boot i see the error message:
/etc/rc2.d/S89samba: /usr/lib/samba/sbin/smdb : not found

and again when i enter the exact same command at the command line it works.
 
You may have a lack of environment variable(s). I suspect a path to shared library. Try to insert in the samba start script the necessary environment changes you should have in your profile files.

Hope This Help
PH.
 
I found what was wrong. There was a typo in the path (stupid mistake).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top