1820223 Members
3855 Online
109620 Solutions
New Discussion юеВ

Samba/CIFS and NIS.

 
Kat Parkison
Occasional Advisor

Samba/CIFS and NIS.

Dear HP-UX and Samba/CIFS Gurus ,


I have successfully installed CIFS-9000 on HP-UX 11.00 Server. We use NIS. The PC users can successfully map their unix home directories if their account name exists in smbpasswd file and if they enter proper Samba Password.
I have two problems here -
1)In case I login as "root" on the Unix box then I can change the "samba password" of any Samba User. But the users themself CANNOT change their own samba password. They get error message "maching 127.0.0.1 has rejected your request." How to fix this problem ?

2)We use NIS. I would like to synchronise the user's Samba Passwords and NIS (Unix) passwords. I tried my best by manipulating the smb.conf file. But nothing works ! How to fix this problem ?

I will be happy if I get a sample "smb.conf" file by which this problem can be resolved.
Thanking you in advance.
-Shashi Divekar
I LIKE HP-UX
5 REPLIES 5
Sachin Patel
Honored Contributor

Re: Samba/CIFS and NIS.

Hi Kat
Attached is smb.conf file that we uses. We are using NIS and so we do not use smbpassword. All NT users can access unix directory. Password checking done through NT server "hpc-pdc"

Sachin
Is photography a hobby or another way to spend $
Kat Parkison
Occasional Advisor

Re: Samba/CIFS and NIS.

Thanks Sachin. I have assigned appropriate points.
Let me describe my problem more clearly.
1)All our HP workstations and servers are part of SINGLE NIS DOMAIN.
2)We have couple of different PC/NT Domains.
3)User's NT account name and Unix account name in most cases is different !
4)There is no connection between NT domains and our NIS Domain. I can say as a JOKE, that Unix and NT Sysadmins rarely say Hello to each other !
Now coming back to my original questions -
1)Why a user cannot change his/her Samba Password. But the user can successfully login to the "swat GUI" from the Netscape. When user tries to change the Samba PAssword, following error message is generated -
"machine 127.0.0.1 rejected the password change: Error was :The specified password is invalid"
So every time I login as a "root" after invoking the "swat GUI" and change the user's password on the user's request.
2)The second question is how to make the "Unix Password Sync" feature work ? I tried to manipulate the "smb.conf" file but could not get any success. I want to have the SAME PASSWORD for SAMBA and for the NIS/UNIX for every user. CAn anybody guide me on this ?

Thanking you all.
-Shashi Divekar
shashi.divekar@philips.com
I LIKE HP-UX
leereg_5
Frequent Advisor

Re: Samba/CIFS and NIS.

We use samba under NIS environment the same as your's.The users' accounts and passwd must keep the same as their UNIX accounts.That is to say, if you want to use samba, you must logon windows with the same name and passwd you use in UNIX. Attachment is our smb.conf file.

Regards!
Always UNIX!
Kat Parkison
Occasional Advisor

Re: Samba/CIFS and NIS.

Thanks Sachine and Leereg. I have assigned appropriate points to bith of you.

I have RESOLVED MY ONE PROBELM. Now the user can change his/her own Samba Password. This I could do by creating "smbnull" account entry in /etc/passwd file of HP-UX 11.00 Samba Server.

Now folks how to resolve the other problem of Syncing the Samba Password and NIS password ?
i.e Whenever the user changes his/her Samba PAssword, automatically the NIS Password of that account should get changed. How to achieve that ?
REgards.
-Shashi.Divekar@philips.com
I LIKE HP-UX
Sachin Patel
Honored Contributor

Re: Samba/CIFS and NIS.

Hi Shashi,
I don't think you can do that because. samba uses smbpasswd to change it's password in to smbpasswd file .while HP uses passwd or yppasswd to change its password.

Sachin
Is photography a hobby or another way to spend $