def gid
      return group.kind_of?(Integer) ? group : Etc.getgrnam(group.to_s).gid if group
      return Etc.getpwuid(uid).gid if using_login?
      nil
    end
def gid
      return group.kind_of?(Integer) ? group : Etc.getgrnam(group.to_s).gid if group
      return Etc.getpwuid(uid).gid if using_login?
      nil
    end
The gid that the subprocess will switch to. If the group attribute is
 given as a group name, it is converted to a gid by Etc.getgrnam
 TODO migrate to shellout/unix.rb