Help - Search - Members - Calendar
Full Version: How can I give one of my site uid's ssh root access?
The Planet Forums > Operating Systems > Red Hat Linux
8307c4
All right I just locked myself out of the server by editing sshd_config
That problem is fixed.

But I am upgrading and between two servers, looking to transfer files via rsync
and in the past ownership is always the problem, if I do it as root sure enough...

I was looking for a way to login with a site's UID but it won't give me ssh access...
Or very limited, to the point I can get in at the site's level and use rsync, but it doesn't give me access to the cgi-bin.
Perhaps if only that cgi-bin issue can be addressed that might be the best answer.

Because I'd also need to know how to remove said root access later.
But I did manage to transfer all except .htaccess and cgi-bin...
I might tolerate pwning that later, still would like to know why a UID doesn't have access to the bin via ssh...

Thanks guys
markcausa
QUOTE (8307c4 @ Feb 9 2008, 09:53 PM) *
All right I just locked myself out of the server by editing sshd_config
That problem is fixed.

Just for future reference, how did you fix a problem like that? I mean, you disabled SSH for the server, right?
SuperBaby
1) I also locked myself out by APF recently. I had to create a TP ticket and the TP staff must pass the ticket to the Data Center to get it fixed.

2) To login as site user and not as root, you need to add that user under "Manage Wheel Group Users" if you are using cPanel.
Tomy Durden
QUOTE (SuperBaby @ Feb 10 2008, 08:03 AM) *
1) I also locked myself out by APF recently. I had to create a TP ticket and the TP staff must pass the ticket to the Data Center to get it fixed.

2) To login as site user and not as root, you need to add that user under "Manage Wheel Group Users" if you are using cPanel.

If you're using Orbit, use the Outage ticket feature. It'll get that request straight to the Data Centers.

From shell, you can run the following command to add the user to the wheel group:
CODE
gpasswd -a (user) wheel
8307c4
QUOTE (markcausa @ Feb 10 2008, 04:19 AM) *
Just for future reference, how did you fix a problem like that? I mean, you disabled SSH for the server, right?


No, I locked out root user ssh access icon_razz.gif

I believe I either created a ticket through Orbit...
Or possibly fixed it through Webmin user edit.

Not sure anymore.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.