see that it has been CLOSED. We need --with-msdfs compiled into samba.
for RedHat Linux version 3.
We want to migrate our samba services to RedHat Linux and Samba 3.0.2-6.3E but I
could not get msdfs to work. Then I learned that it wasn't compiled into samba by
default.
We customized as follows. The updated samba.spec is attached.
- saved our smb.conf file and /etc/xinetd.d/swat file
- download source: samba-3.0.2-6.3E.src.rpm.tar.gz
- uninstall samba and dependent packages: redhat-cnfig-samba, samba-swat, samba
- install the source package: rpm -i samba-3.0.2-6.3E.src.rpm
- update samba.spec in /usr/src/redhat/SPECS
specifically like so:
...
CFLAGS=-D_GNU_SOURCE %configure \
--with-acl-support \
--with-automount \
--with-codepagedir=%{_datadir}/samba/codepages \
--with-fhs \
--with-libsmbclient \
--with-lockdir=/var/cache/samba \
--with-mmap \
--with-msdfs \
--with-pam \
--with-pam_smbpass \
--with-piddir=/var/run \
--with-privatedir=%{_sysconfdir}/samba \
--with-quotas \
--with-smbmount \
--with-swatdir=%{_datadir}/swat \
--with-syslog \
--with-utmp \
--with-vfs \
--without-smbwrapper
...
- rebuild samba: rpmbuild -ba samba.spec (while in /usr/src/redhat/SPECS directory)
- install the newly rebuilt packages in /usr/src/redhat/RPMS/i386
Our smb.conf file is attached. After rebuilding samba in this way, our DFS links
still did not work. What are we missing? Do we need to run the
winbindd daemon with our configuration? We are relatively new with RedHat.
We will appreciate any assistance you can provide. We have to make this work
before we can migrate.
Helen
# uname -a
Linux spirit 2.4.21-9.0.1.EL #1 Mon Feb 9 22:44:14 EST 2004 i686 i686 i386 GNU/Linux
hardware: IBM NetVista 6840 UN6 pentium III
smb.conf: # Samba config file created using SWAT # from 152.2.169.78 (152.2.169.78) # Date: 2004/04/15 17:08:53
# Global parameters [global] workgroup = UNCSPH realm = SPH.UNC.EDU netbios aliases = SPIRIT server string = samba server interfaces = eth0, lo security = ADS password server = SPHDC0 SPHDC1 username map = /etc/samba/smbusers log level = 3 max log size = 50000 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = Yes local master = No domain master = No dns proxy = No wins proxy = Yes wins server = 152.2.153.25 ldap ssl = no host msdfs = Yes hosts allow = 152.2.0.0/255.255.0.0, 152.19.0.0/255.255.0.0, 152.23.168.0/255.255.248.0, 127. hosts deny = ALL
[homes] comment = Home Directories read only = No create mask = 0700 force create mode = 0700 directory mask = 0700 force directory mode = 0700 browseable = No
[printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No
[my_files] comment = Individual User Shared Spaces path = /home/%U/share msdfs root = Yes
[misc] comment = Our initial test share path = /misc valid users = hnulty force user = system read only = No
[dfs] comment = DFS root by the book path = /export/dfsroot valid users = hnulty admin users = hnulty read only = No msdfs root = Yes
-- Helen P. Nulty Computer Systems Administrator The University of North Carolina at Chapel Hill 221 Rosenau Hall, CB# 7400 Chapel Hill, NC 27599-7400
PH: 919-966-9136 Fax: 919-966-7141 Helen_Nulty@xxxxxxx http://www.sph.unc.edu
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list