1. Create users, directories and installation packages
yum install samba smbfs
useradd -s /sbin/nologin yunwei
smbpasswd -a yunwei
mkdir -p /date/yunwei
chmod 777 /data/yunwei
2. Configuration file
cp /etc/samba/smb.conf /etc/samba/smb.confbak
vi /etc/samba/smb.conf
[homes]
comment = Home Directories
valid users = %S
browseable = No
writable = yes
create mode = 0664
directory mode = 0775
[yunwei]
comment = yunwei
path = /data/yunwei
public = no
valid users = @yunwei
write list = yunwei
printable = no
3. Start the service
Red Hat Enterprise Linux Server release 6.4 (Santiago)
/etc/init.d/smb start
service smb reload
linux 7
systemctl start smb
systemctl status smb
4. Test the use of
windows => run =>
\\ip\yunwei
Similar Posts:
- Add Samba user prompt failed to add entry for user
- Solution to Samba inaccessibility caused by CentOS turning on SELinux
- centos ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- Docker Container Error:Failed to get D-Bus connection: Operation not permitted
- Raspberry pie: How to Solve Mongodb installation error
- [Solved] Mariadb Start Error: Could not increase number of max_open_files to more than 1024 (request: 5035)
- Solve the problem of “Please provide a valid cache path” in Laravel/Lumen
- How to Solve ipvsadm startup Error: Failed to start Initialise the Linux Virtual Server.
- [Solved] Failed to start LSB: Bring up/down networking.
- After installing mysql, centos7 can’t start the service, and prompts unit not found