Add a new flag, -e, that makes it possible to give users the ability

to edit files with the editor of their choice as the invoking user,
not the runas user.  Temporary files are used for the actual edit
and the temp file is copied over the original after the editor is done.
This commit is contained in:
Todd C. Miller
2004-01-21 23:00:43 +00:00
parent 4dc5700a6d
commit c7d74402f3

1
sudo.h
View File

@@ -113,6 +113,7 @@ struct sudo_user {
#define MODE_IMPLIED_SHELL 004000
#define MODE_RESET_HOME 010000
#define MODE_PRESERVE_GROUPS 020000
#define MODE_EDIT 040000
/*
* Used with set_perms()