[Samba] 回复: add user in samba server
水静流深
1248283536 at qq.com
Fri Feb 27 18:20:36 MST 2015
Here is my configuration file.
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = 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* .
security = user
guest ok = yes
map to guest = bad password
pam password change = yes
usershare allow guests = yes
[homes]
comment = Home Directories
browseable = yes
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[linuxsir]
path = /home/linuxsir
public = yes
writable = yes
printable = yes
guest ok=yes
create mask = 0777
------------------ 原始邮件 ------------------
发件人: "Rowland Penny";<rowlandpenny at googlemail.com>;
发送时间: 2015年2月27日(星期五) 晚上9:27
收件人: "samba"<samba at lists.samba.org>;
主题: Re: [Samba] add user in samba server
On 27/02/15 13:05, 水静流深 wrote:
> # smbpasswd -a linuxsir New SMB password: Retype new SMB password: # ls /etc/samba gdbcommands smb.conf smb.conf.bak smbpasswd # groups linuxsir linuxsir : linuxsir my_test_group1 root at debian:/home/debian# cat /etc/group root:x:0: sambashare:x:119: root at debian:/home/debian# # cat /etc/samba/smbpasswd
> I have add user linuxsir in samba with a password.
> 1.Why linuxsir is still not in the group sambashare?
> 2.Why is there nothing in the file /etc/samba/smbpasswd?
>
>
This could be because the standard samba password backend is now tdbsam,
but to confirm this, we need to see your smb.conf
Rowland
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list