Hi, when using the awesome **rmate** to remote-edit some files I ran into the problem that I had to use sudo for writing into a file.
ubuntu@ubuntu:/etc/apache2$ rmate httpd.conf File httpd.conf is not writable! Use -f/--force to open anyway.
ubuntu@ubuntu:/etc/apache2$ sudo rmate httpd.conf ubuntu@ubuntu:/etc/apache2$ /usr/local/bin/rmate:157:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) from /usr/local/bin/rmate:157:in `new' from /usr/local/bin/rmate:157:in `connect_and_handle_cmds' from /usr/local/bin/rmate:207:in `block in <main>' from /usr/local/bin/rmate:206:in `fork' from /usr/local/bin/rmate:206:in `<main>'
The documentation mentions a sudo-replacement *rvmsudo* which keeps the environment. But this seems not to part of the standard repositories, which makes it nearly impossible to install it on a clients machine.
Any idea?
Kind regards, Ingo