LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   windows passwords with linux (https://www.linuxquestions.org/questions/linux-networking-3/windows-passwords-with-linux-46814/)

sqn 02-23-2003 04:44 PM

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?

jamrock 02-23-2003 09:38 PM

http://www-1.ibm.com/servers/esdd/tu...mba/index.html



http://networking.earthweb.com/netos...le.php/1144701

http://networking.earthweb.com/netos...le.php/1151091

micxz 02-23-2003 09:41 PM

have you installed samba?

sqn 02-24-2003 04:22 PM

thx... it was helpful...
:)

scottpioso 02-26-2003 05:58 PM

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.

mychl 02-26-2003 06:55 PM

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

KE0X 02-26-2003 09:36 PM

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.

jamrock 02-26-2003 10:17 PM

Check for my anwer here:

http://www.linuxquestions.org/questi...7&pagenumber=2

KE0X 03-02-2003 07:39 PM

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

jamrock 03-02-2003 08:14 PM

KE0X,

Are you still having difficulties or is Samba working okay now?

KE0X 03-03-2003 11:49 AM

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?????"


All times are GMT -5. The time now is 11:43 PM.