struct Libcrown::User
- Libcrown::User
- Struct
- Value
- Object
Overview
Represents a user line of /etc/passwd
.
Defined in:
user.crConstructors
Instance Method Summary
-
#full_name : String
Name is the user's real or display name.
-
#full_name=(full_name : String) : String
Name is the user's real or display name.
-
#gecos_comment : String
Comment field to add informations related to the user, excluding the first one (full name).
-
#gecos_comment=(gecos_comment : String) : String
Comment field to add informations related to the user, excluding the first one (full name).
-
#gid : UInt32
Primary group ID.
-
#gid=(gid : UInt32)
Primary group ID.
-
#home_directory : String
Absolute path to the directory the user will be in when they log in.
-
#home_directory=(home_directory : String)
Absolute path to the directory the user will be in when they log in.
-
#login_shell : String
Absolute path of a command (/bin/false) or shell (/bin/bash) executed at user's login.
-
#login_shell=(login_shell : String)
Absolute path of a command (/bin/false) or shell (/bin/bash) executed at user's login.
-
#name : String
Unique user name.
-
#name=(name : String) : String
Unique user name.
-
#password : PasswordState
Usually hashed password stored in
/etc/shadow
. -
#password=(password : PasswordState)
Usually hashed password stored in
/etc/shadow
.
Constructor Detail
Creates a new user.
Instance Method Detail
Name is the user's real or display name. It might be blank. This is the first (or only) entry in the GECOS field list.
Name is the user's real or display name. It might be blank. This is the first (or only) entry in the GECOS field list.
Comment field to add informations related to the user, excluding the first one (full name).
Comment field to add informations related to the user, excluding the first one (full name).
Absolute path to the directory the user will be in when they log in. Defaults to /
if not defined.
Absolute path to the directory the user will be in when they log in. Defaults to /
if not defined.
Absolute path of a command (/bin/false) or shell (/bin/bash) executed at user's login.
Absolute path of a command (/bin/false) or shell (/bin/bash) executed at user's login.