72fb4e6 Add user and group wrappers

21 files Authored by cheimes 3 years ago, Committed by rcritten 3 years ago,
    Add user and group wrappers
    
    New classes for user and group names provide a convenient way to access
    the uid and primary gid of a user / gid of a group. The classes also
    provide chown() and chgrp() methods to simplify common operations.
    
    The wrappers are subclasses of builtin str type and behave like ordinary
    strings with additional features. The pwd and grp structs are retrieved
    once and then cached.
    
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    
        
file modified
+3 -2
file modified
+101 -13
file modified
+1 -4