LinuxQuestions.org
Visit Jeremy's Blog.
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 02-23-2003, 05:44 PM   #1
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Rep: Reputation: 30
windows passwords with linux


I have to configure 8 windows (XP pro) clients to get theirs passwords from a linux server (just like NIS, but to work with windows hosts). I have heard that this can be done with SAMBA, but i haven't found some documentation yet....
Can anyone help me?
 
Old 02-23-2003, 10:41 PM   #3
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
have you installed samba?
 
Old 02-24-2003, 05:22 PM   #4
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Original Poster
Rep: Reputation: 30
thx... it was helpful...
 
Old 02-26-2003, 06:58 PM   #5
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 7 prior Red Hat User
Posts: 473

Rep: Reputation: 30
More problems connecting from Windows

Jamrock,

I'm having problems again. I tried to find you on the other forum but I couldn't. I'm having problems again connecting to Linux from Windows. What is happening is, if I try to connect to Linux from Windows, an Enter Network Password box comes up in Windows. If I enter my user name and password, I cannot get on, however, if I just click OK, I can connect but not access anything. What am I doing wrong? Thanks.
 
Old 02-26-2003, 07:55 PM   #6
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
Hi, you might need to set up an account for your windows user for samba. There is a command, on my system it's /usr/sbin/smbadduser, that lets you create accounts for samba shares.

I usually add the user with the same logon and password as my windows logon info, that way you can connect without entering logon info.

The user you add with smbadduser needs to have an account on your linux system, it goes like this....

/usr/sbin/smbadduser linuxuser:windowsuser

Then use /usr/sbin/smbpasswd username to set up the password for the account.

HTH
 
Old 02-26-2003, 10:36 PM   #7
KE0X
LQ Newbie
 
Registered: Feb 2003
Posts: 3

Rep: Reputation: 0
Same problem !!!

I have gotten as far as connecting to root in Windows IF I am logged in as root AND username WHEN I am logged in as username on the linux box. BUT, can't do vs/vs. Even when I try smbclient //hostname/user, on the linuxbox I get an error if I am not the logged in user. I have tried just about every setting on the password portion of the smb.conf and this is the best I get. YES I have used smbpassword and the smbpassword is in the right place and contains ALL of the users and a long string of encripted numbers.

Is ther a service that is not on? Is one on that should not be on? Just reloaded RH Linux used the defaults for server, and added office.org and FTP. FTP works GREAT! takes me right to the user home directory.

HELP PLEASE.
 
Old 02-26-2003, 11:17 PM   #8
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Check for my anwer here:

http://www.linuxquestions.org/questi...7&pagenumber=2
 
Old 03-02-2003, 08:39 PM   #9
KE0X
LQ Newbie
 
Registered: Feb 2003
Posts: 3

Rep: Reputation: 0
Untold secrets of setting up SAMBA

1. This assumes you have performed steps 1.1 through 1.9 of Chapter 1 of “SAMBA Project Documentation,” available at www.samba.org and you are at step 1.10 “What if Things Don’t Work.” This further assumes that you have a “Clean” install and no unnecessary baggage, weird configurations, have not screwed everything else up trying to get it to work, etc., etc.

2. In root run “hostname” make sure that your hostname is correct the command (hostname linuxbox) in root as root will do it. hostname -? Gives help. And allows you to fix it.

3. In /etc/sysconfig/network MAKE SURE the same hostname is in there. (MUST BE THERE!)

E.g., NETWORKING=yes
HOSTNAME=linuxbox

4. Either put or make sure “ipaddress hostname.WORKGROUP” is in /etc/hosts (Must be there or windows does not think the PC is part of workgroup) See below.

E.g. “192.168.0.2 linuxbox.WORKGROUP” I also put all the other "hosts" on the LAN in there.

5. Setup user accounts for your windows clients on the Linux box:
(1) Go to a shell prompt and type: cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
(2) After that, if you haven't already done so, type: smbpasswd (username)
(3) It will prompt you for the password for your samba clients. You must do it for each user separately or create a shell script to do it automatically.

6. Either reboot or re-cycle SMB in Server Setting, Services (GNOME).

7. Make sure SMB and SNMPD are running (Server Setting, Services will show the status – X in box)

8. If it still isn’t working, then make sure the security is not clamped down so that nothing can get through. IF behind a secure firewall, turn them all on. Shut off the obvious ones you don’t need. I am not responsible for any hacking to your computer. I am behind a gateway/router box and have been safe so far.

LEGEND:
linuxbox - the name of the computer with Linux/SAMBA you are trying to get to work
WORKGROUP – the name in the MS-Win computer Workgroup field of the “Computer Name” Screen.

Keep in mind that MS-Win capitalizes the WORKGROUP no matter what you do and it appears to me that it capitalizes the first letter of your user name in WIN-XP. (at least after I took this into consideration, things worked.) You need to keep this in mind when using smbpasswd (username), which asks for unixid:ntid.

Example: smbpasswd fish:Fish


If someone knows how to get true DHCP, that is so I don’t have to lock the numbers into hosts, let me know. Can I put in the eth0 mac address instead of the ip address? For some reason if I don’t have ipaddress linuxbox.WORKGROUP it won’t work
 
Old 03-02-2003, 09:14 PM   #10
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
KE0X,

Are you still having difficulties or is Samba working okay now?
 
Old 03-03-2003, 12:49 PM   #11
KE0X
LQ Newbie
 
Registered: Feb 2003
Posts: 3

Rep: Reputation: 0
Yes I have it working. However, I had to setup the Linuxbox with a fixed IP address and include this address in /etc/sysconfig/network and in /etc/hosts . When attempting to use DHCP, putting the name only in hostnames caused an error on startup saying that "GNOME won't work ... and to put the name in etc/hosts." that means puting in an IP address, etc. etc. etc.

Thats why the query "How do you set SAMBA up to use DHCP?????"
 
  


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
Resetting Windows Passwords with Knoppix halo14 Linux - Distributions 15 09-09-2013 02:39 AM
Hacking Windows Passwords whited General 19 12-06-2007 02:37 PM
DISCUSSION: Resetting Windows Passwords with Knoppix halo14 LinuxAnswers Discussion 19 10-13-2007 02:25 PM
Samba 3 - changing passwords from windows michzap Linux - Networking 2 09-03-2004 02:48 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 11:59 AM

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

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