On Friday 11 August 2006 22:13, Nick Rout wrote:
> > >>>>> If I edit it with 'sudo -e xorg.conf' to get root I still can't
> > >
> > > save it.
> >
> > You must have mistaken this - it's a nonsensical command, as far as I
> > can tell: opening up a blank 'xorg.conf' in /var/tmp/ - no use at all.
>
> indeed it is. sudo has no -e option.
Really??
<quote type=`man sudo`>
sudo accepts the following command line options:
.
.
.
-e The -e (edit) option indicates that, instead of running a command,
the user wishes to edit one or more files. In lieu of a command,
the string "sudoedit" is used when consulting the sudoers file.
If
the user is authorized by sudoers the following steps are taken:
1. Temporary copies are made of the files to be edited with
the owner set to the invoking user.
2. The editor specified by the VISUAL or EDITOR environment
variables is run to edit the temporary files. If neither
VISUAL nor EDITOR are set, the program listed in the
editor
sudoers variable is used.
3. If they have been modified, the temporary files are copied
back to their original location and the temporary versions
are removed.
If the specified file does not exist, it will be created. Note
that unlike most commands run by sudo, the editor is run with the
invoking user's environment unmodified. If, for some reason, sudo
is unable to update a file with its edited version, the user will
receive a warning and the edited copy will remain in a temporary
file.
</quote>
man sudo or #sudo in the Konqueror Location bar for the whole sordid story.
man page version is:-
1.6.8p12 June 20, 2005 SUDO(8)
--
CS