0% found this document useful (0 votes)
56 views4 pages

Configure Samba Server: Samba RPM Is Required To Configure Samba Server. Check Them If Not Found Then Install

This document provides instructions for configuring a Samba server to share files with a Windows client. It describes installing Samba packages, configuring services and firewall settings on the Linux server, editing the smb.conf file to define a shared folder for a new user, adding the user to Samba, and verifying the setup by accessing the shared folder from the Windows client.

Uploaded by

Seravana Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views4 pages

Configure Samba Server: Samba RPM Is Required To Configure Samba Server. Check Them If Not Found Then Install

This document provides instructions for configuring a Samba server to share files with a Windows client. It describes installing Samba packages, configuring services and firewall settings on the Linux server, editing the smb.conf file to define a shared folder for a new user, adding the user to Samba, and verifying the setup by accessing the shared folder from the Windows client.

Uploaded by

Seravana Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Configure samba server

In this example we will configure a samba server and will transfer files from client side.For this example we are using two systems one linux server one window clients. per quest of samba server A linux server with ip address 192.168.0.254 and hostname Server A window client with ip address 192.168.0.2 and hostname Client2 Updated /etc/hosts file on linux system Running portmap and xinetd services Firewall should be off on server We have configured all these steps in our pervious article. We suggest you to review that article before start configuration of samba server. Once you have completed the necessary steps follow this guide. samba rpm is required to configure samba server. check them if not found then install

Now check smb, portmap, xinetd service in system service it should be on #setup Select System service from list [*]portmap [*]xinetd [*]smb

Now restart xinetd and portmap and smb service

To keep on these services after reboot on then via chkconfig command

After reboot verify their status. It must be in running condition

Create a normal user named vinita

now create /data directory and grant it full permission

open /etc/samba/smb.conf main samba configuration files By default name of workgroup is MYGROUP in smb.conf file. you can change it with desire name

our task is to share data folder for vinita user so go in the end of file and do editing as shown here in this image

save file with :wq and exit Now add vinita user to samba user

we have made necessary change now on smb service and check it status

if you already have on this service then restart it with service smb restart commands.

Client configuration for samba server


Go on windows system and ping samba server, change computer name to client2 and workgroup name to MYGROUP

reboot system after changing workgroup name After reboot open my network place here you can see samba server [ if not see then click on view workgroup computer in right pane, if still not see then use search button from tool bar and search computer samba server form ip ]

First try to login from user nikita she will not successes as nikita have not permission to login

Now login from user vinita [ give the password which you set with smbpasswd command ]

As you can see in image user vinita gets the /data folder which we share from samba server

Copy some window files in data folder

Check status on samba server


on samba server you can check runtime status of samba server to check it run smbstatus command

in output you see that one samba shared directory is used on window system

You might also like