Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-19-2001, 05:56 PM
|
#1
|
LQ Newbie
Registered: Dec 2001
Location: Brisbane, Australia
Distribution: Slackware
Posts: 25
Rep:
|
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

|
|
|
12-20-2001, 07:49 AM
|
#2
|
Member
Registered: Dec 2001
Location: thunder bay, on, Canada
Distribution: Windows vista & Ubuntu
Posts: 113
Rep:
|
maybe try security=share
check if it is ok,then post later.
Good luck!
|
|
|
12-20-2001, 11:10 PM
|
#3
|
LQ Newbie
Registered: Dec 2001
Location: Atlanta, GA
Distribution: Mandrake 7.2
Posts: 2
Rep:
|
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
|
|
|
12-21-2001, 10:01 AM
|
#4
|
Member
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 814
Rep:
|
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!
|
|
|
12-21-2001, 10:05 AM
|
#5
|
Member
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 814
Rep:
|
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?
|
|
|
12-22-2001, 09:37 AM
|
#6
|
Member
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170
Rep:
|
On my home system where security is not a problem i put
security = share
In my smb.conf file. Works a charm with win98se
|
|
|
12-22-2001, 04:28 PM
|
#7
|
Member
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132
Rep:
|
You must use smbpasswd -a username
Then set the password.
Then logon with your windows client and all will work fine
|
|
|
12-22-2001, 04:35 PM
|
#8
|
LQ Newbie
Registered: Dec 2001
Location: Brisbane, Australia
Distribution: Slackware
Posts: 25
Original Poster
Rep:
|
Sylhouette:
how do i do all of that?
|
|
|
12-22-2001, 05:04 PM
|
#9
|
Member
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132
Rep:
|
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.
|
|
|
12-22-2001, 05:42 PM
|
#10
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
What shares do you have setup?
you should share something to test it.
|
|
|
12-23-2001, 04:20 AM
|
#11
|
Member
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132
Rep:
|
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
|
|
|
12-23-2001, 09:22 PM
|
#12
|
LQ Newbie
Registered: Dec 2001
Location: Brisbane, Australia
Distribution: Slackware
Posts: 25
Original Poster
Rep:
|
alritey everybody thanks a lot...I'll give it all a try soon
|
|
|
12-23-2001, 11:32 PM
|
#13
|
Member
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104
Rep:
|
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?
|
|
|
12-24-2001, 12:18 AM
|
#14
|
Member
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104
Rep:
|
[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.
|
|
|
12-24-2001, 03:05 AM
|
#15
|
Member
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|