在linux系统上如何创建samba账号?
展开全部
1)建一个系统用户\x0d\x0a\x0d\x0a[root@linux samba]# useradd samba (建一个名叫samba的用户)\x0d\x0a[root@linux samba]# passwd samba (给samba用户添加密码)\x0d\x0aChanging password for user samba.\x0d\x0aNew password: (密码要六位以上,不显示在屏幕上)\x0d\x0aBAD PASSWORD: it does not contain enough DIFFERENT characters\x0d\x0aRetype new password: (确认密码)\x0d\x0apasswd: all authentication tokens updated successfully.\x0d\x0a\x0d\x0a2)然后创建samba帐户\x0d\x0a\x0d\x0a[root@linux samba]# smbpasswd -a samba \x0d\x0a(-a必须加,为了生成密码文件smbpasswd,该密码是windows登陆Linux的samba用户密码)\x0d\x0aNew SMB password:\x0d\x0aRetype new SMB password:\x0d\x0aunable to open passdb database.\x0d\x0aAdded user samba.\x0d\x0a\x0d\x0a3)查看一下生成的用户名、密码\x0d\x0a\x0d\x0a[root@linux samba]# vi /etc/samba/smbpasswd\x0d\x0asamba:500:A9C604D244C4E99DAAD3B435B51404EE:ACB98FD0478427CD18949050C5E87B47:[UX ]:LCT-468268E6:\x0d\x0a\x0d\x0a4)重新启动samba服务\x0d\x0a\x0d\x0a[root@linux samba]# service smb restart\x0d\x0aShutting down SMB services: [ OK ]\x0d\x0aShutting down NMB services: [ OK ]\x0d\x0aStarting SMB services: [ OK ]\x0d\x0aStarting NMB services: [ OK ]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询