Advertisement

11.18.2008 at 07:06PM PST, ID: 23916617 | Points: 500
[x]
Attachment Details

Need sudo for Plesk domain ssh user

Tags:

CentOS Plesk

Hi,

I try to make sudo available to an ssh user I created through Plesk on CentOS 5.2

So far
- I installed sudo, as it was not available
> yum sudo install
- Added the user I wanted to the wheel group
> usermod -a -G wheel theuser
- Uncommented %wheel in /etc/sudoers

But noticed sudo is not available if I log in as that user.  
I noticed /var/www/vhosts/<domain>/usr/bin did not include sudo, so I copied it from /usr/bin,
but then shared libraries started to be missing:
"sudo: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory"
So I figured I could go through this and copy one missing library after the other from it's original location to the respective /var/www/vhosts/<domain> folder, but I assume there is a better way to do so.

Thank you

Top Expert: arnold
Expert Since: 04/18/1997
Accepted Solutions: 1118
arnold has been an Expert for 11 years 8 months, during which he has posted 4638 comments and answered 1118 questions. arnold is just one of 832 experts in the Linux Administration Zone.
 
 
 
 
20081119-EE-VQP-48 - Hierarchy / EE_QW_2_20070628