Changeset 882 for server/common


Ignore:
Timestamp:
Nov 16, 2008, 10:06:32 PM (15 years ago)
Author:
geofft
Message:
Log when using superuser rights to ssh directly to a locker
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/accountadm/admof.c

    r580 r882  
    2929#include <kerberosIV/krb.h>
    3030#include <stdbool.h>
     31#include <syslog.h>
    3132
    3233extern int pioctl(char *, afs_int32, struct ViceIoctl *, afs_int32);
     
    211212    rights &= ~parse_rights(nminus, &p, user);
    212213#ifdef OVERLORDS
    213     if (~rights & PRSFS_ADMINISTER && ismember(user, OVERLORDS))
     214    if (~rights & PRSFS_ADMINISTER && ismember(user, OVERLORDS)) {
     215        openlog("admof", 0, LOG_AUTHPRIV);
     216        syslog(LOG_NOTICE, "giving %s admin rights on %s", user, locker);
     217        closelog();
    214218        rights |= PRSFS_ADMINISTER;
     219    }
    215220#endif
    216221
Note: See TracChangeset for help on using the changeset viewer.