LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Windows -> Ubuntu asks for Password.. (https://www.linuxquestions.org/questions/linux-networking-3/windows-ubuntu-asks-for-password-540197/)

RetepNamenots 03-24-2007 10:35 AM

Windows -> Ubuntu asks for Password..
 
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..

Please help!

Cheers.

camorri 03-24-2007 10:58 AM

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.

RetepNamenots 03-24-2007 11:10 AM

Thanks, unfortunately when I try that I get this:

Quote:

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

jmbrink26 03-24-2007 11:32 AM

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.

soylentgreen 03-24-2007 11:58 AM

one of the many reasons i hate ubuntu...

you need to have a smbusers file

Quote:

How to add/edit/delete network users

* 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.

camorri 03-25-2007 05:24 AM

Code:

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.

jmbrink26 03-25-2007 12:38 PM

Agreed.

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.


All times are GMT -5. The time now is 09:18 AM.