Easy methods to Configure SAMBA on a Linux Server

Easy methods to Configure SAMBA on a Linux Server

Step By step information to configuring SAMBA on a LINUX server.

This is for network administrators with expertise configuring and administrating LINUX servers that want to know how to configure a SAMBA file server the suitable manner step by step.

On this step by step tutorial I am going to show you the right way to make a shared folder on a linux server and share it so users on Microsoft windows workstations can entry it on an area - internal network.

In this tutorial I am going to make the folder known as "shared folder" and permit all people access to the folder and printer networked to the Linux server.

It is a primary how you can information for configuring a samba workgroup file server. I will cover find out how to construct and configure a samba PDC - Main domain controller in one other tutorial for more experienced community administrators.

STEP 1 Open the samba configuration file using a unix textual content editor. I like NANO since it is vitally easy to use. Beneath are the commands I used to carry out this task.

[root@localhost ~] cd /etc [root@localhost etc] cd samba [root@localhost samba] nano smb.conf

Ok now we are within the smb.conf file Now delete all of the textual content in the configuration file. Now copy and paste the beneath text...after that is achieved hit the management and X buttons on your keyboard to exit out of the NANO text editor. Then hit the Y button and final hit the ENTER button. Now we're back to the command prompt and our samba configuration file is edited and saved.

[global] workgroup = workgroup server string = My Linux File Server hosts enable = 192.168. 127. log file = /var/log/samba/%m.log safety = consumer netbios identify = SAMBA SERVER encrypt passwords = sure smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[shared folder] remark = My House Listing browseable = yes writable = sure public = yes learn solely = no

[printers] path = /var/spool/samba public = yes guest okay = yes printable = yes browseable = sure writable = yes read only = no

STEP 2 We've got to create a user acct on the Linux server itself then we'll create a samba user on top of the Linux user acct.

[root@localhost ~] useradd chris [root@localhost ~] passwd chris Changing password for consumer chris. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. [root@localhost ~] smbpasswd -a chris New SMB password: Retype new SMB password: getsmbfilepwent: malformed password entry (no:) mod_smbfilepwd_entry: malformed password entry (no:) [root@localhost ~]

STEP three We have now to start the SAMBA service. It could already be started or it might not...so let's check and see.

[root@localhost ~] service smb standing smbd is stopped nmbd is stopped [root@localhost ~]

The samba service will not be operating so let's start it up

[root@localhost ~] service smb start smbd (pid 4267 4266) is running... nmbd (pid 4271) is running... [root@localhost ~]

Now let's verify the service is running

[root@localhost ~] service smb status smbd (pid 4267 4266) is running... nmbd (pid 4271) is running... [root@localhost ~]

STEP four reboot your home windows XP workstations then go to community "my network places" then go to "workgroup computers". You will see a computer there called "My Linux File Server". You'll be able to manually map a neighborhood drive letter to this folder or write a logon script the same as you'd connecting to a Microsoft file server - shared folder. Double click on that laptop and you will be prompted for a person identify and password. Use the user identify and password you choose in step 2 Now you will notice a folder referred to as "shared folder" You'll be able to copy and paste data to this folder just like it have been a home windows file server.

Free Host | new york lasik surgery | cpa website design