Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

SAMBA Server And Client Config


SAMBA Server And Client Config


Samba is a software package that comes with RHEL 6.0 that lets you share file systems and printers on a network with computers that use the Session Message Block (SMB) protocol. SMB is the protocol that is delivered with Windows operating systems for sharing files and printers
You can do four basic things with Samba:
Share a Linux directory tree with Windows and Linux/Unix computers
Share a Windows directory with Linux/Unix computer0073
Share a Linux printer with Windows and Linux/Unix computers
Share a Windows printer with Linux/Unix computers

Configurations Files

1. /etc/samba/smb.conf- Main Configuration File

1. Configurations Samba Server.



[root@server1 ~]# yum install samba*
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Package samba-common-3.5.4-68.el6.i686 already installed and latest version
Package samba-winbind-clients-3.5.4-68.el6.i686 already installed and latest version
Package samba-client-3.5.4-68.el6.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package samba.i686 0:3.5.4-68.el6 set to be updated
---> Package samba-winbind.i686 0:3.5.4-68.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================
Package Arch Version Repository Size
===========================================================================
Installing:
samba i686 3.5.4-68.el6 Server 5.0 M
samba-winbind i686 3.5.4-68.el6 Server 3.5 M

Transaction Summary
===========================================================================
Install 2 Package(s)
Upgrade 0 Package(s)

Total download size: 8.5 M
Installed size: 30 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): samba-3.5.4-68.el6.i686.rpm | 5.0 MB 00:00
(2/2): samba-winbind-3.5.4-68.el6.i686.rpm | 3.5 MB 00:00
--------------------------------------------------------------------------------
Total 6.4 MB/s | 8.5 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : samba-winbind-3.5.4-68.el6.i686 1/2
Installing : samba-3.5.4-68.el6.i686 2/2

Installed:
samba.i686 0:3.5.4-68.el6 samba-winbind.i686 0:3.5.4-68.el6
Complete!
[root@server1 ~]#vi /etc/samba/smb.conf
:se nu
Line No. 74
workgroup = MYGROUP

change this line as follow
workgroup = workgroup

Line No. 289
Add this lines
[Kavi]
comment = sam ram
path = /kavi
public = yes
writable = yes
printable =no


:wq!
[root@server1 ~]# useradd u1
[root@server1 ~]# passwd u1
Changing password for user u1.
New password: * * * * * (u1)
BAD PASSWORD: it is WAY too short
BAD PASSWORD: is too simple
Retype new password: * * * * *(u1)
passwd: all authentication tokens updated successfully.


Adding normal user has samba user.
[root@server1 ~]# smbpasswd  -a u1
New SMB password:* * * * * (u1@123)
Retype new SMB password:* * * * *(u1@123)
Added user u1.

enabling u1 user has samba user.
[root@server1 ~]# smbpasswd  -e u1
[root@server1 ~]# servicesmb restart
Shutting down SMB services: [ FAILED ]
Starting SMB services: [ OK ]
[root@server1 ~]#chkconfig--level 35 smb on

1.Configurations Samba Client (on windows).
Go to Start-Run-\\200.0.0.1\
type username and password
username - u1
password - *****(u1@123)

Now your are able to access kavi directory and files from it & user u1 home directory as well.

2. Configurations Samba Server without sharing samba user’s home directory.
To hide home directory of Samba User
[root@server1 ~]#vi /etc/samba/smb.conf
:se nu

Line No . 248
[homes]
comment = Home Directories
browesable = no
; valid users = %S
; valid users = MYDOMAIN\%S

Modify this line as follow
;[homes]
; comment = Home Directories
; browesable = no
; valid users = %S
; valid users = MYDOMAIN\%S


:wq!
[root@server1 ~]# servicesmb restart
Shutting down SMB services: [ OK ]
Starting SMB services: [ OK ]

2.Configurations Samba Client (on windows).



Go to Start-Run-\\200.0.0.1\
type username and password
username - u1
password - *****

Now your are able to see user’s home directory of user u1.

25 comments:

  1. Believe in yourself! Have faith in your abilities! Without a humble but reasonable confidence in your own powers you cannot be successful or happy. See the link below for more info.

    #without
    www.mocsbar.com

    ReplyDelete
  2. If you would like to get a good deal from this article then you have to apply such methods to your won website.
    healthetarians.com |

    ReplyDelete
  3. I just read your blog and get the information which searching everywhere. Now it’s become on my top preference of reading for acquiring the updates without hassle.
    www.travelwestours.com |

    ReplyDelete
  4. This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.
    technews404.com |

    ReplyDelete
  5. This is very interesting news website running 24 hours a day to keep their viewer updated all the time. 
    ahome4hope.com |

    ReplyDelete
  6. Thanks for the information! Now I know what i will do the next time i travel. Looking forward to go to Thailand later this year! Thanks for some pointers!
    http://www.auto-sprzedam.com |

    ReplyDelete
  7. Hello, i am glad to read the whole content of this blog and am very excited and happy to say that the webmaster has done a very good job here to put all the information content and information at one place.
    autodetailersplus |

    ReplyDelete
  8. Thanks for taking the time to discuss this, I feel about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.
    studentsfirstmi.com |

    ReplyDelete
  9. I just read your blog and get the information which searching everywhere. Now it’s become on my top preference of reading for acquiring the updates without hassle.
    http://www.hometaxinfo.com |

    ReplyDelete
  10. Hello, I enjoy reading all of your post. I wanted to write a little comment to support you.
    Real Exterior |

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X