linux set up a shared directory

Use windows can be very convenient for file directory sharing settings for linux system, you need to configure the smb service to complete sharing settings, no password to access a simple configuration steps are as follows:

1, install samba

yum -y install samba

Installation services over samba

2, modify the file sam.conf

sam.conf see under / etc / samba / directory, before the amendment is recommended that you keep a copy of the original file.

Once you've configured testparm command can be used to detect configuration file is correct:

Sam start or restart the service:

systemctl restart smb

You can use the following command to view the status of the service starts sam

systemctl status smb

3, access to the shared directory linux

 

If you can not access the server, please check the linux firewall settings.

Guess you like

Origin www.cnblogs.com/kingsonfu/p/12560099.html