RHEL6.3Samba server installation configuration 1. install Samba package www.2cto.com # yum-yinstallsambasamba-clientsamba-commonsamba-winbindsamba-winbind-clients2, start, view Samba Server Status # servicesm...
RHEL6.3 Samba server installation configuration 1. install the Samba software package www.2cto.com # yum-y install samba-client samba-common samba-winbind-clients 2. start and view the Samba Server Status # service smb start # service smb status 3. set the Samba server to start at startup # chkconfig smb on # chkconfig -- list smbsmb 0: off 1: off 2: on 3: on 4: on 5: on 6: off 4. modify the smb configuration file on the Samba server. conf 4.1. backup source file # cp-p/etc/samba/smb. conf/etc/samba/smb. conf. orig 4.2, modified in [global] Character Set setting [global] unix charset = UTF-8 dos charset = GBK workgroup = SHAREGROUP 4.3, add the custom sharing module www.2cto.com [share] comment = RHEL6-Windows Sharepath =/home/sharewriteable at the end of the file = yes # whether to write browseable = yes # whether to browse create mode = 0777 # default directory mode = 0777 when creating a file # valid users = share # specify accessible to users 5. Add shared users # groupadd-g 1234 share-users # adduser-d/home/share-m-u 1234-g 1234-c "Samba demo user Accnt "share # ls-ld/home/sharedrwx ------. 4 share-users 4096 November 28 16:56/home/share www.2cto.com 6. map the newly added users to samba users with the same name, and set the samba password (this password is different from the system user password !!) # Smbpasswd-a shareNew SMB password: Retype new SMB password: Added user demo. # modify Samba user information use the pdbedit command: pdbedit-a username # Create a Samba user pdbedit-x username # Delete the Samba user pdbedit-L # List Samba users and read passdb. tdb database file pdbedit-Lv # List detailed information about the Samba user list pdbedit-c "[D]"-u username # suspend the Samba user account pdbedit-c "[]"- u username # Restore the Samba user's account and modify the Samba user share password: smbpasswd share # Add Linux users to Samba users first. 7. check configuration parameters # testpar M 8. configure SELinux Security parameter 8.1,/etc/selinux/config SELINUX = enforcing 8.2, and set the Security attributes of the folder and its content # semanage fcontext-a-t samba_assist_t "/home/share (/. *)? "# Restorecon-R-v/home/share PS: If the semanage command does not exist, you can use this command # yum-y install policycoreutils-python to install 8.3, enable Samba and Samba-client service ports on the firewall 9, and restart the Samba server service smb restart PS: you need to log out and log on again to log off the original user information and log on to the Samba service.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service