install samba: sudo apt-get install samba
install smbclient: sudo apt-get install
install SMBFS: Sudo apt-get SMBFS
2, modify configuration file
sudo gedit /etc/samba/smb.conf edit smb.conf file
will; Change security user to security user, and then add
at the end of the configuration file
[ShareFiles]
comment = Shared Folder require password
path = /home/magic/share
public = yes
writable = yes
valid users = magic
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
browseable = yes
save and restart samba, Sudo /etc/init.d/samba restart
3, set user and password
sudo smbpasswd-a magic then I prompt for password.
4, finally under Windows online neighbor -> Right click – & gt; Map network drive
input folder box \\ IP address \ShareFiles, press the prompt to input username and password.
this article from the Linux community website (www.linuxidc.com), the original link: http://www.linuxidc.com/Linux/2011-09/42621.htm
p>
=============================================================
increases samba user prompt Failed to add entry for user
[root@ubuntu ~]# smbpasswd-a test
New SMB password:
Retype New SMB password:
Failed span> span> to span> span> add span> span> entry span> span> for span> span> user span> test. span> p>
Failed to add0 1 entry3 for4 5 user6
[root@ubuntu ~]# groupadd test-g 6000
/root @ ubuntu ~ # user span> add span> strong> test – u 6000 – g/sbin/nologin – 6000 – s d/dev/null p>
+ /span> + /span> + /span> + /span In order to increase the security of the system, the added system account should not be given to shell or designated directory. At that time, a folder should be created for the test account in /home directory, and only Test has access to read and write.
:
/root @ ubuntu ~ # mkdir strong>/home/test
/root @ ubuntu ~ # chown strong> – R test: test/home/test p>
[root@ubuntu ~]# chmod u+ RWX,g+ RWX,o-rwx /home/test
[root@ubuntu ~]# smbpasswd-a test
New SMB password:
Retype New SMB password:
Add span> Ed user span> test.
p>
problem solving from: http://hi.baidu.com/asxiaosi/item/5420d0f037bcff14fe35822e p>
Read More:
- Add samba user prompt Failed to add entry for user.
- “Failed to find entry for user…” appears when Linux uses samba
- “Failed to find entry for user…” appears when Samba is used
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- MySQL skip grant tables add user error 1290
- MySQL failed to add foreign key: SQL 1452 cannot add or update a child row:a foreign key constraint fails
- New user’s shell, delete prompt ^ H, up and down prompt ^ A ^ B, tab key is useless
- User CF itemcf collaborative filtering algorithm based on user and item
- Prompt SQL server error 15023 solution memo when modifying user mapping
- Vscode cannot write user settings. Open user settings, clear errors or warnings, and then type again
- [unity] [fairygui] [ilruntime] Hot update error prompt add automatic code glist.itemextender problem
- Failed to add /run/systemd/ask-password to directory watch: No space left on device?
- How to Fix Failed to add the host to the list of known hosts
- docker:Failed to add /run/systemd/ask-password to directory watch: No space left on device
- MySQL failed to add foreign key error 1452
- Altium designer failed to add class member problem
- QInotifyFileSystemWatcherEngine::addPaths: inotify_add_Watch failed: there is no space on the device
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- Error 1396 (HY000): Operation create user failed for ‘xxx’ @’xxx ‘
- How to Fix failed to Connect to MySQL at localhost:3306 with user root