Author Topic: File Editing  (Read 2005 times)

pucho

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.Pucho.com
File Editing
« on: February 23, 2005, 11:29:27 am »
If a file is owned by root, can it be edited by a program other than vi?
Any clues appreciated. Thanks in advance.

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
File Editing
« Reply #1 on: February 23, 2005, 12:06:52 pm »
Sure, as long as the program is started by root (or setuid, but that's a security hazard). Check out nano, that's a great one

Or what do you mean? Like in "vipw"? Try "export EDITOR=<editorname>", than another editor than vi is used...

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"