Operating System - HP-UX
1831185 Members
3169 Online
110021 Solutions
New Discussion

samba automatic startup at boot ?

 
Steffen Kugler
New Member

samba automatic startup at boot ?

hi all,

I want to setup samba that samba server start when hpux boot...
I adapt the file /etc/rc.config.d/samba but it doesn't work.
Must I config some more files ?
I have tried with this statements to start samba server automatically:

RUN_SAMBA=1

thanks
steffen
7 REPLIES 7
Sundar_7
Honored Contributor

Re: samba automatic startup at boot ?

You need to set RUN_SAMBA=1 in /etc/rc.config.d/samba also you need to have /etc/opt/samba directory with a valid smb.conf file.

Try to execute startsmb command from the command line. If the command executes successfully then Samba should automatically start at bootup.

Review the /etc/rc.log file, that can tell you if there were any error messages from /sbin/init.d/samba script.
Learn What to do ,How to do and more importantly When to do ?
Franky_1
Respected Contributor

Re: samba automatic startup at boot ?

Hi,

that was only the first step !
You'll have to create startup files in /sbin/init.d too and link them to /sbin/rc2.d (start samba) and /sbin/rc1.d (stop samba)

for example

/sbin/rc1.d/K100samba and
/sbin/rc2.d/S900samba

Regards

Franky
Don't worry be happy
Jeff Schussele
Honored Contributor

Re: samba automatic startup at boot ?

Hi Steffen,

You need to have a properly configured /etc/opt/samba/smb.conf file in place.

Specifically in the Global parameters section you specify workgroup, server string & most importantly the directories to share as well as the account info for whom can access them.

Don't forget to run /sbin/init.d/samba start if you haven't rebooted the system.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Franky_1
Respected Contributor

Re: samba automatic startup at boot ?

Hi,

is your problem solved now ? If so than please assign points

Regards

Franky
Don't worry be happy
Steffen Kugler
New Member

Re: samba automatic startup at boot ?

thanks for information but I've a problem to setup gcc compiler on hpux 11.
franky's answer should be working.
I've already in init.d the same samba file.
now I mus set a link to the mentioned rc file. I will try this and give a feedback.
thanks !
steffen
Steffen Kugler
New Member

Re: samba automatic startup at boot ?

oh no...I just have another problem...when I login into sam -> software list or swinstall etc. I got a message:

swlist: Warining: The windowing mode was previously set to ASCII-Terminal
it cannot be changed to X11/Motif

ERROR: The interactive UI failed to start

what is the problem ?
Steffen Kugler
New Member

Re: samba automatic startup at boot ?

hi franky,

I have already the files in init.d and rc1.d and rc2.d.
in init.d is the file named "samba"
should I insert the 2 paths into that file ?
or should I "link" the files with ln comand? if yes can you give me an example how to setup a proper link to /sbin/rc1.d/... and /sbin/rc2.d/...

tanks...