>From my build docs for RHEL.  YMMV and caveat emptor  ;-)

--------------------------------------------

# cd /etc/yum.repos.d
# wget http://ftp.sernet.de/pub/samba/<major version>/rhel/5/sernet-samba.repo
> where <major version> is something like 3.5
# yum install samba3.x86_64 samba3-*64*

> increase maximum number of open files and processes for large rsync and copy 
> operations:
> add the following line to /etc/security/limits.conf
*       soft    nofile  16384
*       hard    nofile  100000
(NOTE: 100000 should be < `cat /proc/sys/fs/file-max` or one rogue process can 
lock the entire box!  LEAVE SOME ROOM!)

# vi ~/.bashrc
> add the following lines to the end of the script
ulimit -u hard 100000000
PS1='[\t \u@\h \W]\$ '

> to allow domain logins to the local box add the following to 
> /etc/pam.d/system-auth **NOTE NOT NEEDED FOR NORMAL FILE SERVERS**USE WITH 
> CAUTION**
auth    sufficient      pam_winbind.so

> REBOOT

# yum update -y

> copy smb.conf to /etc/samba from working server, or backup location, modify 
> as needed for new host (i.e. share locations)
> copy krb5.conf to /etc from working server (note: arcfour-hmac-md5 is the 
> only encryption type that seems to work with server 2008SP2 DCs and samba 
> 3.5+)

> test samba configuration for basic typos, etc.
# testparm

> modify /etc/nsswitch.conf to add winbind lookups
passwd:     files winbind
group:      files winbind

> make a machine account in the domain
# net ads join -U Administrator
(note: if it complains about a DNS update, that is OK as you already specified 
a static IP in DNS)

> enter the DOMAIN administrator password, note: this creates 
> /etc/samba/secrets.tdb - secure this file, as well as 
> /var/lib/samba/gencache_notrans.tdb, gencache.tdb, group_mapping.ldb
# nmbd -D
# smbd -D
# winbindd

> ensure auto-startup.  Edit /etc/rc.d/rc.local and add 5 lines
/usr/sbin/nmbd -D
/usr/sbin/smbd -D
/usr/sbin/winbindd
/usr/bin/wbinfo -u
/usr/bin/wbinfo -g

> check setup
wbinfo -u  (returns a list of domain users)
wbinfo -g  (returns a list of domain groups)
wbinfo -t (tests shared secret with domain)
nslookup <hostname>  (make sure DNS is configured properly)

> set up backups as appropriate...

DONE

--------------------------------------------

Hopefully that helps.

-=Andrew


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Marc Fromm
Sent: Wednesday, August 10, 2011 4:38 PM
To: Chris Weiss
Cc: [email protected]
Subject: Re: [Samba] windows 7 cannot connect

The server currently has 3.0.33 on it, but it needs at least 3.4 to work with 
windows 7 computers. Red hat will not be upgrading samba beyond 3.0.33 for 
their 32bit RH5 users. Thus I am stuck and cannot use yum and the red hat repos 
to do the upgrade. 

On site directed me to this page to download the rpms, but I am not experienced 
enough with manually updating a package.
http://ftp.sernet.de/pub/samba/ . I downloaded all the files listed under the 
3.6/rhel/5/i386 directory.

Thus I was hoping to find to step by step on how to do the upgrade.

-----Original Message-----
From: Chris Weiss [mailto:[email protected]] 
Sent: Wednesday, August 10, 2011 2:17 PM
To: Marc Fromm
Cc: John Drescher; [email protected]
Subject: Re: [Samba] windows 7 cannot connect

On Wed, Aug 10, 2011 at 3:13 PM, Marc Fromm <[email protected]> wrote:
> My googling seems to point at upgrading samba to 3.4. Currently installed on 
> my RHEL 5.2 32 bit server is as listed below for smb and samba.
>
> If I was running RHEL 64 bit I would be supported by red hat and updating the 
> OS to the latest 5.x would provide this for me. For some reason red hat feels 
> they do not need to support their 32 bit users, which my server is running, 
> and updating the OS does not update certain packages like samba and php. Even 
> though I have paid support with red hat they will not provide support to 
> update the needed packages.
>
> Thus, is there a detailed set of procedures on how to manually upgrade samba 
> on a RHEL 5.2 server? I do not want to try this by trial and error and 
> cripple the server.
>

I think RH 5 has a samba 3.x package, or was that only Centos?  I don't recall 
what version it was intro'd

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to