Sudoers in Centos


 
Thread Tools Search this Thread
Operating Systems Linux Sudoers in Centos
# 1  
Old 09-15-2015
Sudoers in Centos

In our servers we don't have proper groups and No active Directory.
We are adding Users locally and providing users a public key, that's the way they can connect to the servers using .ppk file.

My manager ask me to prompt for a password based login when they try for Sudo. (Currently it was set up for no password in sudoers file)

Since we don't have a Password set up on these boxes is there any way we can achieve this task.

I am thinking as below:
  1. LDAP based authentication
  2. We can add a password locally in the /etc/passwd file in that way it will be encrypted and copied over to local server. then we can modify sudoers file to prompt for the password.

Please let me know is there any other way we can address this thank you for your valuable suggestions Smilie

Thanks

Last edited by rbatte1; 09-18-2015 at 11:43 AM.. Reason: Converted to formatted numbered list instead of just text numbered list
# 2  
Old 09-17-2015
AFAIK:
If you want the users to type a password for sudo, then they must have a password for their own account.
Where there is no password for one owns account, it cannot be entered upon sudo, however, one can have an account with password with a passwordless sudo.

Another idea, but i dont know how to implement, would be ssh-key files.
See: ssh-keygen and probably ssh-copy-id of openssh package for more details.

Hope this helps to get you started.
This User Gave Thanks to sea For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Solaris

Sudoers

Having a bit of a discussion with a software vendor about this. Can anyone confirm my understanding? /etc/sudoers file example:- user1 server1 = NOPASSWD:/usr/bin/ls -l user1 server1 = NOPASSWD:/usr/bin/file But then the following command fails (logged in on server 1 as user1) because... (2 Replies)
Discussion started by: psychocandy
2 Replies

2. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

3. Solaris

sudoers

what is the configuration file for sudo? can we edit it as like other file or will it create any adverse effect on editing that file? thanks in advance dinu (1 Reply)
Discussion started by: dinu
1 Replies

4. Solaris

sudoers

this is for the first time i am going to use sudoers i want know how to create sudoers and giving privileges for that users thanks in advance dinu (6 Replies)
Discussion started by: dinu
6 Replies

5. UNIX for Dummies Questions & Answers

sudoers

i just installed/configured apache2.0 on my own aix5.3 mini server. i can start/stop apache by root, but i want to start it under my login id(admin) instead. i need to execute this command: /usr/bin/sudo /usr/IBM/HTTPServer/bin/apachectl stop/start. (5 Replies)
Discussion started by: tjmannonline
5 Replies

6. UNIX for Dummies Questions & Answers

sudoers on HP 11.11

Having a "running low on coffee" moment here & need help. On HP 11.11 where is the sudoers file located; I looked every place I could think of and don't see it. Thanks in advance:confused: (2 Replies)
Discussion started by: dhlopomo
2 Replies
Login or Register to Ask a Question