Class Sys::User
In: ext/sys/admin.c
Parent: Object

Encapsulates information typically found in /etc/passwd

Methods

groups   new  

Attributes

access_class  [RW]  The user‘s access class
age  [RW]  Used in the past for password aging. Deprecated in favor of /etc/shadow
change  [RW]  Next date a password change will be needed
comment  [RW]  Another comment field. Rarely used.
dir  [RW]  The absolute pathname of the user‘s home directory
expire  [RW]  Account expiration date
gecos  [RW]  A comment field. Rarely used.
gid  [RW]  The user‘s primary group ID
login_device  [R]  The name of the terminal device the user last logged on with
login_host  [R]  The hostname from which the user last logged in
login_time  [R]  The last time the user logged in
name  [RW]  The user name associated with the account
passwd  [RW]  The user‘s encrypted password. Deprecated in favor of /etc/shadow
quota  [RW]  The user‘s alloted amount of disk space
shell  [RW]  The user‘s login shell
uid  [RW]  The user‘s user ID

Public Class methods

Creates and returns a User object, which encapsulates the information typically found within an /etc/passwd entry, i.e. a struct passwd.

If a block is provided, yields the object back to the block.

Public Instance methods

Returns an array of groups the user belongs to.

[Validate]