> -----Original Message----- > From: Andre Dirr [mailto:ad@ordix.de] > Sent: Wednesday, April 25, 2001 12:03 PM > To: samba; samba-ntdom > Subject: configure --prefix > > > hi all, > very simple question: > when i configure samba_2.2.0 with --prefix=/opt/samba2 > are all files stored in this directory or are there files who will be > stored in other dirs, > perhaps smb.conf in /etc ... i don?t know and i can?t test it. > i want to install all (really all) files in only one (really one) dir. > is all i have to do --prefix=/opt/samba2 or have i to do something > else???Everything will be located within the /opt/samba2 directory tree. You can specify other ./configure option to relocate certain stuff, such as putting smb.conf into /etc. Cheers JohnnyP This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
hi all, very simple question: when i configure samba_2.2.0 with --prefix=/opt/samba2 are all files stored in this directory or are there files who will be stored in other dirs, perhaps smb.conf in /etc ... i don?t know and i can?t test it. i want to install all (really all) files in only one (really one) dir. is all i have to do --prefix=/opt/samba2 or have i to do something else??? thanks for answers, andy
Sorry Andre, That won't do it - --prefix sets up the base directory for samba, under which other directories (lib, var, docs,private, ....) will be created. To actually have all files in a single directory, you would need to hack the resulting Makefile, looking to change the various path variables like LOCKDIR, CODEPAGEDIR,PRIVATEDIR, etc... But there ought to be a REALLY good reason why you are doing this, as you are mixing up configuration files, binaries, logfiles, VERY private password file, etc in a single directory, and this sounds like very poor management/security strategy on its face. Hope this helps, Don -----Original Message----- From: Andre Dirr [mailto:ad@ordix.de] Sent: Wednesday, April 25, 2001 7:03 AM To: samba; samba-ntdom Subject: configure --prefix hi all, very simple question: when i configure samba_2.2.0 with --prefix=/opt/samba2 are all files stored in this directory or are there files who will be stored in other dirs, perhaps smb.conf in /etc ... i don?t know and i can?t test it. i want to install all (really all) files in only one (really one) dir. is all i have to do --prefix=/opt/samba2 or have i to do something else??? thanks for answers, andy
Hi Andre, A clarification from my original reply - I hadn't read yet an earlier message that indicates that you wanted to do this for testing purposes, where you will have two versions of samba on the same box, and bring one or the other up at different times for testing. If this is the intent, the --prefix=/opt/samba2 will probably do it for you; as to bringing up one or the other version: ps -ef|grep -e SMBD -e NMBD|grep -v grep|awk '{print $2}'|xargs kill should bring down the currently running version of Samba (tested on HP-UX; syntax may vary depending on what version of *nix you are running...) (but after doing this, do a ps -ef|grep -e smbd -e nmbd just to make sure, and kill any daemons that the first sweep didn't get). Then cd to either /opt/samba/bin or /opt/samba2/bin (whichever version you want to bring up) and type ./nmbd -D ./smbd -D REMEMBER that the location of some files, like the smbpasswd and log files can be controlled by lines in your smb.conf, and these will override whatever samba was compiled with; so make sure you don't just copy over your old smb.conf file to the new directory, if you have any path specific lines in your smb.conf file... Hope this helps, Don -----Original Message----- From: Andre Dirr [mailto:ad@ordix.de] Sent: Wednesday, April 25, 2001 7:03 AM To: samba; samba-ntdom Subject: configure --prefix hi all, very simple question: when i configure samba_2.2.0 with --prefix=/opt/samba2 are all files stored in this directory or are there files who will be stored in other dirs, perhaps smb.conf in /etc ... i don?t know and i can?t test it. i want to install all (really all) files in only one (really one) dir. is all i have to do --prefix=/opt/samba2 or have i to do something else??? thanks for answers, andy -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba