How to set up Samba service under Linux

zhaozj2021-02-17  67

Recently, the WINDOWS2000 Server of the department is getting slower and slower. Under the influence of its machine performance and viruses, the file sharing and printer sharing feature it provides is really unable to meet the daily work of our R & D team. So I decisively built a Linux 7.0 server, which will transfer the information, after three days of debugging (people who are stupid), finally let it run normal. Now this server provides the following services:

01 Telnet

02 ftp

03 http

04 Files Share

05 Printer Share

06 Webmin

The most important of these services is the configuration of the Files Share and Printer Share, and these services are user authentication functions, that is, Windows2000 users can only enter the correct username and crate to access these resources. They are implemented by Samba services under Linux. Next, I will tell you how to implement the above functions.

/ * Establish a printer and file sharing root directory and let everyone have access to their permissions. * / MKDIR / Home / PrintMkdir / Home / SharechMod 777 / Home / PrintChmod 777 / Home / Share

/ * Start GNOME or KDE, execute this program, install with a local parallel printer. * / StartXprintTool

/ * Establish an account for each user who needs to access this machine. * / userconf

/ * Edit the Samba configuration file, in which the specific meaning is queried. * / vi /etc/samba/smb.conf

[Global] workgroup = SECURITIESserver string = Securities Division Linux servers netbios name = LINUX; guest account = nobodylog file = /var/log/samba/log.%msecurity = userencrypt passwords = yessmb passwd file = / etc / samba / smbpasswdprinting = lprng

[homes] comment = home directoriespath =% hbrowseable = noritable = yesguest account =% uguest ok = yes

[Share] Comment = Share DocumentPath = / Home / ShareWritable = YESforce User = NobodyForce Group = Nobody

[HP LaserJet 6L] path = / home / printprinter = lpwritable = yescomment = linux networkprintable = yesguest ok = yespublic = yes

/ * Create an account for Samba and the corresponding password, this account must be that the system already exists, the password is unity. * / SMBPASSWD -A $ UserName $

/ * In the startup service, run these services when the system starts: Netfs, LPD, SMB. * / setup

/ * Restart the machine and make the service take effect. * / Reboot

The above is the whole process of configuring Samba services. When Windows2000 accesses the service, if the Windows2000 user is configured with the password and the SMBPasswd configuration, this workstation can directly access the resources on the server. If not the same, you must enter the user password before access.

转载请注明原文地址:https://www.9cbs.com/read-30210.html

New Post(0)