LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-24-2007, 11:35 AM   #1
RetepNamenots
LQ Newbie
 
Registered: Oct 2006
Location: UK
Distribution: Ubuntu Edgy Eft 6.10
Posts: 17

Rep: Reputation: 0
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.
 
Old 03-24-2007, 11:58 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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.
 
Old 03-24-2007, 12:10 PM   #3
RetepNamenots
LQ Newbie
 
Registered: Oct 2006
Location: UK
Distribution: Ubuntu Edgy Eft 6.10
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 03-24-2007, 12:32 PM   #4
jmbrink26
Member
 
Registered: Aug 2006
Posts: 72

Rep: Reputation: 15
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.
 
Old 03-24-2007, 12:58 PM   #5
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Rep: Reputation: 30
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.
 
Old 03-25-2007, 06:24 AM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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.
 
Old 03-25-2007, 01:38 PM   #7
jmbrink26
Member
 
Registered: Aug 2006
Posts: 72

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba always asks for a password ErrorBound Linux - Networking 1 07-19-2006 08:25 PM
linux asks me for a password feigenluis Linux - Newbie 10 05-31-2005 07:07 AM
Printing to Windows printer asks for user/password vman33197 Fedora 1 10-10-2004 07:07 PM
network asks for password????? naginata Linux - Networking 1 03-28-2004 10:45 AM
Samba asks password element Linux - Networking 1 09-11-2003 05:35 PM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration