Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Avellinese

macrumors newbie
Original poster
Sep 21, 2012
1
0
I use a terminal window to ssh to a remote server. The connection gets terminated after a short period of inactivity. I searched and found that I can solve this problem by editing a configuration file in /etc. But when I try to do that using emacs, it opens in "read-only" mode--the file is owned by the root account. How can I edit this file? Thanks for any help you can provide.
 
I use a terminal window to ssh to a remote server. The connection gets terminated after a short period of inactivity. I searched and found that I can solve this problem by editing a configuration file in /etc. But when I try to do that using emacs, it opens in "read-only" mode--the file is owned by the root account. How can I edit this file? Thanks for any help you can provide.

When you edit the file, you can preceded the command with "su". You'll have to have root credentials.

ie: su edit filename
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.