-
Notifications
You must be signed in to change notification settings - Fork 16
/
AddUser.out
92 lines (92 loc) · 6.62 KB
/
AddUser.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Dump ==========================================================
Read .etc.default.useradd."expire" nil
Read .etc.default.useradd."group" 100
Read .etc.default.useradd."groups" "audio,video"
Read .etc.default.useradd."home" "/home"
Read .etc.default.useradd."inactive" nil
Read .etc.default.useradd."shell" nil
Read .etc.default.useradd."skel" 0
Read .etc.login_defs.UMASK 0
Read .target.string "/etc/shells" 0
Read .etc.nsswitch_conf.passwd 0
Read .ldap_conf.v.binddn 0
Write .target.ycp "/var/lib/YaST2/users.ycp" $[] true
Return
Dump ---- current user:
Dump $[]
Return
Dump ---- current user (empty add):
Dump $["chown_home":true, "cn":"", "create_home":true, "gidNumber":"100", "grouplist":$["audio":"1", "video":"1"], "groupname":"users", "loginShell":"", "plugins":[], "shadowExpire":"", "shadowFlag":"", "shadowInactive":"", "shadowLastChange":"0", "shadowMax":"99999", "shadowMin":"0", "shadowWarning":"7", "type":"local", "uidNumber":"1000", "userPassword":nil, "what":"add_user"]
Return
Dump ---- current user (after rich add):
Dump $["chown_home":true, "cn":"", "create_home":true, "encrypted":true, "gidNumber":"100", "grouplist":$["audio":"1"], "groupname":"users", "homeDirectory":"/local/home/aaa", "loginShell":"", "plugins":[], "shadowExpire":"", "shadowFlag":"", "shadowInactive":"", "shadowLastChange":"0", "shadowMax":"99999", "shadowMin":"0", "shadowWarning":"7", "text_userpassword":"qqqqq", "type":"local", "uid":"aaa", "uidNumber":"501", "userPassword":"crypted_qqqqq", "what":"add_user"]
Execute .target.bash_output "echo 'aaa' | grep '^[[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.$-]\\?$'" $["LANG":"C"] $["stdout":"aaa"]
Return
Dump ---- current group (before user commit):
Dump $["cn":"users", "gidNumber":"100", "more_users":$["hh":"1", "ii":"1"], "type":"local", "userPassword":"x", "userlist":$[]]
Dump ---- check user after add:
Dump
Dump ---- commit user:
Return true
Dump ---- current group (afer user commit):
Dump $["cn":"users", "gidNumber":"100", "more_users":$["aaa":"1", "hh":"1", "ii":"1"], "org_cn":"users", "org_gidNumber":"100", "type":"local", "userPassword":"x", "userlist":$[], "what":"user_change_default"]
Dump =================== no password ==========================
Return
Return
Dump ---- current user (minimal add, used default values):
Dump $["chown_home":true, "cn":"", "create_home":true, "gidNumber":"100", "grouplist":$["audio":"1", "video":"1"], "groupname":"users", "homeDirectory":"/home/hhh", "loginShell":"", "plugins":[], "shadowExpire":"", "shadowFlag":"", "shadowInactive":"", "shadowLastChange":"0", "shadowMax":"99999", "shadowMin":"0", "shadowWarning":"7", "type":"local", "uid":"hhh", "uidNumber":"1000", "userPassword":nil, "what":"add_user"]
Execute .target.bash_output "echo 'hhh' | grep '^[[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.$-]\\?$'" $["LANG":"C"] $["stdout":"hhh"]
Return No password entered.
Dump ---- check user after add:
Dump No password entered.
Dump Try again.
Dump ==================== username conflict ========================
Return
Return
Dump ---- current user (just added):
Dump $["chown_home":true, "cn":"", "create_home":true, "encrypted":true, "gidNumber":"100", "grouplist":$["audio":"1", "video":"1"], "groupname":"users", "homeDirectory":"/home/root", "loginShell":"", "plugins":[], "shadowExpire":"", "shadowFlag":"", "shadowInactive":"", "shadowLastChange":"0", "shadowMax":"99999", "shadowMin":"0", "shadowWarning":"7", "text_userpassword":"qqqqq", "type":"local", "uid":"root", "uidNumber":"1000", "userPassword":"crypted_qqqqq", "what":"add_user"]
Execute .target.bash_output "echo 'root' | grep '^[[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.$-]\\?$'" $["LANG":"C"] $["stdout":"root"]
Return There is a conflict between the entered
Dump ---- check user after add:
Dump There is a conflict between the entered
Dump username and an existing username.
Dump The existing username might belong to a NIS or LDAP user.
Dump
Dump Try another one.
Dump ==================== uidNumber problems ===================
Return
Return
Dump ---- current user (just added):
Dump $["chown_home":true, "cn":"", "create_home":true, "encrypted":true, "gidNumber":"100", "grouplist":$["audio":"1", "video":"1"], "groupname":"users", "homeDirectory":"/home/rrr", "loginShell":"", "plugins":[], "shadowExpire":"", "shadowFlag":"", "shadowInactive":"", "shadowLastChange":"0", "shadowMax":"99999", "shadowMin":"0", "shadowWarning":"7", "text_userpassword":"qqqqq", "type":"local", "uid":"rrr", "uidNumber":"5", "userPassword":"crypted_qqqqq", "what":"add_user"]
Return The selected user ID is not allowed.
Dump ---- check user after add:
Dump The selected user ID is not allowed.
Dump Select a valid integer between 1000 and 60000.
Dump ==================== uid content problems ===================
Return nil
Return
Return
Dump ---- current user (just added):
Dump $["chown_home":true, "cn":"", "create_home":true, "encrypted":true, "gidNumber":"100", "grouplist":$["audio":"1", "video":"1"], "groupname":"users", "homeDirectory":"/home/iii$", "loginShell":"", "plugins":[], "shadowExpire":"", "shadowFlag":"", "shadowInactive":"", "shadowLastChange":"0", "shadowMax":"99999", "shadowMin":"0", "shadowWarning":"7", "text_userpassword":"qqqqq", "type":"local", "uid":"iii$", "uidNumber":"1000", "userPassword":"crypted_qqqqq", "what":"add_user"]
Execute .target.bash_output "echo 'iii$' | grep '^[[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.$-]\\?$'" $["LANG":"C"] $["stdout":""]
Return The username may contain only
Dump ---- check user after add:
Dump The username may contain only
Dump letters, digits, "-", ".", and "_"
Dump and must begin with a letter or "_".
Dump Try again.
Dump ==================== uid for LDAP may contain '$' ==============
Return
Return
Dump ---- current user (just added):
Dump $["chown_home":true, "cn":"", "create_home":true, "dn":"uid=iii$,dc=suse,dc=cz", "encrypted":true, "gidNumber":"100", "grouplist":$["audio":"1", "video":"1"], "groupname":"users", "homeDirectory":"/home/ldap/iii", "loginShell":"", "plugins":[], "shadowExpire":"", "shadowFlag":"", "shadowInactive":"", "shadowLastChange":"0", "shadowMax":"99999", "shadowMin":"0", "shadowWarning":"7", "text_userpassword":"qqqqq", "type":"ldap", "uid":"iii$", "uidNumber":"1000", "userPassword":"crypted_qqqqq", "what":"add_user"]
Execute .target.bash_output "echo 'iii' | grep '^[[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.$-]\\?$'" $["LANG":"C"] $["stdout":"iii"]
Return
Dump ---- check user after add:
Dump
Dump ==========================================================
Dump ============== duplicated UID number =====================
Return
Return
Execute .target.bash_output "echo 'admin' | grep '^[[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.$-]\\?$'" $["LANG":"C"] $["stdout":"admin"]
Return