Ubuntu how to access samba server without password

  

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.

Copyright © Windows knowledge All Rights Reserved