Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Hey guys, I'm guessing this is quite a simple problem..
I've got a network set up wirelessly, and I can access all the windows computers from my Ubuntu desktop, see all their files etc. However, when I try to access my computer from a windows computer (\\PETESROOM), I get asked for a username and password. I've tried both logging in as my ubuntu user and as root, but I can't get in..
Have you used the command 'smbpasswd' to create a smb user and set the password for the smb user? If not, that is probably your problem. See man smbpasswd for use of this command. It has different functions depending if you are the root user or a regular user.
pete@PETESROOM:~$ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
Could not connect to machine 127.0.0.1: NT_STATUS_LOGON_FAILURE
Failed to change password for pete
From my experience access windows file shares on Linux, when you're prompted for username/password and the file share is on Windows, it's the Windows or Active Directory username and password you want to enter in.
So, check the file sharing and/or folder permissions on the Windows box, and see who you have authenticated to access the shares. If all else fails type in Administrator for the username and your windows admin password. Or if it AD, DomainName\username, and AD password.
The problem you're having is, it's not the Samba username and password your being prompted for, it's the windows credentials, being your file share would be on windows. The smbpasswd command only affects Samba users that you have on Samba shares on UNIX or Linux. So to make sense of it, remember Client authenticate > Server permissions/credentials.
* Read #General Notes
* Read #How to install Samba Server for files/folders sharing service
* To add network user
o Read #How to add/edit/delete system users
sudo smbpasswd -a system_username
gksudo gedit /etc/samba/smbusers
*
o Insert the following line into the new file
system_username = "network username"
the 'network username' should be w/e name you log on as
the above quote is from Ubuntu Guide which i highly recommend if you're gonna use that distro.
Could not connect to machine 127.0.0.1: NT_STATUS_LOGON_FAILURE
This is your local interface that is not up. As root, try to activate it. The command as root is
'ifconfig lo up' To see its status, just type 'ifconfig' and it will list the status of all interfaces.
After re-reading all posts, it is not clear if this is a windoze to linux logon issue, or is a linux to windoze logon issue. Could you clarify please.
From what I interpreted, you are connecting to a Windows box from Ubuntu, which involves either NTLM or Active Directory authentication.
However, on the other end of the spectrum, a Windows connecting to Linux involves Samba authentication, controlled by the smbusers file and smbpasswd command.
If it is Linux to Windows, as I previously mentioned, simply use your Windows username and password for that machine. If you don't want it to prompt for a password, you have to configure the File Share, to accept all users. This would work the same way whether it was Ubuntu or any other distro.
However you can set in the smbusers file for a samba username to associate to a windows username, which may be easier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.