1.原来的配置
[dev]leef@192.168.155.7:~$ cat /etc/samba/smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMbaserver string = Sambaserver Version %v
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
wirtable = yes
create mode = 0664
directory mode = 0775
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[myshare]
comment = share for users
browseable = yes
writable = yes
path = /data/home/myshare
public = no
2.查看当前的用户
pdbedit -L
3.追加用户名
pdbedit -a newname
4.文件记录
/etc/samba/smb.conf /etc/passwd /etc/group /etc/gshadow /etc/shadow /etc/sudoers



