Displaying 1 result from an estimated 1 matches for "group_private_key".
2003 Nov 27
2
Question about adding another parameter for OpenSSH
...used
with ssh, it is allowed to have group readable private key?
Thank you very much.
--- authfile.c.orig Thu Nov 27 15:01:01 2003
+++ authfile.c Thu Nov 27 16:50:39 2003
@@ -496,7 +496,7 @@
}
static int
-key_perm_ok(int fd, const char *filename)
+key_perm_ok(int fd, const char *filename, int group_private_key)
{
struct stat st;
@@ -510,7 +510,10 @@
#ifdef HAVE_CYGWIN
if (check_ntsec(filename))
#endif
- if ((st.st_uid == getuid()) && (st.st_mode & 077) != 0) {
+ if ((!group_private_key
+ && (st.st_uid == getuid()) && (st.st_mode & 077) != 0)
+ || (group_pr...