{"id":473,"date":"2010-07-26T18:36:31","date_gmt":"2010-07-26T18:36:31","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2010\/07\/26\/configure-your-redhat-centos-to-become-a-samba-server\/"},"modified":"2021-07-24T18:41:48","modified_gmt":"2021-07-24T18:41:48","slug":"configure-your-redhat-centos-to-become-a-samba-server","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Linux\/configure-your-redhat-centos-to-become-a-samba-server.html","title":{"rendered":"Build a Samba Server on Redhat \/ CentOS"},"content":{"rendered":"
Below shows you the basic steps in order to configure your Linux Redhat \/ CentOS server as a Samba server.<\/p>\n
Install and Configure <\/strong><\/p>\n Configure Users <\/strong><\/p>\n Restart Samba <\/strong><\/p>\n Map Drive<\/strong><\/p>\n You can now map your drive with the windows command prompt using the command :<\/p>\n Troubleshooting <\/strong><\/p>\n To see if the share is available you can run the following command :<\/p>\n Below shows you the basic steps in order to configure your Linux Redhat \/ CentOS server as a Samba server. Install and Configure yum install samba -ychkconfig –level 123 smb on cd \/etc\/sambamv smb.conf smb.conf.backupvi smb.confcat > \/etc\/samba\/smb.conf [paste the text below][global]workgroup = Workgroupnetbios name = SambaServerserver string = Samba Server %vlog file = \/var\/log\/samba\/log.%mencrypt … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"yoast_head":"\nyum install samba -y
chkconfig --level 123 smb on
cd \/etc\/samba
mv smb.conf smb.conf.backup
vi smb.conf
cat > \/etc\/samba\/smb.conf
[paste the text below]
[global]
workgroup = Workgroup
netbios name = SambaServerserver string = Samba Server %v
log file = \/var\/log\/samba\/log.%m
encrypt passwords = yes
max log size = 50
[data]
path = \/data
valid users = smbuser
read only = No<\/pre>\nadduser smbuser
passwd smbuser
smbpasswd -a smbuser [enter the same password as your smbuser unix account]<\/pre>\n\/etc\/init.d\/smb restart<\/pre>\n
C:\\Users\\admin>net use * \\\\[SAMBA SERVER IP]\\data \/user:smbuser [password] \/PERSISTENT:YES<\/pre>\n
[root@SambaServer ~]# smbclient -U smbuser -L \/\/[SAMBA SERVER IP]
Password:
Domain=[FILESERVER] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5]
Sharename Type Comment
--------- ---- -------
data Disk<\/strong>
IPC$ IPC IPC Service (Samba Server 3.0.33-3.29.el5_5)
Domain=[FILESERVER] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5]<\/pre>\n","protected":false},"excerpt":{"rendered":"