[Linux] installing samba

Source: Internet
Author: User
Install Samba 1. RPM Installation Package 1. First, verify that samba ==================== has been installed on your machine. ============== rpm-Qa | grep samba, if the following prompt appears, Samba has been installed with the samba-client-2.2.8a-13mdksamba-common-2.2.8a-13mdksamba-server-2.2.8a-13mdk2, if the service exists, stop the service before uninstalling # service SMB stoprpm-e samba-server-2.2.8a-13mdkrpm-e samba-common-2.2.8a-13mdkrpm-e samba-client-2.2.8a-13mdk if there is not enough space to delete the log CD var/logrm-RF * 3. Install the rpm-IVH samba-winbind-2.2.8a-13mdk.i586.rpm or # rpm-IVH samba *. rpm-nodeps-force ======================================== 2, source code installation and download package, mkdir/home/Kingsoft/sambacd/home/Kingsoft/sambatar zxvf samba-3.5.5.tar.gz # find the path of the configure file find. -Name configure # configure: Enter the directory CD. /samba-3.5.5/source3./configuremake & make install4. Modify/etc/samba/smb. conf [public] Path =/usr/somewhere/else/Public = Yes valid user = Kingsoft writable = Yes printable = no5. Start the service to add Linux users: Groupadd users Useradd AA-G users Passwd AA delete user: VI/etc/smbpasswd added SMB User: smbpasswd-A Aa if the directory permission is incorrect: Id AA Change owner: chown AA: users/usr/somewhere/else/Public Or change the permission: chmod 777 aaservice SMB start or service SMB restart or #/etc/rc. d/init. d/SMB start6. View swap space free. view disk space DF modify swap dd If =/dev/Zero of = tmpswap BS = 1 k count = 1500000 chmod 600 tmpswapmkswap tmpswapswapon tmpswapa. switch to root user B. run Swapon tmpswapc in the/home/xmission directory. modify the/etc/rc file:/sbin/Swapon/home/xmission/tmpswapd. use the xmission user to start gameserver (Linux) and above. In actual use, the xmission user must be replaced with the corresponding user. 7. search for the installation path whereis sambasamba to share Chinese file names with garbled characters. Solution: Open SMB. add conf: Display charset = cp936 UNIX charset = cp936 dos charset = cp936 restart the samba service and you will be OK. The easiest way to set the samba service to start itself is as follows: chkconfig -- level 2345 SMB on

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.