How to allow userA to su another user
Hi folks,
As root I have created 'postgresadmin' as a new user # adduser postgresadmin Thereafter root can 'su' postgresadmin without password. Now I am prepared to allow 'userA' to 'su' postgresadmin $ su postgresadmin Password Kindly advise how to add a password for userA to 'su' postgresadmin. OR which file shall I edit to add a password for userA to 'su' postgresadmin. TIA B.R. satimis |
"Kindly advise how to add a password for userA to 'su' postgresadmin. OR which file shall I edit to add a password for userA to 'su' postgresadmin."
Either root or postgresadmin can create the password for postgresadmin by using the passwd command. See: man passwd ___________________________________ Be prepared. Create a LifeBoat CD. http://users.rcn.com/srstites/LifeBo...home.page.html Steve Stites |
Hi jailbait,
Tks for your advice. I went through man passwd and could not find my answer there. What I want to do is as follows; Now 'userA' can't su (switch user) 'postgresadmin'. He must su 'root' first with root password and then su 'postgresadmin. But I do want giving userA root password. I expect to create a password for him to su 'postgresadmin [userA@localhost userA]$ su - postgresadmin Password: su: incorrect password There is no password created yet. I tried 'root password' and 'userA's own password' and all did not work I am trying to find a correct command line creating a password for userA to su 'postgresadmin' directly/himself. TIA B.R. satimis |
"I am trying to find a correct command line creating a password for userA to su 'postgresadmin' directly/himself."
userA cannot create a password for postgresadmin. Either root or postgresadmin can create a password for postgresadmin using passwd. Then userA can su to postgresadmin using that password. ------------------------- Steve Stites |
All times are GMT -5. The time now is 04:00 AM. |