In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about how to install samba in centos7, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Turn off the firewall
[root@localhost ~] # systemctl stop firewalld.service [root@localhost ~] # systemctl disable firewalld.service Removed symlink / etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.Removed symlink / etc/systemd/system/basic.target.wants/firewalld.service.1234 close selinux
[root@localhost] # cat / etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing-SELinux security policy is enforced.# permissive-SELinux prints warnings instead of enforcing.# disabled-No SELinux policy is loaded.# SELINUX=enforcingSELINUX=disabled# SELINUXTYPE= can take one of three two values:# targeted-Targeted processes are protected,# minimum-Modification of targeted policy. Only selected processes are protected. # mls-Multi Level Security protection.SELINUXTYPE=targeted1234567891011121314 installation
[root@localhost] # yum install samba# View [root@localhost] # rpm-qa | grep sambasamba-common-libs-4.8.3-4.el7.x86_64samba-libs-4.8.3-4.el7.x86_64samba-common-tools-4.8.3-4.el7.x86_64samba-common-4.8.3-4.el7.noarchsamba-client-libs-4.8.3-4.el7.x86_64samba-4.8.3-4.el7.x86 _ 64samba-client-4.8.3-4.el7.x86_6412345678910111213 installation package description
Samba-common-3.5.10-125.el6.x86_64 / / mainly provides the samba server settings file and settings file syntax checker testparmsamba-client-3.5.10-125.el6.x86_64 / / client software, when the linux host is used as the client Required tool instruction set samba-swat-3.5.10-125.el6.x86_64 / / samba server web configuration interface based on https protocol samba-3.5.10-125.el6.x86_64 / / server-side software, mainly provides samba server daemon, sharing documents, log rotation, boot default option 1234 configuration service
The / etc/samba directory will be generated after installation
# = Global Settings = = [global] #-Network Related Options-# # workgroup = NT-Domain-Name or Workgroup-Name Eg: MIDEARTH## server string is the equivalent of the NT Description field## netbios name can be used to specify a server name not tied to the hostnameworkgroup = WORKGROUP server string = Liuyunsheng Samba Server Version% v netbios name = Liuyunsheng-Samba #-- Logging Options- -# # Log File let you specify where to put logs and how to split them up.log file = / var/log/samba/log.%m #-- Standalone Server Options- -# # Scurity can be set to user Share (deprecated) or server (deprecated) security = user map to guest = Bad User # = = Share Definitions = = [public] comment = Public Stuff path = / home/test/testwriteable = yespublic = yes 123456789101112131415161718192021223242527293031323334353launch the smb service [root@localhost samba] # systemctl start smb [root@localhost samba] # systemctl status smb ● smb.service-Samba SMB Daemon Loaded: loaded (/ usr/lib/systemd/system/smb.service Disabled; vendor preset: disabled) Active: active (running) since Thu 2019-04-25 14:44:24 CST; 3s ago Docs: man:smbd (8) man:samba (7) man:smb.conf (5) Main PID: 22111 (smbd) Status: "smbd: ready to serve connections..." Memory: 8.3m CGroup: / system.slice/smb.service ├─ 22111 / usr/sbin/smbd-- foreground-- no-process-group ├─ 22115 / usr/sbin/smbd-- foreground-- no-process-group ├─ 22116 / usr/sbin/smbd-- foreground-- no-process-group └─ 22117 / usr/sbin/smbd-- foreground-- no-process-groupApr 25 14:44:24 localhost .localdomain systemd [1]: Starting Samba SMB Daemon...Apr 25 14:44:24 localhost.localdomain smbd [22111]: [2019-04-25 14:44:24.814732 0]. / lib/util/become_daemon.c:138 (daemon_ready) Apr 25 14:44:24 localhost.localdomain smbd [22111]: daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connectionsApr 25 14:44:24 localhost.localdomain systemd [1]: Started Samba SMB Daemon.12345678910111213141516171819202122 add account (additional account must be created by linux)
Directly adding user test will result in failure
[root@localhost share] # smbpasswd-a testUnknown parameter encountered: "map to guest" Ignoring unknown parameter "map to guest" New SMB password:Retype new SMB password:Failed to add entry for user test.123456 creates a linux account
[root@localhost share] # groupadd test-g 6000 [root@localhost share] # useradd test-u 6000-g 6000-s / sbin/nologin-d / dev/nulluseradd: warning: the home directory already exists.Not copying any file from skel directory into it.12345 create samba user
[root@localhost share] # smbpasswd-a testUnknown parameter encountered: "map to guest" Ignoring unknown parameter "map to guest" New SMB password:Retype new SMB password:Added user test.1234567 deletes samba users
[root@localhost samba] # smbpasswd-x testDeleted user test.1234 client accesses a shared directory
Enter\\ 19.6.6.192 in windows and then enter the set user name and password, and you can map the connected folder to a network drive, so you can directly operate more than 1234, that is, how to install samba in centos7. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.