2 Copyright © 2016-2017, The AROS Development Team. All rights reserved.
5 Desc: single user defintion for POSIX user/groups
9 #include "__posixc_intbase.h"
11 #include <exec/types.h>
12 #include <aros/symbolsets.h>
14 #include "__usergrp.h"
16 #define DEF_USER_UID 1000
17 #define DEF_USER_GID 1000
18 #define DEF_USER_NAME "aros"
19 #define DEF_USER_SHELL "sh"
20 #define DEF_USER_DIR "/home"
22 void __fill_passwd(struct passwd
*pwd
, uid_t uid
)
24 /* we only support the hard coded default user atm */
25 pwd
->pw_name
= DEF_USER_NAME
;
26 pwd
->pw_uid
= DEF_USER_UID
;
27 pwd
->pw_gid
= DEF_USER_GID
;
28 pwd
->pw_dir
= DEF_USER_DIR
;
29 pwd
->pw_shell
= DEF_USER_SHELL
;
30 pwd
->pw_passwd
= DEF_USER_NAME
;
31 pwd
->pw_gecos
= DEF_USER_NAME
;
34 int __init_usergrp(struct PosixCIntBase
*PosixCIntBase
)
36 PosixCIntBase
->uid
= DEF_USER_UID
;
37 PosixCIntBase
->euid
= DEF_USER_UID
;
38 PosixCIntBase
->gid
= DEF_USER_GID
;
39 PosixCIntBase
->egid
= DEF_USER_GID
;
44 ADD2OPENLIB(__init_usergrp
, 5);