Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
At 04:06 PM 2/15/2006, Craig White wrote: On Wed, 2006-02-15 at 14:42 -0600, Gerald (Jerry) Carter wrote: Don Meyer wrote: At 08:24 AM 2/15/2006, Gerald (Jerry) Carter wrote: Oliver Schulze L. wrote: Hi, I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba This was a mistake introduced into the RPM specfile during a recent set of merges. When it was realized, the 3.0.21b-1 rpm was pulled from samba.org and a new set of RPMs posted. The tdb files should live in /var/lib/samba/ Actually, stock RHEL4 rpms for their 3.0.10-1.4E.2 version use /var/cache/samba/. Does this change in the packaging reflect a sea change towards use of /var/lib/samba/ for the future?(I.E. Can we expect future RHEL-distributed packagings to adopt use of /var/lib/samba/ as well?) IMO. They should have always been in /var/lib/samba/. I can't guess what RedHat would do, but SuSE and most other distros I can think of use /var/lib/samba/. You could probably check the stock Fedora RPMs and see what they use. IIRC they are using /var/lib/samba/ as well. if this helps... # ls -l /var/cache/samba/ total 72 -rw--- 1 root root 8192 Jun 8 2004 gencache.tdb -rw--- 1 root root 696 Feb 14 2005 messages.tdb -rw--- 1 root root 696 Feb 14 2005 netsamlogon_cache.tdb -rw--- 1 root root 20172 Feb 14 2005 winbindd_cache.tdb -rw-r--r-- 1 root root 8192 Feb 14 2005 winbindd_idmap.tdb drwxr-x--- 2 root root 4096 May 2 2005 winbindd_privileged # uname -a Linux lin-workstation.azapple.com 2.6.15-1.1830_FC4 #1 Thu Feb 2 17:23:41 EST 2006 i686 athlon i386 GNU/Linux # cat /etc/redhat-release Fedora Core release 4 (Stentz) Craig FWIW: To get winbind working under the base RHEL4 packages (3.0.10-1.4E.2), I had to modify the SELinux configuration slightly: with package selinux-policy-targeted-sources installed, add these two lines to /etc/selinux/targeted/src/policy/domains/misc/local.te: allow winbind_t etc_t:file write; allow winbind_t samba_etc_t:file write; followed by: ]# cd /etc/selinux/targeted/src/policy ]# make load When I built and installed the 3.0.21b-3 packages under RHEL4, the switch to using /var/lib/samba/ from /var/cache/samba/ resulted in a whole mess of SELinux AVC errors. And a completely non-functional winbindd... To fix, I had to to two things: 1) again modify the SELinux configuration by adding the following lines to /etc/selinux/targeted/src/policy/domains/misc/local.te: allow winbind_t etc_t:file write; allow winbind_t samba_etc_t:file write; allow winbind_t initrc_t:process { signal signull }; allow winbind_t initrc_var_run_t:file { lock read }; allow winbind_t var_lib_t: dir { search }; ... and another make load like above... (Not sure whether the /var/lib/samba/ change directly caused the need for lines 3,4 -- could have been some other change that made that necessary. Line 5, though, is obviously due to this change.) 2) I also needed to execute a chcon to change the SELinux labeling on the /var/lib/samba/ directory that was created during the installation. The installation picked up the default labeling of var_lib_t from the parent /var/lib/ directory. To allow things to work properly under SELinux enforcing, and without wholesale opening of anything labeled var_lib_t to just about all forms of access from winbind_t, I used chcon to relabel the /var/lib/samba/ directory to use the same labeling as /var/cache/samba/ had: ]# chcon -R -t samba_var_t /var/lib/samba I also needed to fix the labeling on /var/lib/samba/winbindd_privileged/ : ]# chcon -R -t winbind_var_run_t /var/lib/samba/winbindd_privileged Given these necessary changes, perhaps changing back to /var/cache/samba/ for RHEL4 builds might be prudent... Cheers, -D Don Meyer [EMAIL PROTECTED] Network Manager, ACES Academic Computing Facility Technical System Manager, ACES TeleNet System UIUC College of ACES, Information Technology and Communication Services They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty or safety. -- Benjamin Franklin, 1759 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oliver Schulze L. wrote: Hi, I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba I will build tonight the .rpm from the .tar.gz and see which directory samba choose for the .tdb files in CentOS4. Anyone can confirm this list of distro/.tdb directory: Fedora: /var/cache/samba CentOS4: /var/lib/samba RH9: /var/lib/samba This was a mistake introduced into the RPM specfile during a recent set of merges. When it was realized, the 3.0.21b-1 rpm was pulled from samba.org and a new set of RPMs posted. The tdb files should live in /var/lib/samba/ cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD8zmdIR7qMdg1EfYRAqCJAKDubh6E9futdVB4de1NpNbsdwVMaACfVHxq UZcmgIqx9gAvNnVtI2Vqn6w= =Cb8+ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oliver Schulze L. wrote: Gerald (Jerry) Carter wrote: This was a mistake introduced into the RPM specfile during a recent set of merges. When it was realized, the 3.0.21b-1 rpm was pulled from samba.org and a new set of RPMs posted. The tdb files should live in /var/lib/samba/ Thanks for the explanation Jerry, I noted that 3.0.21b-3 src.rpm for fedora is out, will compile it in RHEL4(CentOS4) and test it. BTW, the rpms for RHEL4 from http://ftp.sernet.de/pub/samba/rhel/rhel4/ have more pakages and different names that the .rpm shipped in RHEL4. For example, the packages are called samba3-* and in RHEL4 are called samba-* Also, packages libsmbclient and libsmbclient-devel does not exits in RHEL4, so, upgrading is not straightforward. Those packages are specifically handled by SerNet. So you would need to discuss any concerns or questions with them. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD83XBIR7qMdg1EfYRAjwQAKDbyVzVNXIOtdbRO7Yl1p3b4+m4PgCgupEE lFLIFPxMc+mzHKWSNb9I+4I= =wozF -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
At 08:24 AM 2/15/2006, Gerald (Jerry) Carter wrote: Oliver Schulze L. wrote: Hi, I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba This was a mistake introduced into the RPM specfile during a recent set of merges. When it was realized, the 3.0.21b-1 rpm was pulled from samba.org and a new set of RPMs posted. The tdb files should live in /var/lib/samba/ Actually, stock RHEL4 rpms for their 3.0.10-1.4E.2 version use /var/cache/samba/. Does this change in the packaging reflect a sea change towards use of /var/lib/samba/ for the future?(I.E. Can we expect future RHEL-distributed packagings to adopt use of /var/lib/samba/ as well?) -D Don Meyer [EMAIL PROTECTED] Network Manager, ACES Academic Computing Facility Technical System Manager, ACES TeleNet System UIUC College of ACES, Information Technology and Communication Services They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty or safety. -- Benjamin Franklin, 1759 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don Meyer wrote: At 08:24 AM 2/15/2006, Gerald (Jerry) Carter wrote: Oliver Schulze L. wrote: Hi, I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba This was a mistake introduced into the RPM specfile during a recent set of merges. When it was realized, the 3.0.21b-1 rpm was pulled from samba.org and a new set of RPMs posted. The tdb files should live in /var/lib/samba/ Actually, stock RHEL4 rpms for their 3.0.10-1.4E.2 version use /var/cache/samba/. Does this change in the packaging reflect a sea change towards use of /var/lib/samba/ for the future?(I.E. Can we expect future RHEL-distributed packagings to adopt use of /var/lib/samba/ as well?) IMO. They should have always been in /var/lib/samba/. I can't guess what RedHat would do, but SuSE and most other distros I can think of use /var/lib/samba/. You could probably check the stock Fedora RPMs and see what they use. IIRC they are using /var/lib/samba/ as well. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD85I0IR7qMdg1EfYRAi8hAJ9A3mI+Ti+pj9RWBgrkLoYlbfwRFwCgnVk/ 2WhY5+z930dQTD6plNfKlIA= =tMO0 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
On Wed, 2006-02-15 at 14:42 -0600, Gerald (Jerry) Carter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don Meyer wrote: At 08:24 AM 2/15/2006, Gerald (Jerry) Carter wrote: Oliver Schulze L. wrote: Hi, I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba This was a mistake introduced into the RPM specfile during a recent set of merges. When it was realized, the 3.0.21b-1 rpm was pulled from samba.org and a new set of RPMs posted. The tdb files should live in /var/lib/samba/ Actually, stock RHEL4 rpms for their 3.0.10-1.4E.2 version use /var/cache/samba/. Does this change in the packaging reflect a sea change towards use of /var/lib/samba/ for the future?(I.E. Can we expect future RHEL-distributed packagings to adopt use of /var/lib/samba/ as well?) IMO. They should have always been in /var/lib/samba/. I can't guess what RedHat would do, but SuSE and most other distros I can think of use /var/lib/samba/. You could probably check the stock Fedora RPMs and see what they use. IIRC they are using /var/lib/samba/ as well. if this helps... # ls -l /var/cache/samba/ total 72 -rw--- 1 root root 8192 Jun 8 2004 gencache.tdb -rw--- 1 root root 696 Feb 14 2005 messages.tdb -rw--- 1 root root 696 Feb 14 2005 netsamlogon_cache.tdb -rw--- 1 root root 20172 Feb 14 2005 winbindd_cache.tdb -rw-r--r-- 1 root root 8192 Feb 14 2005 winbindd_idmap.tdb drwxr-x--- 2 root root 4096 May 2 2005 winbindd_privileged # uname -a Linux lin-workstation.azapple.com 2.6.15-1.1830_FC4 #1 Thu Feb 2 17:23:41 EST 2006 i686 athlon i386 GNU/Linux # cat /etc/redhat-release Fedora Core release 4 (Stentz) Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
Hi Jerry, I checked the latest rpm (samba-3.0.10-1.4E.2.i386.rpm) for RHEL 4.2, extracted the /usr/sbin/smbd file from the .rpm and run this: $ strings smbd | grep /var/lib/samba (no output) $strings smbd |grep /var/cache/samba /var/cache/samba RedHat is using /var/cache/samba/ in RHEL4.2 HTH Oliver Gerald (Jerry) Carter wrote: You could probably check the stock Fedora RPMs and see what they use. IIRC they are using /var/lib/samba/ as well. -- Oliver Schulze L. [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
On 2/6/06, Oliver Schulze L. [EMAIL PROTECTED] wrote: I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba I noticed this too (and it tripped me up until I noticed it). Anyone can confirm this list of distro/.tdb directory: Fedora: /var/cache/samba CentOS4: /var/lib/samba RH9: /var/lib/samba Unless I'm missing something, samba-3.0.10-1.4E.2.i386.rpm, as included with CentOS 4.2, uses /var/cache/samba. Older Fedora .src.rpms from the Samba site used /var/lib/samba, so if you're upgrading from there, that explains the change. Josh Kelley -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
On Monday February 06 2006 1:08 pm, Oliver Schulze L. wrote: Hi, I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba I will build tonight the .rpm from the .tar.gz and see which directory samba choose for the .tdb files in CentOS4. Anyone can confirm this list of distro/.tdb directory: Fedora: /var/cache/samba CentOS4: /var/lib/samba RH9: /var/lib/samba ? Many thanks Oliver I can't speak to RH9, but I'm running CentOS 3 and 4, and FC2 boxes here. As to those, the tdb files are stored as you suspected: Fedora: /var/cache/samba CentOS4: /var/lib/samba HTH. Dimitri -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
On Monday February 06 2006 1:47 pm, Dimitri Yioulos wrote: On Monday February 06 2006 1:08 pm, Oliver Schulze L. wrote: Hi, I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba I will build tonight the .rpm from the .tar.gz and see which directory samba choose for the .tdb files in CentOS4. Anyone can confirm this list of distro/.tdb directory: Fedora: /var/cache/samba CentOS4: /var/lib/samba RH9: /var/lib/samba ? Many thanks Oliver I can't speak to RH9, but I'm running CentOS 3 and 4, and FC2 boxes here. As to those, the tdb files are stored as you suspected: Fedora: /var/cache/samba CentOS4: /var/lib/samba HTH. Dimitri Sorry for replying to my own post, but I should note that I use the latest Samba release from the Samba team. I build the RPMs from their source RPMs. Doing this results in the tdb files being located as you suspected. Dimitri -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba rpm and /var/*/samba directory for .tdb files
Hi Josh and Dimitri, thanks for your comments. I tested samba 3.0.21b and can confirm that in CentOS 4.2 the directory selected is /var/cache/samba I build the rpm like this in CentOS 4.2: tar xzf samba-3.0.21b.tar.gz cd samba-3.0.21b/packaging/RHEL/ sh makerpms.sh I will keep using /var/cache/samba/ since I plan to manually build and update my samba installation from samba.org HTH Oliver Josh Kelley wrote: On 2/6/06, Oliver Schulze L. [EMAIL PROTECTED] wrote: I use CentOS4 (RHEL4) and it seems that I was using /var/lib/samba for storing the .tdb files. Then I compilled the fedora .src.rpm from samba.org and it points now to /var/cache/samba I noticed this too (and it tripped me up until I noticed it). Anyone can confirm this list of distro/.tdb directory: Fedora: /var/cache/samba CentOS4: /var/lib/samba RH9: /var/lib/samba Unless I'm missing something, samba-3.0.10-1.4E.2.i386.rpm, as included with CentOS 4.2, uses /var/cache/samba. Older Fedora .src.rpms from the Samba site used /var/lib/samba, so if you're upgrading from there, that explains the change. Josh Kelley -- Oliver Schulze L. [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba