To access Linux through Windows, you can build the samba service and share the directory process: Install sudoapt-getinstallsambasudoapt-getinstallsmbfs on Ubuntu.
To access Linux in Windows, you can set up the samba service to share directories.
Process:
Install sudo apt-get install samba on Ubuntu
Sudo apt-get install smbfs
Sudo apt-get install smbclient
Edit sudo vi/etc/samba/smb. conf
Modification:
# Change this to the workgroup/NT-domain name your Samba server will part
Doc charset = UTF-8
Unix charset = UTF-8
Workgroup = WORKGROUP
Netbios name = user_name.wingtech.com
# "Security = user" is always a good idea. This will require a Unix account
# In this server for every user accessing the server. See
#/Usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# In the samba-doc package for details.
Security = user
Default shared/home/user_name folder
To share/home/share, add the following:
[Share]
Comment = this is linux share directory
Path =/home/share
Browseable = yes
Public = yes
Writable = yes
Change the user name and group name of the directory to user_name.
Sudo chown user_name/home/share
Sudo chgrp user_name/home/share
Create account sudo smbpasswd-a user_name
Restart the samba service: sudo service smbd restart
In this case, you can access the/home/user_name and/home/share folders in windows.
You can try net use \ IP */user: user_name; and prompt to enter the password, enter the password, and prompt that the command is successfully completed to prove that it can be shared.