Firefox 16, a treat for developers http://t.co/cnd27CzT
Install SAMBA on Fedora17 and Centos 6.2
Question : Howto Install SAMBA on Fedora17 and Centos 6.x?
Answer:
1- To install the samba package,enter the following command:
yum install samba samba-client samba-common
2- Configure the samba service, so that, it will start automatically at boot time:
- Centos 6.2
chkconfig smb on chkconfig nmb on service smb start service nmb start
- Fedora 17
systemctl enable smb.service systemctl enable nmb.service systemctl start smb.service systemctl start nmb.service
3- Disable the SELinux:
nano /etc/selinux/config
Change SELinux from enforcing to disabled:
SELINUX=disabled
- Add these Iptables rules, so that samba will work perfectly:
iptables -I INPUT 4 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT iptables -I INPUT 5 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT iptables -I INPUT 6 -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT service iptables save
4- Now edit samba config file
nano /etc/samba/smb.conf
Add these lines, in your smb.conf file (or change it according to your requirement):
#======================= Global Settings ===================================== [global] workgroup = WORKGROUP security = share map to guest = bad user #============================ Share Definitions ============================== [MyShare] path = /samba/share browsable =yes writable = yes guest ok = yes read only = no
Save the smb.conf file and restart the service:
service smb restart service nmb restart
Change it, in such a way that everyone can read and write it(Check if it is allowed in your environment or not):
chmod -R 0777 /samba/share
4- Add and manage users and groups
Add a group in your CentOS server (in my case smbgrp):
groupadd smbgrp
Create a new share, set the permission on the share:
cd /samba/ mkdir secure chown -R unixmentest:smbgrp secure/ ls -l chmod -R 0770 secure/ ls -l
Add the user to the samba group and create samba password:
usermod -a -G smbgrp unixmentest smbpasswd -a unixmentest
Edit the smb.conf file:
nano /etc/samba/smb.conf
Add the newly created samba share in smb.conf file:
[Secure] path = /samba/secure valid users = @smbgrp guest ok = no writable = yes browsable = yes
Restart the samba service:
- For Centos
service smb restart service nmb restart
For Fedora
systemctl restart smb.service systemctl restart nmb.service
Enjoy
For questions please refer to our Q/A forum at : http://ask.unixmen.com
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Unix/Linux File Recognition. Did You Know? : Did you know that Unix and Linux has no concept of a file extension? What is a file name extension?
...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comment(s) |
Howto- Resolve nosound problem on Ubuntu 13.04 Raring Ringtail,12.10 and Older : Updated 05/04/2013 : One of the common issues facing Ubuntu users after installing or upgrading Ubun...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Recent Posts
Recent Posts
- Unix/Linux File Recognition. Did You Know?
- Migrate from MySQL to MariaDB in FreeBSD
- Connect Your Android Galaxy Tablet to Ubuntu via USB
- ElementaryOS Beta 1 and 2 Comparison and Review
- Introduction to the Linux Command Line
- A Secure Password
- Linux Kernel 3.10. It’s BIG!
- Monitoring Users Activity Using psacct or acct Tools in Linux
- Run Your Own Social Network Using elgg on RHEL / CentOS and Scientific Linux
- Getting Debian 7.0 ‘Wheezy’ Up and Running
Recent Comments

Maintained by
Anblik
.


















SK
| #
I am working on it. Stay tuned. Thanks for the comment.
adriana rizzati
| #
You are right, I saw them just now and they are awesome!
SK
| #
Thanks for the comment Abdullah. Stay tuned with us always.
Abdullah Musazai
| #
Thank you for such a great service you always do, hope you gain more power and more energy to work more & more
Dominik Bauer
| #
thx a lot!