|
正在学习配置samba服务器,smb.conf里面的[home]部分没有更改。在系统中添加了一个用户shooter并且用 smbpasswd将该用户添加到samba服务器用户中,在/home目录中可以看到shooter文件夹,将用户切换到shooter登陆系统后可以在home中读写文件。
smb.conf的配置如下:
[global]
workgroup = MYGROUP
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[opt]
path = /opt
valid users = shooter
[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
[fredsprn]
comment = Fred's Printer
path = /homes/fred
valid users = fred
printable = Yes
printer name = freds_printer
配置完成后重启smb服务,之后用smbclient登陆:
[root@nids home]# smbclient //192.168.1.230/shooter -U shooter
Password:
Domain=[NIDS] OS=[Unix] Server=[Samba 3.0.23c-2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
出现以上报错
查看log日志显示如下:
[2008/08/13 00:56:27, 0] smbd/service.c:make_connection_snum(911)
'/home/shooter' does not exist or permission denied when connecting to [shooter] Error was Permission denied
请知道问题出在哪里的大哥帮忙解决一下,谢谢了 |
|