MyOracleWorld.Net  .........

 

Installing SAMBA and adding new SMB Shares/Users/Passwords

Install samba if not installed yet, using either THN updates or the DVD RHN simulation as explained here :  

 

[root@rh6pw7 ~]# yum install samba 

Loaded plugins: rhnplugin, security 

Excluding Packages in global exclude list 

Finished 

Setting up Install Process 

Parsing package install arguments 

Resolving Dependencies 

--> Running transaction check 

---> Package samba.x86_64 0:3.0.33-3.29.el5_5.1 set to be updated 

--> Processing Dependency: samba-common = 3.0.33-3.29.el5_5.1 for package: samba 

--> Processing Dependency: perl(Convert::ASN1) for package: samba 

--> Running transaction check 

---> Package perl-Convert-ASN1.noarch 0:0.20-1.1 set to be updated 

--> Processing Dependency: libsmbclient.so.0()(64bit) for package: gnome-vfs2-smb 

---> Package samba-common.x86_64 0:3.0.33-3.29.el5_5.1 set to be updated 

---> Package samba-common.i386 0:3.0.33-3.29.el5_5.1 set to be updated 

--> Running transaction check 

---> Package gnome-vfs2-smb.x86_64 0:2.16.2-6.el5_5.1 set to be updated 

--> Processing Dependency: gnome-vfs2 = 2.16.2-6.el5_5.1 for package: gnome-vfs2-smb 

---> Package libsmbclient.x86_64 0:3.0.33-3.29.el5_5.1 set to be updated 

--> Running transaction check 

---> Package gnome-vfs2.x86_64 0:2.16.2-6.el5_5.1 set to be updated 

---> Package gnome-vfs2.i386 0:2.16.2-6.el5_5.1 set to be updated 

--> Finished Dependency Resolution 

 

Dependencies Resolved 

 

================================================================================================== 

 Package          Arch               Version               Repository                      Size 

================================================================================================== 

Installing: 

 samba            x86_64             3.0.33-3.29.el5_5.1   rhel-x86_64-server-5            16 M 

Updating: 

 gnome-vfs2        i386              2.16.2-6.el5_5.1      rhel-x86_64-server-5            1.2 M 

 gnome-vfs2        x86_64            2.16.2-6.el5_5.1      rhel-x86_64-server-5            1.3 M 

 gnome-vfs2-smb    x86_64            2.16.2-6.el5_5.1      rhel-x86_64-server-5            37 k 

 samba-common      i386              3.0.33-3.29.el5_5.1   rhel-x86_64-server-5            6.7 M 

 samba-common      x86_64            3.0.33-3.29.el5_5.1   rhel-x86_64-server-5            6.8 M 

Installing for dependencies: 

 libsmbclient      x86_64            3.0.33-3.29.el5_5.1   rhel-x86_64-server-5            916 k 

 perl-Convert-ASN1 noarch            0.20-1.1              rhel-x86_64-server-5            41 k 

 

Transaction Summary 

================================================================================================== 

Install      3 Package(s)          

Update       5 Package(s)          

Remove       0 Package(s)          

 

Total download size: 33 M 

Is this ok [y/N]: y 

Downloading Packages: 

(1/8): gnome-vfs2-smb-2.16.2-6.el5_5.1.x86_64.rpm         |  37 kB     00:00      

(2/8): perl-Convert-ASN1-0.20-1.1.noarch.rpm              |  41 kB     00:00      

(3/8): libsmbclient-3.0.33-3.29.el5_5.1.x86_64.rpm        | 916 kB     00:00      

(4/8): gnome-vfs2-2.16.2-6.el5_5.1.i386.rpm               | 1.2 MB     00:00      

(5/8): gnome-vfs2-2.16.2-6.el5_5.1.x86_64.rpm             | 1.3 MB     00:00      

(6/8): samba-common-3.0.33-3.29.el5_5.1.i386.rpm          | 6.7 MB     00:00      

(7/8): samba-common-3.0.33-3.29.el5_5.1.x86_64.rpm        | 6.8 MB     00:00      

(8/8): samba-3.0.33-3.29.el5_5.1.x86_64.rpm               |  16 MB     00:01      

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

Total                                            6.6 MB/s |  33 MB     00:05      

Running rpm_check_debug 

Running Transaction Test 

Finished Transaction Test 

Transaction Test Succeeded 

Running Transaction 

  Installing     : libsmbclient                                    [ 1/13]  

  Updating       : samba-common                                    [ 2/13]  

  Updating       : gnome-vfs2                                      [ 3/13]  

  Updating       : samba-common                                    [ 4/13]  

  Updating       : gnome-vfs2                                      [ 5/13]  

  Installing     : perl-Convert-ASN1                               [ 6/13]  

  Updating       : gnome-vfs2-smb                                  [ 7/13]  

  Installing     : samba                                           [ 8/13]  

  Cleanup        : gnome-vfs2                                      [ 9/13]  

  Cleanup        : gnome-vfs2-smb                                  [10/13]  

  Cleanup        : samba-common                                    [11/13]  

  Cleanup        : samba-common                                    [12/13]  

  Cleanup        : gnome-vfs2                                      [13/13]  

 

Installed: samba.x86_64 0:3.0.33-3.29.el5_5.1 

Dependency Installed: libsmbclient.x86_64 0:3.0.33-3.29.el5_5.1 perl-Convert-ASN1.noarch 0:0.20-1.1 

Updated: gnome-vfs2.i386 0:2.16.2-6.el5_5.1 gnome-vfs2.x86_64 0:2.16.2-6.el5_5.1

gnome-vfs2-smb.x86_64 0:2.16.2-6.el5_5.1 samba-common.i386 0:3.0.33-3.29.el5_5.1

samba-common.x86_64 0:3.0.33-3.29.el5_5.1 

Complete! 

[root@rh6pw7 ~]# 

 

Add the below entry to the file /etc/samba/smb.conf:

 

[samba_test_exports] 

        comment = 

        path = /u01/shared_directories/rh6pw7/samba_test_exports 

        valid users = smb_test 

        public = Yes 

        read only = No 

        writable = Yes 

        guest ok = No 

        browseable = Yes 

 

Create the linux user to be used for samba access to the share:

 

[root@rh6pw7 ~]# useradd smb_test -g dba -G dba 

[root@rh6pw7 ~]# passwd smb_test

Changing password for user smb_test. 

New UNIX password:  

Retype new UNIX password:  

passwd: all authentication tokens updated successfully. 

[root@rh6pw7 ~]# 

 

Now, use the smbpasswd command to register the linux user created above, with samba logins:

 

[root@server2 samba]# smbpasswd –a smb_test

        New SMB password: *******

        Retype new SMB password: *******

 

Ensure that 'smb' is set to start automatically each time the server is restarted:

 

[root@rh6pw7 samba]# /sbin/chkconfig smb  on  -> this ensure that smb starts at reboot

[root@rh6pw7 samba]#  

 

 

The login link from windows should look like the following:

 

\\rh6pw7.home.co.za\samba_test_exports 

 

Windows RUN prompt

 

 
HTML Comment Box is loading comments...