Samba Share Setup

Following are the steps that i followed to setup a simple drive share on RHEL 5 system.The system did not had the YUM configured with repos, so had to download and install them using YUM to bypass dependency issues. YUM used to prompt me with the missing dependency till they were not fullfilled, i started with samba3-3.2.15-40.el5.x86_64.rpm, downloaded the rest later.

1. Downloaded the packages from 'ftp://ftp.sernet.de/pub/samba/tested/rhel/5/x86_64/'
Packages :
- samba3-3.2.15-40.el5.x86_64.rpm
- libwbclient0-3.2.15-40.el5.x86_64.rpm
- samba3-client-3.2.15-40.el5.x86_64.rpm

2. Installed packages
[root@QAV5 samba]# yum --nogpgcheck localinstall samba3-3.2.15-40.el5.x86_64.rpm libwbclient0-3.2.15-40.el5.x86_64.rpm samba3-client-3.2.15-40.el5.x86_64.rpm
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Local Package Process
Examining samba3-3.2.15-40.el5.x86_64.rpm: samba3 - 3.2.15-40.el5.x86_64
Examining libwbclient0-3.2.15-40.el5.x86_64.rpm: libwbclient0 - 3.2.15-40.el5.x86_64
Examining samba3-client-3.2.15-40.el5.x86_64.rpm: samba3-client - 3.2.15-40.el5.x86_64
Marking samba3-3.2.15-40.el5.x86_64.rpm to be installed
Marking libwbclient0-3.2.15-40.el5.x86_64.rpm to be installed
Marking samba3-client-3.2.15-40.el5.x86_64.rpm to be installed
Resolving Dependencies
-- Running transaction check
--- Package samba3-client.x86_64 0:3.2.15-40.el5 set to be updated
--- Package samba3.x86_64 0:3.2.15-40.el5 set to be updated
--- Package libwbclient0.x86_64 0:3.2.15-40.el5 set to be updated
-- Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package     Arch      Version        Repository         Size
=============================================================================
Installing:
samba3     x86_64    3.2.15-40.el5      samba3-3.2.15-40.el5.x86_64.rpm       38 M
Installing for dependencies:
libwbclient0     x86_64    3.2.15-40.el5      libwbclient0-3.2.15-40.el5.x86_64.rpm       65 k
samba3-client     x86_64    3.2.15-40.el5      samba3-client-3.2.15-40.el5.x86_64.rpm       38 M
Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 76 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing:
libwbclient0 ######################### [1/3]
Installing: samba3-client ######################### [2/3]
Installing: samba3 ######################### [3/3]

Installed: samba3.x86_64 0:3.2.15-40.el5
Dependency Installed: libwbclient0.x86_64 0:3.2.15-40.el5 samba3-client.x86_64 0:3.2.15-40.el5
Complete!
[root@QAV5 samba]#
3. Added the following config to the samba
[root@QAV5 samba]# cat /etc/samba/smb.conf
[share]
comment = samba share
path = /opt/apache-tomcat-5.5.20/logs
public = yes
[root@QAV5 samba]#

4. Added the user to the system
[root@QAV5 samba]#
[root@QAV5 samba]# useradd share
[root@QAV5 samba]#
5. Added the user to samba user list,and setting its password.
[root@QAV5 samba]#
[root@QAV5 samba]# smbpasswd -a share
New SMB password:
Retype new SMB password:
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Added user share.
[root@QAV5 samba]#

6. Restarted samba service.
[root@QAV5 samba]#
[root@QAV5 samba]# service smb restart
Shutting down SMB services: [ OK ]
Shutting down SMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@QAV5 samba]#
7. Accessed the share by typing "\\QAV5\share" in explorer.

Comments

Popular posts from this blog

Address book configuration [LDAP] on Evolution

Startup error with Thunderbird 3.0

Today was the ....