How to preserve the permission/owner/group owner on the pubring.gpg, secring.gpg and trustdb.gpg

Jeff Fisher jeffenstein at gmail.com
Fri Aug 8 16:40:18 CEST 2014


Hello,

On Thu, Aug 07, 2014 at 12:52:48AM +0200, Sieu Truc wrote:
> I know well your advices , but actually i need to assign 3 users to
> handle the keyring.  One like admin , he can modify and add the
> secret key Another like test1 , he cannot add secret key but he can
> add public keys And the third callled test2 , he cannot add any key
> but can use that keyring for do a securisation or desecurisation.

Maybe you could setup 'sudo' to do this?  sudo would let the user run
a command as another user, and lets you specify the arguments that can
or cannot be used with the command. It's also easy to write a wrapper
script to do the function you want and give sudo access to this
script.

This way, you do not need to change the permissions on any of the
files; they would only be owned by the 'admin' user, and in addition
you can be more specific in specifying what the other users are able
to do.

Best Regards,
Jeff



More information about the Gnupg-users mailing list