[英]opensuse samba client connect to windows server
A opensuse 13.1 with samba client installed (which was in the OS installation disk). 一个已安装samba客户端的opensuse 13.1(位于操作系统安装盘中)。 The machine has IP address but does not have DNS name registered.
本机具有IP地址,但未注册DNS名称。 But when using "smbclient //myserver/myshare -A smbpw" then I got Error NT_STATUS_UNSUCCESSFUL.
但是,当使用“ smbclient /// myserver / myshare -A smbpw”时,出现错误NT_STATUS_UNSUCCESSFUL。
In order to access Windows Server, do I have to configure samba client? 为了访问Windows Server,我是否必须配置samba客户端? if so, what steps do I have to do?
如果是,我该怎么做? I am new to samba and system admin of linux, any help will be appreciated.
我是samba和linux系统管理员的新手,将不胜感激。
Thanks 谢谢
I think you have to specify the domain/workgroup: 我认为您必须指定域/工作组:
smbclient -W mydomain -U myusername //myserver/myshare
It seems that the domain entry in the samba authfile is ignored. 似乎samba authfile中的域条目被忽略了。
What works for me is: 对我有用的是:
$ cat authfile
username=mydomain\myuser
password=mysecrete
$ chmod 600 authfile
$ smbclient -A authfile //myserver/myshare
Domain=[mydomain] OS=[myos] Server=[myproduct]
smb: \>
What also works: 什么也可以:
$ cat authfile
username=myuser
password=mysecrete
$ chmod 600 authfile
$ smbclient -W mydomain -A authfile //myserver/myshare
Domain=[mydomain] OS=[myos] Server=[myproduct]
smb: \>
Does not work: 不起作用:
$ cat authfile
username=myuser
password=mysecrete
domain=mydomain
$ chmod 600 authfile
$ smbclient -A authfile //myserver/myshare
session setup failed: NT_STATUS_LOGON_FAILURE
smb: \>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.