Start SWAT Settings SMB.conf
Add a SWAT service name mapping port
Add SWAT port in / etc / services
#vi / etc / services
SWAT 901 / TCP
Set /etc/inetd.conf
Add below /etc/inetd.conf
Swat stream tcp noAit.400 root / usr / local / samba / bin / swat swat
If you want to make changes to take effect, you must use the following steps to restart the inetd service:
# ps -eaf | GREP inetd
Root 149 1 0 19:56:16? 0:01 / usr / sbin / inetd -s
# kill -hup 149
#
Then you can access SWAT with URL HTTP: // Ultar60: 901 or http://192.168.0.11:901
Note: You need to set up the root user. Ordinary users cannot set it.
Third, start the Samba server when booting
Enter 'NTSYSV' - select 'SMB' - OK.
Fourth, set the Samba password file
Method 1. Convert the passwd file to the SMBPASSWD file.
Since the Samba server is used by different password files, the ROOT login system is required, and the following command is executed, and the passwd password file is converted into Samba's password file.
CAT / etc / passwd | mksmbpasswd.sh> / etc / samba / smbpasswd: This command converts the passwd file to the SMBPASSWD file (/ etc / samba / smbpasswd).
CHMOD 600 / etc / samba / smbpasswd: Modify the SMBPasswd file to prevent being stolen.
SMBPASSWD JACK: Sets the password for the Samba server for each user.
Method 2: Add Samba users directly using the SMBPasswd command.
SMBPASSWD -A TODAYHERO: Means to add new users Todayhero for Samba servers, but new users must already be users with Linux systems to use this command.