Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How OpenSUSE uses SAMBA to build the configuration of the server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces OpenSUSE how to use SAMBA to build the relevant configuration of the server, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.

The configuration of OpenSUSE using samba has three steps: one is to install samba;, the second is to edit / etc/samba/smb.conf file, the third is to start smbd; to establish system users and samba users, and to establish passwords and corresponding user operation directories.

OpenSUSE uses the configuration of samba

The content of the Global section has been modified as follows:

[global] workgroup = info printing = cups netbios name = data_shared server string = Info File Server hosts allow = 0.0.0.0 guest account = nobody guest ok = yes security = shared ldap suffix = passdb backend = smbpasswd password server = *

Add the following content by yourself:

[zhrmghl] comment = private directory path = / users/zmrhgl create mask = 0664 directory mask = 0775 writeable = yes valid users = @ user browseable = yes guest ok = yes inherit acls = Yes

As shown above, add other user-related content respectively.

The above zhrmghl users are added as follows:

Useradd-g user-d / users/-s / bin/false zhrmgl

Then add the password of smb:

Smbpasswd-a zhrmghl

If the password is empty

Smbpasswd-n zhrmghl

And then set up a corresponding directory for it.

Mkdir zhrmghl

Chown zhrmghl:user zhrmghl

Chmod 700 zhrmghl

Start smb, and I use

Pkill smbd

Pkill nmbd

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

OpenSUSE uses SAMBA disk configuration

Use yast to install quota.

Set the file system that needs to do the user / group disk quota

Edit the / etc/fstab file, restrict users, add usrquota, restrict groups, add grpquota.

Reload the file system with disk quota enabled:

Mount-o remount / users

Create a quota file for a disk quota-enabled file system

Quotacheck-guvm / users

Then two files, aquota.user and aquota.group, are automatically generated under the root directory of the / xjdzj_users file system

Create a quota file for a 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.

Thank you for reading this article carefully. I hope the article "OpenSUSE how to use SAMBA to build server configuration" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report