Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just started with samba. What I want is a disk Z on windows machine located on a linux server. Now i am trying to access samba client from linux server.
Quote:
[cameraman@dev.linux]> smbclient \\\\dev.linux\\tmp
Server not using user level security and no password supplied.
Receiving SMB: Server stopped responding
tree connect failed: Call returned zero bytes (EOF)
[cameraman@dev.linux]> cat /etc/samba/smb.conf
[global]
workgroup = MSHOME
netbios name = dev.linux
hosts allow = mynote
security = user
did you give your users a samba password? you can do this by typing in smbpasswd <username>? That would be the first thing to try if you have not already.
did you give your users a samba password? you can do this by typing in smbpasswd <username>? That would be the first thing to try if you have not already.
I am having strange results with dev.linux vs localhost:
Quote:
[root@dev ~]# smbclient -L dev.linux
Password:
Receiving SMB: Server stopped responding
tree connect failed: Call returned zero bytes (EOF)
[root@dev ~]# smbclient -L localhost
Password:
Domain=[DEV.LINUX] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4]
Sharename Type Comment
--------- ---- -------
share1 Disk
share2 Disk
IPC$ IPC IPC Service (Samba 3.0.25b-0.el5.4)
Domain=[DEV.LINUX] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4]
Server Comment
--------- -------
Workgroup Master
--------- -------
MSHOME
[root@dev ~]# smbclient -L dev.linux
Password:
Receiving SMB: Server stopped responding
tree connect failed: Call returned zero bytes (EOF)
[root@dev ~]# smbclient \\\\localhost\\tmp -u root
session setup failed: NT_STATUS_LOGON_FAILURE
[root@dev ~]# smbclient \\\\localhost\\tmp
Password:
Domain=[DEV.LINUX] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@dev ~]# smbclient \\\\dev.linux\\tmp
Password:
Server not using user level security and no password supplied.
Receiving SMB: Server stopped responding
tree connect failed: Call returned zero bytes (EOF)
[root@dev ~]#
I am having strange results with dev.linux vs localhost:
Ok this is what happens when you deprive yourself of sleep. I forgot that you actually want to connect to the share name. so you need to replace tmp with share1.
try using dev.linux, I just have a habbit of refering to localhost when I am trying to connect to something that is local to the server that I am working on. Just remember that it should be
Code:
smblicent \\\\dev.linux\\share1 or share2
if you are getting any errors post them and we will get your working.
[root@dev ~]# smbclient \\\\dev.linux\\share1
Password:
Server not using user level security and no password supplied.
Receiving SMB: Server stopped responding
tree connect failed: Call returned zero bytes (EOF)
I even tryed using root samba password but the same error
I think it is because when you are connecting with the actual machine name it looks at it a little differently. So you will want to put a -u <username> after that so that it will prompt you for a user that is allowed access.
Try using this.
Code:
smbclient \\\\dev.linux\share1 -u <username>
substitute <username> for the user that your ran smbpasswd for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.