Skip to main content
Home Forums Sudo Editing Files Over a Network Sudo Editing Files Over a Network
Thread

Sudo Editing Files Over a Network

Sudo Editing Files Over a Network Networking 3 posts Aug 16, 2002 — Aug 17, 2002
Is there a way I can edit files as root over the internet? I use BBedit to edit my httpd config file. With BBedit, it can automatically save as root, you simply have to authenticate when you save. Now that my web site is not hosted off my own computer, I could really use an equally easy way to edit the httpd.conf file over my LAN.
Most systems will not allow root to use FTP, which is how BBEdit edits remote files, so you're out of luck there.

Besides, even if you could, that wouldn't tell Apache to reload the config, so you'd still have to log into the server to do that.

It's possible that you could upload/edit another file and have a script on the server copy the changes into the active httpd.conf. That's about the only way off-hand I can think of doing it.
In the usual case, a user *other* than
root owns the httpd and it's files. That
user is usually 'nobody'.

If you do that (ie. change ownership),
then simple rcp/rsh, scp/ssh commands
could work (as would BBedit).
mp.ls