Operating System - HP-UX
1836382 Members
3283 Online
110100 Solutions
New Discussion

Getting SAMBA only to use NIS users and not local

 
Michael Petersen_2
Occasional Advisor

Getting SAMBA only to use NIS users and not local

Hi

I have just installed a samba server on my hpux 11.11 box. Got it up and runing, but are having one problem. We are some administrators which have both a nis account and a local account. When I mount the SAMBA drive on my windows box, it uses the local /etc/passwd and not my nis account. How can I have SAMBA to look away from local accounts and only NIS users. I'm using security=server, validated against out Windows domain
5 REPLIES 5
RAC_1
Honored Contributor

Re: Getting SAMBA only to use NIS users and not local

I think you can use vali users directive here. Under global area, you put as follows.

valid users = "nis users seperated by quamma"

Anil
There is no substitute to HARDWORK
Michael Petersen_2
Occasional Advisor

Re: Getting SAMBA only to use NIS users and not local

Hi RAC

Yes that works, but we have a quit big env. with around 500 nis users, and I would prefere not enter them, and maintain it. Right now it works against NIS with nis enablet on the host, so if people dont have a local account, then it works perfect. The only trouble is for 20 users which also have local accounts
Steve Steel
Honored Contributor

Re: Getting SAMBA only to use NIS users and not local

Hi


google
samba nis passwd hp-ux

Lots of good info like

http://www.monyo.com/technical/samba/docs/NISPLUS.en.txt

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
RAC_1
Honored Contributor

Re: Getting SAMBA only to use NIS users and not local

If NIS user list is exhaustive, you can use valid users = @nis_group, @nis_group1

Anil
There is no substitute to HARDWORK
Michael Petersen_2
Occasional Advisor

Re: Getting SAMBA only to use NIS users and not local

thanks for the replies.. we are only runing NIS. And regarding valid users, I have tried that before this post, but it still looks the UID in local before NIS. Proberly because my nsswitch.conf have files nis. And that I wont change.