LinuxQuestions.org
Help answer threads with 0 replies.
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 12-19-2001, 05:56 PM   #1
Sir.Del
LQ Newbie
 
Registered: Dec 2001
Location: Brisbane, Australia
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
Angry Username and Password accessing samba?


Hey all, i'm probably going to get flamed for asking this question as it has been asked many a time on the forums but i really am stuck.

I have browsed the forums and haven't been able to find a solution to my problem.

I am running Redhat 7.2 and on my windows box, i am running XP and 2k. I can see the Linux box in network neighbourhood but when i go to access it i am prompted for a user name and password. When i enter the details i am once again prompted for the same thing.

I have added the corresponding username and password on both linux machine and the windows machine.

I checked to see that i had shares running using smbclient -L and all the shares were there...

How can i access these shares via windows??

Once again sorry for the message, you are all problably sick of seeing them

Thanks in advance

Del out

 
Old 12-20-2001, 07:49 AM   #2
whepin
Member
 
Registered: Dec 2001
Location: thunder bay, on, Canada
Distribution: Windows vista & Ubuntu
Posts: 113

Rep: Reputation: 15
maybe try security=share

check if it is ok,then post later.

Good luck!
 
Old 12-20-2001, 11:10 PM   #3
nikosuru
LQ Newbie
 
Registered: Dec 2001
Location: Atlanta, GA
Distribution: Mandrake 7.2
Posts: 2

Rep: Reputation: 0
The same info is found in /usr/share/doc/samba..... (tab) or what ever version you are using.

For window 2000: (the easy way)
You must enable Plain text Password by using regedit and following the link below [HKEY_LOCAL.........


REGEDIT4

;Contributor: Herb Lewis (herb@sgi.com)
;Updated: 16 July 1999
;Status: Current
;
;Subject: Registry file to enable plain text passwords in Window
s 2000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkStatio
n\Parameters]
"EnablePlainTextPassword"=dword:00000001
 
Old 12-21-2001, 10:01 AM   #4
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 814

Rep: Reputation: 40
Have you:

1. Added a user account for the windows machines?

2. Given those accounts a Linux password?

3. Set up an smbpassword?

If not, you need to. If you don't know how, ask me!
 
Old 12-21-2001, 10:05 AM   #5
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 814

Rep: Reputation: 40
BTW, my understand is that you *shouldn't* just use plain text passwords, they aren't as secure. It's very easy to set up encrypted passwords. Everything except Win 95 should work with encrypted passwords and you should have:

encrypted passwords = yes

in smb.conf

I suppose if it's just a little account at home you've set up it's not important, but I'd have thought it was a good habit to get into using as many secure methods as possible in case you ever set up something where security is paramount. Or is that comedy?
 
Old 12-22-2001, 09:37 AM   #6
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
Smile

On my home system where security is not a problem i put

security = share

In my smb.conf file. Works a charm with win98se
 
Old 12-22-2001, 04:28 PM   #7
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
You must use smbpasswd -a username

Then set the password.

Then logon with your windows client and all will work fine
 
Old 12-22-2001, 04:35 PM   #8
Sir.Del
LQ Newbie
 
Registered: Dec 2001
Location: Brisbane, Australia
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: 15
Sylhouette:

how do i do all of that?
 
Old 12-22-2001, 05:04 PM   #9
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
On the linux box do a useradd
or use the graphical user manager to make a user lets say tom

then do as root smbpasswd -a tom
and enter the same password as your windows clients

Remember also that linux is case sensetive

thats all

Also set in the /etc/samba/smb.conf file the right permissions


I hope this helps.
 
Old 12-22-2001, 05:42 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
What shares do you have setup?

you should share something to test it.
 
Old 12-23-2001, 04:20 AM   #11
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
In the /etc/samba/smb.conf file there you define the shares

it are line looking like

[tmp]
browsable = yes
read only = yes
geust ok = yes
path = /tmp

something like that

With the command testparm you can examine the smb.conf file it also let you know witch things you have shared.

On the internet there is also a book in PDF format called learning the samba it is a book over 383 pages about samba it has helped me a lot.
It is a book from o'reilleys

On this page is the link to the pdf book

http://www.oreilly.com/catalog/samba/

It explanes a lot

I am a beginner to so i am not to good to know what your problem is
 
Old 12-23-2001, 09:22 PM   #12
Sir.Del
LQ Newbie
 
Registered: Dec 2001
Location: Brisbane, Australia
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: 15
alritey everybody thanks a lot...I'll give it all a try soon
 
Old 12-23-2001, 11:32 PM   #13
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Rep: Reputation: 15
I am also having trouble with Samba using Win98. What exactly does security=share do? Also, you have to make a user on the linux box for the share?? Do you have to make a diff user for each share that you want seperate, or can you make one user for all of samba and let samba keep them sorted? I suppose that would be bad due to any security holes in samba, thus letting someone see all the shares, ay? How do you tell samba which user account to use for a share? Isn't there a way to make a share public read-only so that everyone can see it without a password?
 
Old 12-24-2001, 12:18 AM   #14
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Rep: Reputation: 15
[system@localhost system]$ smbclient //Localhost/systemdir
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[MYGROUP] OS=[Unix] Server=[Samba 2.0.7]
tree connect failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a T
ree Connect or Session Setup are invalid.)

I tried this on my linux box that is supposed to be serving. Why does it say Anonymous login successful, then give me a bad password problem? Does anyone know what's wrong here? I also tried the same command su'ed as root. Same thing.
 
Old 12-24-2001, 03:05 AM   #15
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
Did you do a smbpasswd -a username on that user ?

OS =UNIX i read if you want a linux machine to use share on another linux machine you'll need NFS.
That is the ffile sharing standard for linux.
You can set up shares for ather linux machines in the /etc/exports file


I know it is possible to share user home dirs only to the user it belonged to.
you can also set read only properties to users and groups and read write to some groups or users .

Follow the link i mentioned earlier and start reading that book it will explain a lot and it has a good and simple layout.

Or just buy the book .

It can tell you a lot more than i can




Good luck
And by reading and following the book you'll learn a lot what you can and can not do

Last edited by Sylhouette; 12-24-2001 at 03:10 AM.
 
  


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
username and password prompt: samba configuration caesarkim Linux - Networking 4 05-21-2009 09:13 AM
Samba access without unix username/password? mdkelly069 Linux - Networking 0 09-13-2004 05:05 PM
Samba share authentication using logon username and password mikepengelly Linux - Software 0 08-31-2004 03:47 AM
Samba username and password downinthemine Linux - Networking 2 01-10-2004 08:01 AM
mozilla username & password problems accessing a site mrtwice Linux - Newbie 3 06-18-2002 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:44 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