Smbd is a Samba server program. It can share files, printers, and other network resources for Windows-related client programs to access.SyntaxSmbd [-aDhoP] [-d Parameter description: -All connection records of a are added to the record file. -D -D when this parameter is used, smbd runs in the background as a service program. -H: displays help. -I -L -O overwrites the original record
The two services are relatively simple. If selinux = disabled during configuration, there is no difficulty.
Of course, if smbd_disable_trans = on
Ftpd_disable_trans = on is not difficult. I don't know if this is the right thing, but I personally
How to Use System-Config-Samba on Ubuntu 17.10
System-config-samba is a graphical interface used to manage samba sharing and users. In my previous tutorial, I explained how to set up the Samba server on Ubuntu 16.04 on the command line, but the Samba configuration file may confuse beginners. This tutorial will show you how to use the graphical tool (system-config-samba) to set up the Samba server. (Ubuntu 16.04 and Ubuntu 17.10 can be set according to this tutorial)
Install the Samba server on
The whole process is actually very simple. For the general steps, please refer to here:Samba enables file sharing between Ubuntu and windowsHttp://spiritfrog.iteye.com/blog/216768After reading this, I know that I just want to install samba-related stuff:
Sudo apt-Get install samba-client samba-common
You can install the samba service normally.After the installation is complete, find a folder, right-click and select "Share Option", and set the sharing, but an error occurs."Failed to execute the s
Author:You need to participate in the process of adding;From:Linuxsir. orgIntroduction:This article only talks about the most commonly used Linux and Windows Shared Files, mainly to guide new fingers. How to create the simplest Samba server and describe where to find a solution to the problem. The update is in progress. Thank you for your participation;
Directory
0. Prerequisites for setting up a Samba server;0.1 tools for viewing the file content and editing the file;0.2 related to files an
Author:You need to participate in the process of adding;From:Linuxsir. orgIntroduction:This article only talks about the most commonly used Linux and Windows Shared Files, mainly to guide new fingers. How to create the simplest Samba server and describe where to find a solution to the problem. The update is in progress. Thank you for your participation;
Directory
0. Prerequisites for setting up a Samba server;
0.1 tools for viewing the file content and editing the file;
0.2 related
/init. d/smb restart for all systems, the general method is to directly run smb and nmb; of course, you need to know the directory where smb and nmb are located; if it is a self-compiled Samba, you should know where you put Samba; [root @ localhost ~] #/Usr/sbin/smbd [root @ localhost ~] #/Usr/sbin/nmbd run the following command to check whether the server is running: [root @ localhost ~] # Pgrep smbd [root
Problem description:
1. An error occurred while starting SMB. The prompt is as follows:Bogon:/etc/samba # vi smb. confBogon:/etc/samba # service SMB restartShutting down Samba SMB daemon warning: Daemon not running. DoneStarting Samba SMB daemon doneBogon:/etc/samba # service SMB restartShutting down Samba SMB daemon warning: Daemon not running. DoneStarting Samba SMB daemon done
2. system logs are printed as follows:
Bogon:/etc/init. d # tail/var/log/messagesOct 15 21:07:46 bogon
nmb service: [OK]
What if it stops? Add stop after SMB; restart is restart
[root@localhost ~]# /etc/init.d/smb stop[root@localhost ~]# /etc/init.d/smb restart
For all systems, the common method is to run SMB and nmb directly. Of course, you need to know the directory where SMB and nmb are located. If Samba is compiled by yourself, you should know where you put Samba;
[root@localhost ~]# /usr/sbin/smbd[root@localhost ~]# /usr/sbin/nmbd
Run the follo
file, and mongodir.
(10) Startup Mode: samba can be started in daemon or inetd mode. We recommend using standalone mode. The following describes how to start samba:
(A) daemon (standalone) method:
Edit a STARTUP file named ex. sambadaemon, and then grant the execution permission chmod + x sambadaemon, and at rc. local file (usually/etc/rc. local or/etc/rc. d/rc. local). You can also directly write the content of the sambadaemon Startup File to rc. local file. The content of the sambadaemon Star
It's weird to start samba.
./smbd-d
./nmbd-d
Discovery process is in, but still cannot connect to Samba server
View LOG.SMBD
Check Log[2006/08/10 23:12:37, 0] Smbd/server.c:main (798)SMBD version 3.0.14a started.Copyright Andrew Tridgell and the Samba team 1992-2004[2006/08/10 23:12:37, 0] printing/pcap.c:pcap_cache_reload (149)Unable to open Printcap File/etc/p
Linux samba source code installation (non-RPM package)-Linux general technology-Linux technology and application information, the following is a detailed description. First, learn some basics.
The core of samba is the two daemon processes smbd and nmbd, which run continuously from the server to the stop. Full use of Smbd and nmbd
All configurations are saved in the smb. conf file. Smb. conf describes the ou
access is allowed. If this parameter is not set, anonymous access fails.
3. configure firewall policies
Vi/etc/sysconfig/iptables
vi /etc/sysconfig/iptables
1) add the samba Port
-A input-m state -- state NEW-m tcp-p tcp -- dport 139-j ACCEPT
-A input-m state -- state NEW-m tcp-p tcp -- dport 445-j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
2) restart the firewall service
Service iptables
resources.-u username: The user name to use when logging in. (Similar to-N, but more effective than-n!)-p Password: password used when logging in.-N: A login without a password, without prompting for a password.-H: Lists simple help information for the available switches. You want to install the shared file "\\comet\dir1" to the Directory "/mnt/comet" using the Login "Gugong" and the password "123"Smbmount \\\\comet\\dir1/mnt/comet-i comet-u gugong-p 123 3. Smbumount To remove the shared instal
Question 1:Saminfo3_for_guest: unable to locate Guest account [Nobody]!
I guess it was caused by the absence of the nobody user, so it was good to add the nobody user to the passwd file. (Note: the/etc/passwd file here is not available in Android. I manually added the file, and the records in it are also manually added. How to add the file, re-mount the system partition to RW. For example, run the Mount-O remount, RW/dev/block/mmcblk0p9 system command. Of course, you can also directly execute AD
. If you cannot access the shared folder, check the firewall configuration. Or is the smbd service started?
Restart the smbd service command:
sudo service smbd restart
View the status of smbd:
tone@ubuntu:/etc/init$ ps -e | grep smbd 5190 ? 00:00:00
Group shared by this Linux machine and the netbios name under this Working Group;
In general, in the RPM package system, if Samba is installed in the RPM package, you can generally start the Samba server in the following ways;
[Root @ localhost ~] #/Etc/init. d/smb start
Start the SMB service: [OK]
Start NMB service: [OK]
What if it stops? Add stop after smb; restart is restart
[Root @ localhost ~] #/Etc/init. d/smb stop
[Root @ localhost ~] #/Etc/init. d/smb restart
For all systems, the c
the user and password consistent with those in Linux. restart the computer and log on to the Linux server.
Execute netstat? A 192.168.7.148 (or host name)
Run
Smbclient? L // server
Smbclient \ server \ shared directory
Can access win9x resources, but cannot copy.
Create a directory/mnt/smb and execute
Smbmount \ server \ shared directory/mnt/smb
Attackers can access win9x resources and execute cp commands.
Smbumount/mnt/smb mount point failed.
If you want to see win9x after Linux is started, y
Samba Log Analysis
As the security level of file sharing increases, logs need to be recorded and audited in more and more cases. The configuration file of the Samba service in Linux is smb. conf. Many graphical configuration tools, such as Webmin, smbconftool, SWAT, and system-config-samba provided by RedHat, can simplify smb configuration for you. conf process, but these tools are not accurate enough to meet samba's needs. We have to understand the log structure of samba if there is no ready-ma
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.