LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2003, 02:04 AM   #1
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Rep: Reputation: 31
can't connect to my linux box via samba


Hi,

I'm new to samba and I cannot get it to work.
I have Mandrake 9.0 which comes with Samba 2.2.6pre2

I have the default install settings running. The only think I've changed is I changed my workgroup name from mdkgroup to @home so it would be on the same workgroup as my Windows XP box.

When I try to login to the linux box from Windows by double clicking on the computer from the workgroup computers area. It prompts me for a login.
I try typing in a username and password that exists on the linux box. That doesn't work. I also try the username nobody with various passwords.
When I enter a username and password it changes the username to from for example:
nobody to WINDOWSCOMPUTERNAME\nobody

when I try to change WINDOWSCOMPUTERNAME to the ip of the linux box (because it asks me to put a domain there) it actually attempts to login for about 3 seconds then fails.

I guess my question is where do I have to setup and username and password so that I can login to my linux box using samba from windows XP?

Thanks for any help, this is real important to me.
 
Old 08-08-2003, 02:13 AM   #2
devil
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
change security settings

change ur security settings in smb.conf to "SHARE"
 
Old 08-08-2003, 02:36 AM   #3
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
Ok, that helped
Now I see 3 icons:
pdf-generator
Printers and Faxes
network folder icon with my username

When i double click on the folder with my username I try and enter the password for my username and it doesnt let me in. Windows has grayed out the username field which says Linux\Guest

What username and password should I be using? How do I set that up?
 
Old 08-08-2003, 11:25 AM   #4
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
Samba accounts must have corresponding local accounts. So this gives you 2 choices.
a) As root, type smbpasswd -a <local username>
b) As root, create a new local user. Then do smbpasswd -a <new username>

Then make sure the user you want to access the share is included in the list of valid users for the share.

Hope this helps
 
Old 08-09-2003, 01:32 PM   #5
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
thanks. That worked
You guys are great.
 
Old 08-11-2003, 01:46 PM   #6
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
Ok. It now connects by default to the same user as I'm logged into on windows. Is there a way to set it up so I'm prompted for a username and password so I can login as a user other than the one I'm using on windows (which is the same as one of the users on my linux box).
 
Old 08-11-2003, 02:18 PM   #7
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
Are you able to change the username or is it grayed out? If its not grayed out, theres nothing that can be done. Windows just tries to guess what username you want to connect as. If its grayed out, I am not sure what to tell you. I'll investigate more.
 
Old 08-11-2003, 03:49 PM   #8
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
since i have the same user on both the linux and windows box windows doesnt even prompt me with a login box.

I've added 2 users to the smbpasswd file but only 1 shows up in the network folders.

Right now I see 4 icons when I click on my linux box from winxp:
homes
netlogon
username1
Printers and Faxes

Not sure why all my usernames dont show up or how I can get another one to show up.
 
Old 08-11-2003, 03:56 PM   #9
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
Hmmm have you rebooted your Windows box? If not, it may just be that Windows is using the same user/password as was used the time before. I know that Windows does do that. I don't know how to get around that, I've wanted to know how for quite awhile... a reboot is the only means I've found. Maybe logging off and then logging back on on the Windows box would work though too...

I think that only one username shows up for your folders because a user can -only- write to his/her own folder. If you are able to logon with a different user later, you should see a folder for that name and not the previous one.
 
Old 08-11-2003, 06:31 PM   #10
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
Ok. I logged off and logged back on. Now I can see the other folder. It's still logging me automatically under my windows username/password. I believe if I change my windows password so that it is different from the linux password (i know this was a bad practice) it should prompt me for a login box.

Im running too many programs to do a reboot right now. So I'll have to give it a try later. But I think this should work.
 
Old 08-11-2003, 06:32 PM   #11
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
I may just add both users to the same group so they will both have the same read/write access.
 
Old 08-14-2003, 02:53 AM   #12
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
When the account on the windows box and the account on the linux box have different passwords then windows would not log me in automatically and I was prompted for a password.
So everything is working great now.

Thanks for all the help.
 
Old 08-14-2003, 10:46 AM   #13
sorrodos
Member
 
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345

Rep: Reputation: 30
Awesome, glad to hear it works perfectly for you now. Glad I was able to help.
 
  


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
Is there a gui that can be installed on an XP machine to connect to a Samba box? pdickie General 3 09-08-2005 07:41 AM
win XP can't connect to linux box using samba nebs Linux - Networking 3 02-20-2005 12:42 PM
Cannot connect to WinXP shares from samba on a Suse 9.1 box robintw Linux - Software 0 12-04-2004 01:06 PM
Connect two Linux box without samba melinda_sayang Linux - Newbie 6 08-02-2004 09:44 PM
Linux box - Windows box =Samba? hbidad Linux - Software 7 02-10-2003 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:11 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
Open Source Consulting | Domain Registration