diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 2001-12-15 00:24:27 +0000 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 2001-12-15 00:24:27 +0000 |
commit | 3be11c0b86ca491238db52baa8a5d96762a6461f (patch) | |
tree | 906a0ed9f289130ab7a97060d90f5d8a022c898a /sudo.pod | |
parent | 16c1d2af2e8650a914343c813fad5da688df43a2 (diff) | |
download | sudo-3be11c0b86ca491238db52baa8a5d96762a6461f.tar.gz |
Add new sudoers option "preserve_groups". Previously sudo would not
call initgroups() if the target user was root. Now it always calls
initgroups() unless the -P command line option or the "preserve_groups"
sudoers option is set. Idea from TJ Saunders.
Diffstat (limited to 'sudo.pod')
-rw-r--r-- | sudo.pod | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -42,8 +42,8 @@ sudo - execute a command as another user =head1 SYNOPSIS B<sudo> B<-V> | B<-h> | B<-l> | B<-L> | B<-v> | B<-k> | B<-K> | B<-s> | -[ B<-H> ] [B<-S> ] [ B<-b> ] | [ B<-p> I<prompt> ] [ B<-c> I<class>|I<-> ] -[ B<-a> I<auth_type> ] +[ B<-H> ] [B<-P> ] [B<-S> ] [ B<-b> ] | [ B<-p> I<prompt> ] +[ B<-c> I<class>|I<-> ] [ B<-a> I<auth_type> ] [ B<-u> I<username>|I<#uid> ] I<command> =head1 DESCRIPTION @@ -183,6 +183,14 @@ The B<-H> (I<HOME>) option sets the C<HOME> environment variable to the homedir of the target user (root by default) as specified in passwd(5). By default, B<sudo> does not modify C<HOME>. +=item -P + +The B<-P> (I<preserve group vector>) option causes B<sudo> to preserve +the user's group vector unaltered. By default, B<sudo> will initialize +the group vector to the list of groups the target user is in. +The real and effective group IDs, however, are still set to match +the target user. + =item -S The B<-S> (I<stdin>) option causes B<sudo> to read the password from |