Questions tagged [nis]

NIS or Network Information Service is a directory service protocol for distributing system configuration data such as user and host names between computers on a computer network.

Wiki:

NIS stands for Network Information Service, (originally called Yellow Pages or YP) is a client–server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network.

A NIS/YP system maintains and distributes a central directory of user and group information, hostnames, e-mail aliases and other text-based tables of information in a computer network.

Example:

In a common UNIX environment, the list of users for identification is placed in /etc/passwd, and secret authentication hashes in /etc/shadow. NIS then adds another “global” user list which is used for identifying users on any client of the NIS domain.

Administrators have the ability to configure NIS to serve password data to outside processes to authenticate users using various versions of the Unix crypt hash algorithms. However in such cases, any NIS client can retrieve the entire password database for offline inspection.

Usage:

The tag should be used for programming related problems of Network Information Service, Please note that problems related to NIS server installation and configuration should be asked at https://serverfault.com/ .

24 questions
5
votes
1 answer

Authenticating Gitweb with Gitosis without LDAP Auth?

I found your article using Apache Auth with gitweb, gitosis. I was wondering if there was a way to do this if I wasn't using LDAP for authentication. We currently have a very large NIS domain which we use for authentication on all unix servers. We…
Chris
  • 51
  • 1
  • 3
3
votes
5 answers

Using Awk to remove whitespace

I have a file in the form of: Firstname LastName; 123-4567; Job Title Firstname LastName; 123-4567; Job Title Firstname LastName; 123-4567; Job Title ... I am trying to use awk to parse the file into a form readable by makedbm (to…
RJ DeVries
  • 158
  • 1
  • 1
  • 7
3
votes
2 answers

Migration of NIS yppasswd hashes from crypt to md5

Imagine a NIS user database /var/yp/input-files/passwd consisting of old crypt DES hashes. The aim is to migrate this database to md5 or sha hashes. When changing a password using yppasswd, it is generated using the same algorithm as for the…
3
votes
5 answers

"ypcat" and "ypmatch username passwd" don't agree after change on server

I'm trying to use NIS for authentication on a st of machines. I had to change one of the user ID numbers for a user account on the NIS server (I changed the userid for username from 500 to 509 to avoid a conflict with a local user account with id…
Lorin Hochstein
  • 57,372
  • 31
  • 105
  • 141
3
votes
1 answer

How to paste many lines to a file using a bash script?

I'm writing a script which will automatically configure a NIS client with the correct settings. I'm trying to set the /etc/nsswitch.conf file and I'd like to overwrite whatever is already there with my settings. Now my question is, how can I do…
Itai Ganot
  • 5,873
  • 18
  • 56
  • 99
2
votes
3 answers

How do I query msSFU30MaxUidNumber attribute with Powershell?

Does anyone know of a way to query this UNIX attribute msSFU30MaxUidNumber in Active Directory with Powershell? I'm working on a script that will assign Unix attribute to users as needed. I also have the Quest AD Powershell module available.
mwalkerii
  • 71
  • 2
  • 5
2
votes
1 answer

How to run docker with current host user, when users are managed with Linux NIS (Network Information Service)

I want to run the docker with my host account, Normally I would do it with: #!/bin/bash user_home="${HOME:-"$(eval echo "~$(whoami)")"}" docker run -it --rm \ --env "USER=$(whoami)" \ -u $(id -u ${USER}):$(id -g ${USER}) \ --volume…
brane
  • 585
  • 6
  • 20
1
vote
1 answer

ssh with compat nis on solaris 10

i have a working solaris 10 server with ssh and NIS using the following configuration: # /etc/nsswitch.conf passwd: files nis group: files nis and # /etc/ssh/sshd_config Protocol 2 Port 22 ListenAddress :: AllowTcpForwarding no …
Benoît
  • 3,355
  • 2
  • 29
  • 34
1
vote
0 answers

Authen::PAM login doesn't work after Vintela flush

I have a perl script that gets the username and password from an external process and then does user authentication using Vintela. Everything works perfectly until someone forces Vintela to flush it's cache. After the cache is flushed, the…
sid
  • 95
  • 2
  • 11
1
vote
0 answers

How to fix NIS with error code (1) (sudo apt-get purge nis)

When I first time installed NIS, it came out with a "E: Sub-process /usr/bin/dpkg returned an error code (1)" problem. So I removed NIS with "sudo rm -rf /var/lib/dpkg/info/nis.*" command. then reinstalled with "sudo apt-get purge nis" command. but…
Lin3624
  • 19
  • 2
1
vote
2 answers

Network Information System (NIS) with Openstack Keystone

Is there any way through which Network Information System (NIS) could be integrated with Openstack Keystone? Please let me know if you know any online resource.
openstk
  • 137
  • 9
1
vote
0 answers

Ubuntu 14.04 NIS Client connecting to a OpenSuse 13.1 NIS Server

I've been trying this for the whole day, searching the internet but I just can not find the solution. We're running a small server using OpenSuse 13.1 (NIS & NFS) at our office and it works perfectly with all clients also using OpenSuse. As I'm not…
miorli
  • 53
  • 1
  • 5
1
vote
1 answer

Private nsswitch or nscd per process

I want a short term fix for some NIS performance problems on my network. I don't have root access, and nscd has all caching turned off. I'd like to provide local nscd-like capability to allow getpwuid to cache its results, avoiding many expensive…
Alex Brown
  • 41,819
  • 10
  • 94
  • 108
1
vote
1 answer

local and NIS user with the same name - chown

I have a linux with a configured NIS domain, and both a local user and a NIS user with the name johndoe (but different UIDs). When applying 'chown johndoe:johndoegrp somefile.txt' - which john doe will become the owner ? I know I can see for myself…
Nati
  • 1,034
  • 5
  • 19
  • 46
1
vote
1 answer

how to give NIS users default ubuntu (desktop user) group permissions

My central file server is running Redhat and I've configured this system to export shares via NFS and I manage user accounts with NIS. I've setup a couple of Ubuntu clients and realized, that the NIS users are not part of any of the standard Ubuntu…
memyself
  • 11,907
  • 14
  • 61
  • 102
1
2