setup and test samba server
来源:互联网 发布:淘宝客服表格 编辑:程序博客网 时间:2024/04/27 22:42
Configuration
/etc/samba/smb.conf You knew it. Only security and [homes] are not default, the others are default. In this configuration, all the \\server\\username can be accessed.
[global] workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %dsecurity = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user[homes] comment = %U Home Directories browseable = Yes read only = no create mask = 0660 directory mask = 0700 valid users = %SFor other user(not the user created during the OS installation but created with user add)
We still need to sudo smbpasswd -a <username>
Could we use unix user dirctly?
Show smbpwd users
$ sudo pdbedit -Lw
Test samba
Linux command line
smbclient -L <IP> -U guest -N #list
smbclient -L <IP> -U <username> #list
smbclient \\<IP>\<username> -U <username> # login
Mount for current user
sudo apt-get install cifs-utils
sudo mount.cifs -o username=<samba username>,uid=${USER} //<samba server>/directory/ /<local directory>
Windows
You may get 'Multiple connections' or 'disconnect previous connections' error in windows
rem list the connections
net use
rem remove all the connections
net use * /delete
usershare
Allow non-root/sudoers to create shares
0 0
- setup and test samba server
- NFS Server and Yum Repository Setup
- Setup SSH and SVN on Windows Server
- Demo and Test Setup Guide - OFBiz Project Administration Workspac
- Samba Server possible problem and solving
- Setup and Configure SMTP Server on Windows Server 2012
- SETUP&CONFIG Samba
- Ubuntu Samba Setup
- How to setup a GIT server with gitosis and gitweb
- 【samba错误】Receiving SMB: Server stopped responding session setup failed 已解决
- setup django 4 test
- Samba server
- Samba Server
- Advanced Unit Testing, Part IV - Fixture Setup/Teardown, Test Repetition And Performance Tests
- How to setup a test/dev Datazen Server instance in Microsoft Azure
- Setup failed to configure the server. Refer to the server error logs and setup error logs for more i
- Install and setup MediaWiki
- Mediawiki setup and extension
- 3Sum
- 文章好些吗
- “是啊,不是姓朱的那种败类就好,
- c# 接口IComparer<T>
- 特别是要钱没钱呐,真是酸的一无是处,心底不禁自卑起来。
- setup and test samba server
- 好想抱着你睡觉
- [Gevent]gevent 网络抓取小测试
- 13点,你懂的
- 图 - 图的存储结构 - 邻接矩阵表示法
- 我打我打我打
- [1] 算法之路 - 选择排序
- lisa素材
- uva 1356 - Bridge(积分+二分)