I am a lazy, when personal use Linux, just use the root user, and then knock ordinary users do not want to use the sudo command. Therefore, when using Linux in a virtual machine, I have a habit: the files in the / root folders through Samba file sharing with Windows.
In this article , I have introduced how to share the root user with the Win10 folder in a minimized version of CentOS6.5 (only the root user).
After use Ubuntu16.04, I simply deleted the average user, the root user directly. However, in a shared folder with the Win10 root user Shique encountered a problem: repeatedly modify some parameters or smb.conf configuration file can not be shared success. I do not want to get to the bottom of these configurations, the last direct copy CentOS6.5 in smb.conf configuration file over and finally get!
This configuration file as follows:
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
Writing this blog is mainly to facilitate their access to, and like-minded students can search this blog as a reference.