In Files

Parent

Methods

Class/Module Index [+]

Quicksearch

Sys::User

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

new click to toggle source
new{ |user| ... }

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.

static VALUE user_init(VALUE self){

Public Instance Methods

User#groups # => ['staff', 'admin', ...] click to toggle source

Returns an array of groups the user belongs to.

static VALUE user_groups(VALUE self){

[Validate]

Generated with the Darkfish Rdoc Generator 2.