YaST2 Developers Documentation: UserAddDefs.ycp



functions
files
intro

UserAddDefs.ycp

  • Johannes Buchhold <jbuch@suse.de>
  • Purpose: Handle all settings from the files
  • /etc/defaults/useradd and
  • /etc/shells

Imports

  • Mode
  • Report
  • UserSettings

Variables

Functions

local useradd_defaults -> map

keys in useradd_defaults: "group" "home" "inactive" "expire" "shell" "skel"

global Read () -> boolean

Reads settings from /etc/defaults/useradd and /etc/shells

Return value:
true on success

global GetDefaultGid () -> integer

Return the default group id for a new user.

Return value:
gid

global GetDefaultHome () -> string

Return the default home value for a new user.

Return value:
home directory

global GetDefaultShell () -> string

Return the default shell for a new user.

Return value:
shell name

global GetAllShells (symbol todo) -> list

Read the /etc/shells file and return a item list or a string shell list.

Parameters:
todo `items or `stringlist
Return value:
of shells

global Test () -> void

Test Users module


YaST2 Developers Documentation