Add user celladmin with su access
add below using visudo
visudo
celladmin ALL=(ALL) NOPASSWD: ALL
Now to test
login as celladmin user
type
sudo -s
To set password not expire
password unexpire
chage -l celladmin
chage -I -1 -m 0 -M 99999 -E -1 celladmin
add user to sudo with no password
oracle ALL=(root) NOPASSWD: /bin/su -
add below using visudo
visudo
celladmin ALL=(ALL) NOPASSWD: ALL
Now to test
login as celladmin user
type
sudo -s
To set password not expire
password unexpire
chage -l celladmin
chage -I -1 -m 0 -M 99999 -E -1 celladmin
add user to sudo with no password
oracle ALL=(root) NOPASSWD: /bin/su -
No comments:
Post a Comment