All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Root-enabled file editor
Is there any program out there that is able to edit files that require root permission? I guess I'm looking for something similar to Webmin's file explorer where it's able to edit and mange file/directories as root but I just don't want the bloat of Webmin. It's really a pain in the butt if I need to edit some config files (nginx, for example) and I have to download the file, edit it locally and then copy back using nano or save to my home directory and overwrite the old file. There's just got to be a better way to do it and I would love to hear your solutions for this kind of thing?
Or maybe I'm just being a lazy bum and I need to favor security over my lazy-bumness.
Comments
sudo launch_your_favorite_editor ?
Well, yeah, but that's too much work because Sublime or Notepad++ is way easier to edit stuff in than nano, imo. Again, it might just be my laziness
>
>
Yup, I know Webmin runs as root and that's why it can do what it does but I would just like something less bloated to edit any files/generally manage all of the filesystem.
Do you have shell access with root to your server? Or is Webmin your only interface?
It's an unmanged vps so I have full permissions and such. You have an idea that doesn't involve an editor inside my ssh client??
what vps control panel are you on? Soulvm? They have a console built into that.
Shared web hosting.
@Damien He said unmanaged vps.
Indeed, but if you're not willing to, or otherwise go way out of your way to avoid, editing files inside a VPS, then why bother with the concept of a VPS?
@Damian True dat!
http://en.wikipedia.org/wiki/Midnight_Commander
http://www.debianhelp.co.uk/mc.htm
apt-get install mc - debian
mc
http://www.debianhelp.co.uk/mc.htm
apt-get install mc - debian
mc
?
>
You take me as a some sort of monster???
But anyway, I get the general idea here that I just shouldn't be so lazy Although mc seems like a bit of a nicer compromise.
Maybe (which means probably never) I'll make a basic web-based file editor that runs under root. Cue the security risk replies please
Or you could just, you know, open up SFTP as root and edit your files as you want to.
Ewww. Also, I believe root login is disabled and I would like to keep it that way.
*Ewww to logging in as root
@mrowen fire up Xwindows on your VPS and use a GUI editor...
Not sure what the problem with logging in as root is?
I use Notepad++ with the NppFTP plugin (connecton type SFTP with key file authentication) when I need more that vi for editing.
So you've answered your own question then.... sudo or su is the only way to gain root access or for a program run under your username to gain root access.
If there was a way for programs to just run as root without any permissions or checks there would be no security.