- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nis and netgroup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 03:05 AM
тАО05-24-2006 03:05 AM
nis and netgroup
admins (,lo392787,) (,db55621,)
I added +@admins::::::::: to both passwd and shadow and changed nsswitch.conf to:
passwd: compat
group: compat
If I try to telnet localhost and login as either a user in the admins netgroup or root, it fails.
Once I change nsswitch.conf back to passwd: files nis, then it allows me to login as root as well as any NIS user.
What am I missing here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 04:37 AM
тАО05-24-2006 04:37 AM
Re: nis and netgroup
I think there are many things missing...
- you cannot use netgroups in conjunction with /etc/shadow.
- you have to use NIS to use passwd in compatibility mode
So you would have to convert your system to untrusted.
To see netgroups working, you can try to use host authentification via netgroups.
Add host entries to the netgroup
okhosts (ho1,,) (ho2,,)
and add okhosts to /etc/exports like
/home -access=okhosts
to test NFS access via netgroup entries. Do not forget to update NIS maps!
If you have an untrusted system
- check /etc/nsswitch.conf for entry
netgroup: nis files
- add usernames to netgroup NOT in local /etc/passwd but in NIS map passwd
- update NIS-Maps
then your compat-mode entry should work.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 06:17 AM
тАО05-24-2006 06:17 AM
Re: nis and netgroup
I have converted back to old password file and still can't get the netgroup to work.
I am still unable to login as a NIS user in the netgroup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 09:06 AM
тАО05-24-2006 09:06 AM
Re: nis and netgroup
ypcat netgroup, make sure that is correct.. add a +::::::: to /etc/passwd, test that, then restrict it down to a netgroup. Basically login as any nis user, then restrict it down to netgroups in /etc/passwd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 09:11 AM
тАО05-24-2006 09:11 AM
Re: nis and netgroup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 12:04 AM
тАО05-25-2006 12:04 AM
Re: nis and netgroup
what ist the result of
ypcat netgroup | grep admins
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 12:35 AM
тАО05-25-2006 12:35 AM
Re: nis and netgroup
admins (,lo392787,) (,db55621,) (,hw151282,) (,jg438011,) (,ee341740,) (,bs11425
,) (,tc324570,)
I am trying to use user db55621. When I just have + at the end of passwd, I am able to login. If I change it to +@admins, I get login failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 09:54 PM
тАО05-25-2006 09:54 PM
Re: nis and netgroup
try to use the netgroup 'admins' in another context to check wether they work there:
- Your host ist thost
- Leave +:: entry in /etc/passwd
- Setup a testuser; create/modify file ~testusr/.rhosts (permission 600, owner testusr) at host thost containing
somehost +@admins
and try as a member of admins (e.g. db55621) at host 'somehost' to get a passwordless request:
remsh thost -l testusr date
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2006 07:57 AM
тАО06-01-2006 07:57 AM
Re: nis and netgroup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2006 12:45 AM
тАО06-02-2006 12:45 AM
Re: nis and netgroup
it would be nice, if you put attention to the point system of this forum:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
mfG Peter