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

Mounting mode between Samba CentOS system and CentOS system

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

Share

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

Operating environment:

Two virtual machines, one with samba services installed and one with samba client installed.

-

Yum install samba*-y / / samba Service 192.168.80.100

Yum install samba-client-y / / samba client 192.168.80.101

Vi / etc/samba/smb.conf [database] comment = this is test file path = / opt/database public = yes read only = yes writable = yes write list = jack create mask = 0644 directory mask = 0777

Systemctl restart smb # restart the service

Smbclient-L / / 192.168.80.100-U tom

Yum install cifs-utils-y

[root@localhost] # mount-t cifs-- verbose-o username=tom,password=123 / / 192.168.80.100/database / opt/aamount.cifs kernel mount options: ip=192.168.80.100,unc=\\ 192.168.80.100\ database,user=tom,pass=*

Df-hT

If you can't create a file in the directory, enter it above 80.100.

Chmod 777 / opt/database because there is no permission, this command gives full permission to this directory.

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