欢迎分享,转载请注明来源:内存溢出
您好,samba匿名登录名密码的设置非常重要,因为它可以保护您的网络安全。要设置samba匿名登录名密码,您需要打开samba服务器的配置文件,然后在其中添加一行:guest account = username,其中username是您要设置的匿名登录名。接下来,您需要在samba服务器的配置文件中添加一行:guest password = password,其中password是您要设置的匿名登录密码。最后,您需要重启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 ]
赞
(0)
打赏
微信扫一扫
支付宝扫一扫
怎么设置时间日期在手机桌面上
上一篇
2023-05-19
如何用vc在mfc工具栏中增加新的按钮
下一篇
2023-05-19
评论列表(0条)