Sudoapt-getinstallsambasmbfs #### graphic interface ### sudoapt-getinstallsystem-config-sambamkdir/home/flexitime/unzip chmod755/home/flexitime/sharesudocp/etc/samba/smb. conf/etc/samba/smb. conf.
Sudo apt-get install samba smbfs
#### Graphical interface
### Sudo apt-get install system-config-samba
Mkdir/home/flexitime/share
Chmod 755/home/flexitime/share
Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf. bak
Sudo nano/etc/samba/smb. conf
----------------------------
Find the Keyword:
# Security = user
Replace:
# By flexitime
Security = user
Username map =/etc/samba/smbusers
# Add at the end of the file
# By flexitime
### This is read-only
[Iso]
Comment = Shared Folder with username and password
Path =/stgb
Read only = yes
Create mask = 0755
Directory mask = 0755
### This is writable.
[Stgb]
Comment = Shared Folder with username and password
Path =/stgb
Writeable = yes
Read only = no
Create mask = 0777
Directory mask = 0777
Valid users = flexitime
###################
Change the value here by the way. Find [global] and change workgroup = MSHOME
Workgroup = WORKGROUP
Displays charset = UTF-8
Unix charset = UTF-8
Dos charset = cp936
####################
########
------------------
Sudo useradd wuser
Sudo smbpasswd-a wuser
// By delete user: sudo smbpasswd-x wuser
Sudo nano/etc/samba/smbusers
---------------------
# By flexitime
Wuser = "windows user"
Fleiximte = ""
---------------------
Sudo testparm
Sudo service smbd restart