I am trying following this guideto give root privileges to a user called deploy.
But I am unable to su to deploy user.
Steps I have taken,
logged in as a root user then I added the deploy which is a local user
su deploy (giving the deploy users password here)
I always get su: incorrect password with the correct password.
And I am seeing following on my /var/log/secure
su: pam_sss(su:auth): received for user deploy: 10 (User not known to the underlying authentication module)
out put of
getent passwd deploy
deploy:x:500:501::/home/deploy:/bin/bash
content of my /etc/nsswitch.conf
# This file is controlled by Puppet
passwd: files sss
shadow: files sss
group: files sss
hosts: files dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files sss
publickey: nisplus
automount: files
aliases: files nisplus
/etc/shadow relevant line
deploy:xxxxxxxxxx:17204:0:99999:7:::