It would be useful to be able to share a password databases. Especially at home or for a group of persons (administrators for example).
This could be easily reach if you grant read/write access for the group on the database file. (I'm discussing for unix-like systems.)
Unfortunately, the definition of the permission is lost. Indeed, when saving the database, a backup is done. It seems that a "move" of the database file is done to the backup file and a new database file is created. And so, this file get the permissions defined by the umask.
We can avoid this performing a copy instead of a move: we copy the database file to the backup file and then save the database in the same file. Thus, database file and backup file keep the right previously defined.
This also avoid the chmod at the end of pwsafe.sh.
Log in to post a comment.