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.
|
 |
10-02-2001, 10:49 AM
|
#1
|
LQ Newbie
Registered: Oct 2001
Posts: 7
Rep:
|
samba and win2000
i am trying to get samba to work. i have a redhat7 box with samba running on it and a windows 2000 workstation. both boxes are hooked to a switch and i can ping both boxes from the other, so they can communicate. on the windows 2000 box, i do a search for the redhat7 box by ip address, then i click on the ip address and try to login, it comes up with a login box, but i keep getting invalid username or password. i have the same user on both machines defined with the same passwords. Does anyone just have "barbones" smb.conf file that will let me hook a win2000 box into a linux box?
|
|
|
10-02-2001, 02:41 PM
|
#2
|
Member
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182
Rep:
|
I'm not familiar with w2K and you don't say if your logging into samba as a PDC or not.
I've had login problems with win98. Basically the lack of a nameserver and timing of samba has cause problems. If you can ping the w2k from the linux box using the netbios name you should be able to login. If you can only ping by ip address, add the ip to the /etc/hosts file and restart samba.
It should look something like this:
127.0.0.1 linux localhost.localdomain localhost
192.168.0.2 w2000
|
|
|
10-02-2001, 02:41 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
this is my smb.conf file... well most of it.
it really is sooo much EASIER to start from scratch. if nothing else but for the fact that the result looks vastly less scary.
[global]
security = user
preserve case = yes
null passwords = yes
encrypt passwords = no
workgroup = swingyourpants
server string = simon
socket options = TCP_NODELAY IPTOS_LOWDELAY
log file = /var/log/samba/%m.log
mangle case = yes
create mask = 0777
default case = lower
hosts allow = 10.0.0.2 10.0.1.2 10.0.0.1 10.0.1.1
directory mask = 0777
wins support = yes
[mp3]
path = /mp3
comment = mp3
writeable = yes
read only = no
public = yes
Oh btw.. you HAVE done the password registry hack haven't you?
|
|
|
10-03-2001, 01:17 AM
|
#4
|
LQ Newbie
Registered: Jun 2001
Location: Frederick,MD
Distribution: Caldera Open linux,RH 7.1
Posts: 14
Rep:
|
You have to create a samba user..with a psswd in the smbpasswd file.
The command is................ah too easy
Oh yeah with Win2K
encrypt passwords=yes
save the reg hack!
|
|
|
10-03-2001, 02:09 AM
|
#5
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
Yes if you are getting the prompt when you try to access the shares on the linux box you are almost there. I guess you can see the linux box in network neighborhood.
like was stated you need to add the user you are going to login with to your /etc/passwd file and then use this command
smdadduser unixusername:ntusername
you will be prompted for a password
getting back the other way is gonna be a different story, I would just enable the guest account on win2k if you are not worried about security, or add a user account, share to the new account and then access it.
mkdir /lan/win2k
mount -t smbfs //win2k/share /lan/win2k
then enter password when prompted
or for other user accounts do this one
mount -t smbfs //win2k/share /lan/win2k -o username=foobar,password=guessit
Or you can do the password hack if you want.
some of my smb.conf file
# Global parameters
[global]
workgroup = HOME
netbios name = ALPHA
server string = Samba Server
interfaces = eth1 eth2 127.0.0.1
security = SHARE
encrypt passwords = Yes
allow trusted domains = No
log file = /var/log/samba/%m.log
max log size = 0
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 65
preferred master = Yes
wins proxy = Yes
wins support = Yes
Last edited by DavidPhillips; 10-03-2001 at 03:12 AM.
|
|
|
10-03-2001, 08:58 AM
|
#6
|
Member
Registered: Sep 2001
Location: Bryan, Ohio USA (Home of the Etch-A Sketch)
Distribution: RedHat 7.1, 7.2, and 7.3
Posts: 76
Rep:
|
make sure you have your smbpasswd file there, check that out under root, then switch to your user accuont and run smbpasswd <username> it should ask you for a password, just hit enter since you don't have one, then type in your new password and confirm it. also from your user account make sure you have something shared on your linux box by running smbclient -L <server name>
also, make sure you read the ENCRYPTION.txt on samba, should be in /usr/share/docs/samba/doc/text docs..................or something along those lines
Last edited by Sathe; 10-03-2001 at 09:10 AM.
|
|
|
All times are GMT -5. The time now is 09:18 PM.
|
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
|
|