Linux中配置samba服务器

 

1 install samba
  yum install samba
 
2 edit /etc/samba/smb.conf to add the folder you want to share.
  vi /etc/samba/smb.conf
 
  [usr]
 path = /usr
 writeable = yes
; browseable = yes
 valid users = root

3 start samba once root
  chkconfig --level 5 smb
 
4 add user for samba
  smbpasswd -a root
 
5 close the SELinux
  vi /etc/selinux/config
  disable:
  #SELINUX=enforcing
  add a new line:
  SELINUX=disabled

6 root system ...

你可能感兴趣的:(linux,服务器,user,System,Path)