[Linux]ubuntu下共享文件夹密码设置和重置-smbpasswd -a user
2015-12-17 19:41
501 查看
Windows 可以通过samba账号密码访问 Ubuntu 設置的共享目录。
设置账号密码和重置密码的方法如下:
以下是 使账号 champwang 失效:
去除添加的账号:
以下是 smbpasswd 的說明:
另外,介紹下 ubuntu 系統给 windlows 共享文件夹方法:
选中要共享的文件夹,
右键选properties,
在share 一栏,勾上"share this folder",
点击 Modify,
就可以进行文件夹的共享了。
[end_by_champwang]
设置账号密码和重置密码的方法如下:
sudo smbpasswd -a user New SMB password: Retype new SMB password:
以下是 使账号 champwang 失效:
$ sudo smbpasswd -d champwang [sudo] password for user: Disabled user champwang.
去除添加的账号:
$ sudo smbpasswd -x champwang Deleted user champwang.
以下是 smbpasswd 的說明:
$ smbpasswd -h When run by root: smbpasswd [options] [username] otherwise: smbpasswd [options] options: -L local mode (must be first option) -h print this usage message -s use stdin for password prompt -c smb.conf file Use the given path to the smb.conf file -D LEVEL debug level -r MACHINE remote machine -U USER remote username extra options when run by root or in local mode: -a add user -d disable user -e enable user -i interdomain trust account -m machine trust account -n set no password -W use stdin ldap admin password -w PASSWORD ldap admin password -x delete user -R ORDER name resolve order
另外,介紹下 ubuntu 系統给 windlows 共享文件夹方法:
选中要共享的文件夹,
右键选properties,
在share 一栏,勾上"share this folder",
点击 Modify,
就可以进行文件夹的共享了。
[end_by_champwang]
相关文章推荐
- linux用户、组管理
- Linux基础――系统分区
- Linux 软件看门狗 watchdog —— 开门放狗、定期喂狗、狗咬人了
- linux =>Ubuntu 14.04 安装 Sublime Text 3
- lINUX 去重输出
- linux系统关闭IPv6的方式
- Linux创建虚拟分区并挂载
- Linux读取PCI设备的信息
- linux下Qt程序编译运行
- python之Linux开发环境安装
- Linux一些重要的头文件
- Linux下Gcc生成和使用静态库和动态库详解
- linux中 OpenGL 出现 undefined reference to `gluLookAt' 报错
- CentOS6.5X86_64系统定制文档详细版
- Linux软件包管理器之rpm和yum详解
- Linux下配置hadoop2.2.0集群
- Linux根据进程名杀死进程
- linux 免用户密码登录
- 工作环境搭建(8) - CentOS7命令行安装Android SDK
- 王高利:Linux解决安装ossim(debian系列linux系统)出现firmware报错