Install :#yum-y install samba (if there is NO smb in fedora packages)
.............#rpm-ivh (if there is smb in fedora packages)
Check Status : #rpm-q samba
Up service :#/sbin/service smb status-check status
.....................#/sbin/service smb start-start status
.....................#/sbin/service smb restart -restart status
.....................#/sbin/service smb stop- stop status
Configuration File : vim /etc/samba/smb.conf
Parameter : security=share | user| server
.................................(security=share; no need smbpassword)
Create share folder:
..............................[demo]
..............................Path= /demo
..............................Writable=yes
..............................Browseable=yes
..............................Public=yes
Restart samba : service smb restart
Additional info :
.Selinux turn off #vim/etc/selinux/config (selinux disable)
.Iptables #service iptables stop
.Give user authority :#mkdir /demo
.....................................#chmod-R 777 /demo (full access)
.create user account& samba password : # /usr/sbin/adduser demo
.....................................passwd demo
....................................#smbpasswd -a demo (restart samba)
.Uninstall samba : yum uninstall samba
.................................rpm -e samba
Nazra Info :
rpm -ivh samba -install samba
rpm -q -check status
vim /etc/samba/smb.conf -configure samba
setting security
[xyz]
path = /xyz
writeable = yes
browseable = yes
esc=utk kuar
wq= utk kluar dr coding
mkdir /xyz
chmod 777 /xyz
/usr/sbin/adduser insep
password insep
(insep)
smb passwd -a insep
(insep)
/sbin/secure/smb restart
setup-system tools (seLINUX management disable permissive)
No comments:
Post a Comment