Operating System - HP-UX
1819791 Members
3276 Online
109607 Solutions
New Discussion юеВ

Change location of smb.conf

 
Jeff Pleau_2
Occasional Contributor

Change location of smb.conf

Hi folks,

Where is the default location of the smb.conf file set? I have recently removed the Samba that came with HP-UX 11i and installed Samba 2.2.3a (domain problems), but it still looks for all the conf files, locks, secrets, in the location where the old samba install was.

Any help is appreciated
Jeff
6 REPLIES 6
S.K. Chan
Honored Contributor

Re: Change location of smb.conf

Should be in
/etc/opt/samba
Jeff Pleau_2
Occasional Contributor

Re: Change location of smb.conf

Sorry, my question may have not been clear - I want to know how to change where it looks for the files - I know where it is looking now, but want it to look at a different directory for the config files, etc.

Thanks
Jeff
Wilfred Chau_1
Respected Contributor

Re: Change location of smb.conf

Take a look at this document.
K.Vijayaragavan.
Respected Contributor

Re: Change location of smb.conf

Hi,

"/etc/rc.config.d/samba"
is the file that system checks whether to start samba services or not at the time of booting.

-Vijay
"Let us fine tune our knowledge together"
K.Vijayaragavan.
Respected Contributor

Re: Change location of smb.conf

Hi,
1. Edit the /etc/rc.config.d/samba file.

2. Change the last line of the file to: RUN_SAMBA=0.

3. Save the file.

-Vijay
"Let us fine tune our knowledge together"
Vincent Stedema
Esteemed Contributor

Re: Change location of smb.conf

Hi,

The location of smb.conf is determined at compile time. If you want to set it to another dir, you will either have to recompile the software yourself (use ./configure --help to find out which configure parameter is used to set the configuration file location) OR you could link /etc/opt/samba to your dir of choice.

HTH.

Regards,

Vincent