Set Up Steps
The following samba modules are required:
# rpm -qa | grep -i samba
samba-common-3.0.33-3.29.el5_5.1
samba-client-3.0.33-3.29.el5_5.1
samba-3.0.33-3.29.el5_5.1
perl-5.8.8-27.el5.x86_64.rpm
perl-Convert-ASN1-0.20-1.1.noarch.rpm
mount /net/todnfs03/vol/archive/RedHat/RHEL5-U4-x86_64/rhel-server-5.4-x86_64-dvd.iso /mnt -o loop
cd Server
# rpm -ivh ./perl-5.8.8-27.el5.x86_64.rpm ! Check if already installed. Rpm –qa | grep –i perl
warning: ./perl-5.8.8-27.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package perl-5.8.8-27.el5.x86_64 is already installed
# rpm -ivh perl-Convert-ASN1-0.20-1.1.noarch.rpm ! Check if already installed
warning: perl-Convert-ASN1-0.20-1.1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:perl-Convert-ASN1 ########################################### [100%]
# rpm -ivh ./samba-3.0.33-3.14.el5.x86_64.rpm ! Due to yum updates, install this module with --nodeps
warning: ./samba-3.0.33-3.14.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:samba ########################################### [100%]
Register the server with RHN for updates. Due to a shortage of licenses, currently the server cannot be patched to the latest updated. Check with Ziyan to manually patch Samba to samba-3.0.33-3.29.el5_5.1
rhnreg_ks --activationkey 1-91f9873ace9acf35defa1c52f6348616 --serverUrl https://inf-bcclu1rhn01.goweekend.ca/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
An error has occurred:
Error Message:
Registration failed: RHN Software Management service entitlements exhausted
Error Class Code: 91
Error Class Info: Registration token unable to entitle system: maximum membership exceeded
Explanation:
Your organization does not have enough Management entitlements to register this
system to Red Hat Network. Please notify your organization administrator of this error.
You should be able to register this system after your organization frees existing
or purchases additional entitlements. Additional entitlements may be purchased by your
organization administrator by logging into Red Hat Network and visiting
the 'Subscription Management' page in the 'Your RHN' section of RHN.
A common cause of this error code is due to having mistakenly setup an
Activation Key which is set as the universal default. If an activation key is set
on the account as a universal default, you can disable this key and retry to avoid
requiring a Management entitlement.
See /var/log/up2date for more information
#
scp inf-fcplx1svc03:/etc/samba/smb.conf /etc/samba/ ! copy sample samba.conf file . Check for “fnettest” for shared samba entry
workgroup = SACMCM
server string = CRM
netbios name = crm-bccldvapp01
guestok = no
hosts allow = 10.115. , 10.193.
# logs split per machine
log file = /var/log/samba/smbd.log
# max 50KB per log file, then rotate
max log size = 50
security = ADS
realm = ADROOT.GOWEEKEND.CA
password server = kdc.goweekend.ca
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# the login script name depends on the machine name
# the login script name depends on the unix user used
# disables profiles support by specifing an empty path
local master = no
wins support = yes
dns proxy = no
preserve case = yes
short preserve case = yes
case sensitive = yes
load printers = no
cups options = raw
#obtain list of printers automatically on SystemV
map archive = no
map hidden = no
map system = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[crm]
comment = MVDR Log
path = /apps/crm
valid users = aniu01 mj08
write list = aniu01 ydong09
force user = aniu01
public = no
writable = yes
printable = no
# net ads join -U adm-userid
adm-userid's password: ! Enter domain adm password
Failed to set password for machine account (NT_STATUS_ACCESS_DENIED)
Failed to join domain: Access denied ! Work with AD admin to enable machine to join domain
#
Modify /etc/hosts to add the following lines
9.115.97.49 samba.goweekend.ca samba
Start Samba
/etc/smb start
Goto workstation
Start>Run>\\samba.goweekend.ca
No comments:
Post a Comment