I configured sudo. But when i login to a user with sudo, it will prompt me for my password. However if I su to other user it will not ask me for a password. How do i tackle this?
Please see the below log
$ id
uid=228(sudotst) gid=204(L1Group) //Logged in as sudotst user
$
$
$ bash
bash-4.3$
bash-4.3$ sudo su - kshah //i switch to user kshah and it prompts me for
password which is expected
Password:
$
$ id
uid=216(kshah) gid=203(admin) groups=1(staff)
$
$
$ sudo su - alakde //Now when I switch to other user why it does not ask me for a password.
$
$ id
uid=210(alakde) gid=1(staff) groups=204(L1Group)
$