Add your existing users to samba or create new users and then add them to samba.
1. 添加新的用户
[root@server2 samba]# smbpasswd –a agustin
New SMB password: ********
Retype new SMB password:********
或者可以直接写配置文件 /etc/samba/smb.conf
[qemu]
comment = guest host share
path = /media/System/music/
read only = no
public = yes
2. 重启服务
restart samber service:
/etc/rc.d/init.d/smb restart
more reference
http://www.reallylinux.com/docs/sambaserver.shtml
3. 改变密码
smbpassword username
4. 显示某用户是否在smb 用户列表中
pdbedit --list --smbpasswd-style | grep "wyang2"
本文详细介绍了如何在Samba服务器上添加新用户、修改密码、查看用户列表,并通过配置文件进行权限设置。操作步骤清晰,适合Samba服务器初学者使用。

3129

被折叠的 条评论
为什么被折叠?



