blob: a0d0a647ad166dfd9db914eb74c47c48458cb1b9 (
plain) (
blame)
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
93
94
95
96
97
98
99
|
Initialized console on port COM1 9600-8-N-1
*** PASSWORD/GROUP TEST - 01 ***
Init - getpwent() -- OK, result should be NULL
Init - getgrent() -- OK, result should be NULL
Init - setpwent() -- OK
Init - setgrent() -- OK
Init - getpwent() (1) -- OK
username: root
user password: *
user ID: 0
group ID: 0
real name:
home directory: /
shell program: /bin/sh
Init - getpwent() (2) -- OK
username: rtems
user password: *
user ID: 1
group ID: 1
real name:
home directory: /
shell program: /bin/sh
Init - getpwent() (3) -- OK
username: tty
user password: !
user ID: 2
group ID: 2
real name:
home directory: /
shell program: /bin/false
Init - getpwent() (4) -- result should be NULL
Init - getgrent() (1) -- OK
group name: root
group password: x
group ID: 0
Init - getgrent() (2) -- OK
group name: rtems
group password: x
group ID: 1
Init - getgrent() (3) -- OK
group name: tty
group password: x
group ID: 2
Init - getgrent() (4) -- result should be NULL
Init - getpwnam("root") -- OK
username: root
user password: *
user ID: 0
group ID: 0
real name:
home directory: /
shell program: /bin/sh
Init - getpwnam("rtems") -- OK
username: rtems
user password: *
user ID: 1
group ID: 1
real name:
home directory: /
shell program: /bin/sh
Init - getpwnam("suser") -- result should be NULL
Init - getpwuid(0) -- OK
username: root
user password: *
user ID: 0
group ID: 0
real name:
home directory: /
shell program: /bin/sh
Init - getpwuid(1) -- OK
username: rtems
user password: *
user ID: 1
group ID: 1
real name:
home directory: /
shell program: /bin/sh
Init - getpwuid(4) -- result should be NULL
Init - getgrnam("root") -- OK
group name: root
group password: x
group ID: 0
Init - getgrnam("rtems") -- OK
group name: rtems
group password: x
group ID: 1
Init - getgrgid(0) -- OK
group name: root
group password: x
group ID: 0
Init - getgrgid(1) -- OK
group name: rtems
group password: x
group ID: 1
Init - getgrgid(4) -- result should be NULL
Init - endpwent() -- OK
Init - endgrent() -- OK
*** END OF PASSWORD/GROUP TEST - 01 ***
|