在共享的时候出现net usershare 返回错误 255:unknown parameter encountered:"password level"这种问题,求各位大神赐教解决方法!
楼主这是要配置samba共享给windows吗,直接在shell上操作呗
修改
/etc/samba/smb.conf
配置你要共享的目录就可以
/etc/samba/smb.conf
[global]
workgroup = SAMBA
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
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 = root
create mask = 0664
directory mask = 0775
[usr]
path=/home/usr
browseable = yes
writable = yes
valid users = usr