Article title: SAMBA configuration method under LINUX8.0 (1 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Install and configure SAMBA in Linux8.0 (-)
Find the SAMBA-related file from the CD and execute
Rpm? Ivh samba-common-2.2.5-10
Rpm? Ivh samba-2.2.5-10
Rpm? Ivh samba-client-2.2.5-10
Run the vi smb. conf command in/etc/samba. edit the file as follows:
[Global]
Workgroup = cbaccess
Netbios name = Hello
Server string = Hello's Linux Server
Hosts allow = 192.168.7. 192.168.1. 192.168.2. 127.
Printcap name =/etc/printcap
Load printers = yes
Printing = bsd
Guest account = dragon
Log file =/var/log/samba/% m. log
Max log size = 50
Security = user
Encrypt passwords = yes
Smb passwd file =/etc/samba/smbpasswd
Unix password sync = yes
Passwd program =/usr/bin/passwd % u
Passwd chat = * New * password * % n \ n * Retype * new * password * % n \ n
Passwd: all * authentication * tokens * updated * successfully *
Pam password change = yes
Obey pam restrictions = yes
Socket option = TCP_NODELAY SO_RECVBUF = 8192 SO_SNDBUF = 8192
Interfaces = 192.168.7.148/24
Dns proxy = no
[Homes]
Comment = Hello's Home Directories
Browseable = no
Writable = yes
Valid users = % s
[Printers]
Comment = All Printers
Path =/var/spool/samba
Browseable = no
Guest OK = yes
Writable = no
Printable = yes
[Public]
Comment = Public Stuff
Path =/
Browseable = yes
Guest OK = yes
Public = yes
Writable = yes
Printable = no
Write list = @ staff
[Dragon]
Comment = Fred's Printer
Valid users = dragon
Path =/home/dragon
Printer = dragon_printer
Public = no
Writable = no
Printable = yes
After the configuration is complete, run chmod a + w to share the entire machine.
Cd/etc/rc. d/init. d
./Smb restart
Create a Linux user,
Useradd dragon
Passwd dragon
Smbpasswd? A dragon
Batch add
Cat/etc/passwd | mksmbpasswd. sh>/etc/samba/smbpasswd
/Usr/sbin/smbd? D
/Usr/sbin/nmbd? D
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