In Files

Parent

Namespace

Class/Module Index [+]

Quicksearch

Sys::Admin

Constants

VERSION

The version of this library

Public Class Methods

get_group(name) click to toggle source
get_group(gid)

Returns a Group object for the given name or gid. Raises an Admin::Error if a group cannot be found for that name or GID.

static VALUE admin_get_group(VALUE klass, VALUE v_value){
Sys::Admin.get_login click to toggle source

Returns the login for the process. If this is called from a process that has no controlling terminal, then it resorts to returning the "LOGNAME" or "USER" environment variable. If neither of those is defined, then nil is returned.

Note that this method will probably return the real user login, but may return the effective user login. YMMV depending on your platform and how the program is run.

static VALUE admin_get_login(VALUE klass){
get_user(name) click to toggle source
get_user(uid)

Returns a User object for the given name or uid. Raises an Admin::Error if a user cannot be found for that name or user ID.

static VALUE admin_get_user(VALUE klass, VALUE v_value){
groups click to toggle source
groups{ |group| ... }

In block form, yields a Group object for each group on the system. In non-block form, returns an Array of Group objects.

static VALUE admin_groups(VALUE klass){
users click to toggle source
users{ |user| ... }

In block form, yields a User object for each user on the system. In non-block form, returns an Array of User objects.

static VALUE admin_users(VALUE klass){

[Validate]

Generated with the Darkfish Rdoc Generator 2.