Tuesday, December 28, 2010

Install Secure Samba (File Server) on Centos

Quick and easy way

Install Secure Samba (File Server)


The first step is to install the samba package. From a terminal prompt enter:

yum install smb*

Starting, restarting and stopping the Samba server:

[root@server root]# service smb start
[root@server root]# service smb restart
[root@server root]# service smb stop


-- Create User and passwrd -- i.e user will be user
Command : Fr. Terminal type useradd user -- will create UNIX user
passwd user -- will create Password for user USER
smbpasswd -a user -- will create samba user and passwd for user USER

-- Create shared folder
From terminal: mkdir folder_name -- will create a folder
chown user:user -- change ownership

Edit the /etc/smb.conf
Terminal: vi /etc/samba/smb.conf and add share for new shared folder.

Sample Configuration

comment = folder_name
path = /home/
read only = No
create mask = 0777
directory mask = 0777
writeable = yes
browseable = yes
valid users = user

--Restart samba, service smb restart.

4. To test, go to windows computer and map network driver of shared folder;( \\home\folder_name\ ). enter login name and password created when asked.

5.To map on linux workstation

- Right click mycomputer
- File Open then click connect to server
- Select Windows Share
- Share name -- Ip address
- Folder name


No comments:

Post a Comment


Check Page Rank of your Web site pages instantly:

This page rank checking tool is powered by Page Rank Checker service