I am trying to create a user with su
access on centos
.
I followed the instructions from this post. but NOTHING worked.
I want to login using su test_user
steps:
sudo adduser test_user
(No prompt to set up password)
I tried su test_user
(prompted for password)
(pressed entered key - did not work)
then I deleted password
sudo passwd -d test_user
Removing password for user test_user.
passwd: Success
Then I tried
su test_user
Password: (just enter key pressed)
su: Permission denied
NOTE: I also changed my sudoers
file to reflect the following at the end of file /etc/sudoers
as indicated in this post.
test_user ALL=(ALL) NOPASSWD:ALL
still nothing worked. Thanks