X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=m4%2Flls%2Finclude%2Fuser.m4;fp=m4%2Flls%2Finclude%2Fuser.m4;h=6d4d31b741ca6e78465d7f89f1f75469c070aa7d;hb=15d4c69ddcf88dd9046ed8d2847a428145a32045;hp=0000000000000000000000000000000000000000;hpb=e3f528812242a69d366cc562c78a4372bd9839c7;p=paraslash.git diff --git a/m4/lls/include/user.m4 b/m4/lls/include/user.m4 new file mode 100644 index 00000000..6d4d31b7 --- /dev/null +++ b/m4/lls/include/user.m4 @@ -0,0 +1,21 @@ +[option user] + short_opt = u + summary = run as the given user + arg_info = required_arg + arg_type = string + typestr = username + [help] + PROGRAM() does not need any special privileges. + + If started as root (EUID == 0) this option must be given at the + command line (not in the configuration file) so that PROGRAM() + can drop the root privileges right after parsing the command line + options, but before parsing the configuration file. In this case, + real/effective/saved UID are all set to the UID of . As + the configuration file is read afterwards, those options that have + a default value depending on the UID (e.g. the directory for the + configuration file) are computed by using the uid of . This + option has no effect if PROGRAM() is started as a non-root user (i.e. + EUID != 0). + [/help] +