LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-29-2015, 05:56 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
NIS recommended setting for MINGID


I am running a NIS server on my network. After migrating to a new server I noticed when I log in on a client I am not member of the sudo group anymore.

This is caused by the MINGID=1000 setting in the /var/yp/Makefile.

The mechanism is quite clear to me: groups < 1000 are not in the NIS database.

But I want to be member of the sudo group on every machine I log in. The workaround would be to add myself to the sudo group on each client.

But that seems to be odd. I am using a centralized authentication system so I don't have to create my UID and GID on each host.

OTOH there seems to be a security risk involved in setting the GID to such a low value to include system groups/accounts.

The nis server does allow incoming connections from the internet.

So what is the recommended way to be member of the sudo group on each host?

jlinkels
 
Old 03-29-2015, 06:41 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Create a domain group, linux_admin_sg, for example, give it a group ID < 999 and grant that group rights in sudoers.
Conversely you could modify the default MINGID variable to a value greater than 1000 and recompile yp. It's not replicating the GIDs that don't have groups attached to them, so it's a wash as far as network/compute is concerned. My thinking would be, if you're in sudoers, you already have more rights than any system account or group other than wheel, so what's the downside of low-balling the GID?
You're looking at a security question. On high security instances/servers, they actually disable domain level groups and users so that only local users can access them and pull rights from local groups. That makes them a serious pain in the neck to admin, you need a guy who has an account on the instance to work on it, however it's about as secure as you can make it in an enterprise environment.
Always a trade off.
 
Old 03-31-2015, 07:16 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I like the suggestion of creating a system group with a high GID.
OTOH you don't seem panicky about lowering the MINGID on a local network either. I was afraid it was Bad Practice.

Thanks.

jlinkels
 
  


Reply



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
how the NIS information will propagate fron NIS master to NIS slave & vicevarsa? dezavu Linux - Server 5 10-14-2011 03:08 AM
Setting up NIS in a cluster lentzjm Red Hat 2 12-08-2008 01:59 PM
Setting up NIS on Red Hat 9 Thaidog Linux - General 1 11-13-2005 11:18 PM
First time Setting up NIS. NEED HELP please. veroth *BSD 0 02-07-2004 05:49 PM
problem setting up NIS kevv Linux - Networking 0 01-09-2002 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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