Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-12-2004, 03:08 PM
Registered User
 
Join Date: Jun 2004
Location: MA, US
Posts: 2
srjonah
Question SFTP to root files with root login disabled; is su or sudo possible?

To improve security on a RHE server of mine, I disabled root login using my sshd_config. Of course, I can no longer login as root via SSH/SFTP on this machine. I'd like to keep root locked off indefinitely, but I can't figure out another way to edit system files (owned by root) via SFTP.

I have been su'ing over to root from an admin account while connecting via SSH, but I'm used to using a graphical client for SFTP-based edits. In the past, if I wanted to change httpd.conf I would have opened up BBEdit and used its FTP/SFTP tool. If I wanted to send up a file to /root I would've used Interarchy or another tool like it.

I don't know of a way to tell an SFTP program to su or sudo, or if there's even a way? I realize I could be using vi or emacs or another command line editor, but my systems are somewhat complicated and it will be hard to do things that way. Thanks for the help

Last edited by srjonah; 06-12-2004 at 03:11 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-12-2004, 03:22 PM
sawbuck's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 1,246
sawbuck is on a distinguished road
You can su- to root using WinSCP in combination with puTTy. Check the following link, open source and developer is aware of forum requests.
http://winscp.sourceforge.net/eng/about.php
HTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-12-2004, 03:28 PM
Registered User
 
Join Date: Jun 2004
Location: MA, US
Posts: 2
srjonah
Oh, unfortunately I can't run WinSCP, since I'm using Mac OSX 10.3 with Darwin. I did look to see that there's a Unix version of putty, v0.54. Do you think I could use that in conjunction with an SFTP alternative, like Interarchy or BBEdit (Mac programs, I realize they're not as well known,) to solve my problem? Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-12-2004, 03:37 PM
sawbuck's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 1,246
sawbuck is on a distinguished road
Putty will give you access to root by using su-. I edit the system files online using pico making backups first of course. Will that work for you?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc