In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use Samba as a file server under Suse10". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use Samba as a file server under Suse10.
1. There are three steps in the configuration of Samba: the first is to install Samba;, the second is to edit / etc/Samba/smb.conf files, the third is to start smbd; to establish system users and Samba users, and to establish passwords and corresponding user operation directories.
The content of the Global section has been modified as follows:
[global]
Workgroup=info
Printing=cups
Netbiosname=data_shared
Serverstring=InfoFileServer
Hostsallow=0.0.0.0
Guestaccount=nobody
Guestok=yes
Security=shared
Ldapsuffix=
Passdbbackend=smbpasswd
Passwordserver=*
Add the following content by yourself:
[zhrmghl]
Comment= private directory
Path=/users/zmrhgl
Createmask=0664
Directorymask=0775
Writeable=yes
Validusers=@user
Browseable=yes
Guestok=yes
Inheritacls=Yes
As shown above, add other user-related content respectively.
The above zhrmghl users are added as follows:
Useradd-guser-d/users/-s/bin/falsezhrmgl
Then add the password of smb:
Smbpasswd-azhrmghl
If the password is empty
Smbpasswd-nzhrmghl
And then set up a corresponding directory for it.
Mkdirzhrmghl
Chownzhrmghl:userzhrmghl
Chmod700zhrmghl
Start samb, and I use
Pkillsmbd
Pkillnmbd
Smbd
Nmbd
Use netstat-an to view service port snooping.
Smbstatus to view Samba user usage and login
Testparm checks whether the smb.conf configuration is correct
2. Disk configuration
Use yast to install quota. Set the file system edit / etc/fstab file that needs to do user / group disk quota, restrict users, add usrquota, limit groups, add grpquota. Reload the file system with disk quota enabled:
Mount-oremount/users
Create a quota file for a disk quota-enabled file system
Quotacheck-guvm/users
Then two files are automatically generated under the root of the / xjdzj_users file system: aquota.user and aquota.group create quota files for the disk quota-enabled file system:
Quotaon-augv
View user quota
Quota-u user name
View a system quota
Repquota-ugv/users
After completion, through the machine test of WIN, it can be accessed normally, and the disk quota has achieved the expected goal. In this way, you learn to use Samba as a file server under Suse10.
At this point, I believe you have a deeper understanding of "how to use Samba to do a file server under Suse10". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.