Bastian.Zacher@aspect-online.de
2004-Dec-06 07:53 UTC
[Samba] compiling samba v3x with sysconfdir
Hello,
I just compiled the latest samba src. with the sysconfdir option as seen
below:
./configure --prefix=/usr/local/samba/3.0.9 --sysconfdir=/etc/samba
After installing it and configuring the smb.conf in /etc/samba I ran
testparm.
It failed, cause the smb.conf wasn't found:
...
Load smb config files from /usr/local/samba/3.0.9/lib/smb.conf
params.c:OpenConfFile() - Unable to open configuration file
"/usr/local/samba/3.0.9/lib/smb.conf":
No such file or directory
Error loading services.
...
I know, that if I specifiy the location of the smb.conf, it would run
correctly (testparm /etc/samba/smb.conf).
Also starting Samba will fail due to this error. After using the -s
options samba will start...
My Question: Is the sysconfdir deprecated? Or is there any other solution
to set the smb.conf location?
I don't want to work with links or hide my smb.conf somewhere deep
inside...
Thanks,
bastian
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bastian.Zacher@aspect-online.de wrote : | My Question: Is the sysconfdir deprecated? Or is there | any other solution to set the smb.conf location? | I don't want to work with links or hide my smb.conf | somewhere deep inside... Use --with-configdir instead of sysconfdir. Example build script at http://www.samba.org/~jerry/src/build-samba cheers, jerry - --------------------------------------------------------------------- Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song"--Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBtHXEIR7qMdg1EfYRAge7AKC9A8qaK/p/LgCn1O/JkEr1opRvTwCfeTDg MJaEQdhC+gSrSY2VsPPB4TM=9bFJ -----END PGP SIGNATURE-----