# Rocky Linux 8 NIS client issue

**URL:** <https://forums.rockylinux.org/t/rocky-linux-8-nis-client-issue/6750>\
**Category:** Rocky Linux Help & Support\
**Created:** [July 26, 2022, 9:11pm UTC](https://forums.rockylinux.org/t/rocky-linux-8-nis-client-issue/6750 "2022-07-26T21:11:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreasK](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@AndreasK](https://forums.rockylinux.org/u/AndreasK)\
**Post date:** [July 26, 2022, 9:11pm UTC](https://forums.rockylinux.org/t/rocky-linux-8-nis-client-issue/6750/1 "2022-07-26T21:11:30Z")

</div>

Hello, I am facing a problem while trying to configure NIS client on Rocky Linux 8.6 (minimal installation). The same configuration works perfectly with CeNTOS 7, and I’m in the process of updating the OS of a lab to Rocky. I have followed this tutorial: [CentOS 5 - NIS Server - Configuration for NIS client : Server World](https://www.server-world.info/en/note?os=CentOS_5&p=nis&f=2). Although ypbind seems to work fine, as I am getting the correct output from the commands ypwhich and ypcat passwd, when attempting to remote through ssh to NIS host, I am getting a permission denied error message. I am suspicious about the contents of the /etc/nsswitch.conf file and also whether this file is replaced by the /etc/authselect/nsswitch.conf. I would appreciate any help. Thank you in advance!

---

<div class="post-metadata">

**Author:** ![jrod](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jrod](https://forums.rockylinux.org/u/jrod)\
**Post date:** [August 3, 2022, 4:36pm UTC](https://forums.rockylinux.org/t/rocky-linux-8-nis-client-issue/6750/2 "2022-08-03T16:36:19Z")

</div>

I have been running into the same issue (permission denied). I was able to remedy the issue. When you do a ypcat passwd are your passwords in clear text, mine were. I had to reset the passwords with yppasswd, but I had to tell yppasswd to hash the password.

# Verify the password is in plain txt

ypcat passwd

# Set environment variable to use the hashing

export YP\_PASSWD\_HASH=SHA-512

# verify variable is set

echo $YP\_PASSWD\_HASH

# Reset password

passwd user\_name

# Verify the password is hashed

ypcat passwd

# try login again

Good Luck!  
Jrod

---

<div class="post-metadata">

**Author:** ![anwarkhan](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@anwarkhan](https://forums.rockylinux.org/u/anwarkhan)\
**Post date:** [April 10, 2023, 4:41am UTC](https://forums.rockylinux.org/t/rocky-linux-8-nis-client-issue/6750/3 "2023-04-10T04:41:37Z")

</div>

I am in process of migrating my environment from centos to Rocky so i am testing the NIS configuration, all configuration related to NIS has been verified twice, but still can’t login through NIS user on NIS client machine. strange thing is I can check all configuration looks good. I can run all other commands such as  
#ypcat passwd  
#ypwhich  
#ypdomainname

but can’t login through those NIS users, also can’t see NIS user details through “id nis\_userID” command.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:18am UTC](https://forums.rockylinux.org/t/rocky-linux-8-nis-client-issue/6750/4 "2023-08-25T03:18:41Z")

</div>


