samba is the software that implements SMB protocol on Linux system. Many users don't know much about samba server. I don't know Ubuntu can access samba server without password. How to achieve it? Let's take a closer look at how to access the samba server without a password.
directory is assumed to be shared /var /wwwroot
SUMMARY sudo vim /etc/samba/smb.conf
modified file [gloab] The security =user is changed to security=share
Add the following line at the end of the file:
[share]
path=/var/wwwroot
available = yes
browseable = yes
public = yes
writable = yes
guest ok = yes
[global] Define global configuration , workgroup is used to define the working group, I believe that if you have installed the windows system, you will be familiar with this workgroup. Under normal circumstances, we need to change the MYGROUP here to WORKGROUP (windows default working group name).
security = user #This specifies the security level of samba. There are four levels of security:
share: Users do not need an account and password to log in to the samba server
user: the samba server providing the service is responsible for checking the account and password (default)
server: Checking accounts and passwords is handled by another windows or samba server
domain: Specify the windows domain control server to verify the user's account and password.
The default group of samba services installed in ubuntu is WORKGROUP, use the command test:
sudo smbclient -L //localhost/wwwroot
Tip:
WARNING: The security=share option is deprecated
Enter root’s password:
The password is not entered, just press Enter.
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.3]
Sharename Type Comment
——— —- — —-
print$ Disk Printer Drivers
wwwroot Disk
IPC$ IPC IPC Service (precise32 server (Samba, Ubuntu))
Domain= [WORKGROUP] OS=[Unix] Server=[Samba 3.6.3]
Server Comment
——— ——-
PRECISE32 precise32 server (Samba, Ubuntu)
Workgroup Master
——— ——-
WORKGROUP
You can see that wwwroot is already shared The disk is gone.
The above is the Ubuntu system to access the samba server without a password. If you feel that the password access is troublesome or does not remember the password, you can access the samba server through the method described in this article.
Ubuntu modified Locale to change the locale of the Linux system, but Ubuntu modifie
For a file system mounted on a Linux system, it is usually impossible to uninstall.
The computer cant shut down is the most troublesome thing. In Ubuntu system, someti
Some Linux users find that their SSH server has experienced 1 errors during the transfer when using
Ubuntu system apt command usage summary
How Linux uses the kill command to force a process to terminate
How to use make command in Linux
How Linux mounts iso yum source in virtual machine
How can Ubuntu users not use the sudo command?
Ubuntu tips for installing Visual Studio Code
Introduction to the syntax and parameters of the Linux system xlsclients command
How to openmp multithreaded programming on Linux system
Win7 system Application Data can not access how to do
Ways to let Win8 Calendar automatically sync Google Calendar
Windows operating system skills and tricks (middle)
Know the ten special files in the XP system
Case analysis of screen card, crash, etc. in full screen when playing video online
Win7 pure version shutdown and restart speed optimization method
How to set up Win10's latest DPI zoom technology? The
Win10 64-bit system prompts 0x80070643 error code solution
How does Win7 set the registry to improve boot speed?
Troubleshooting and countermeasures for win8 network connection failure