2 Copyright © 2016, 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"
18 #define USER_NAME "aros"
19 #define USER_SHELL "sh"
20 #define USER_DIR "/home"
22 void __fill_passwd(struct passwd
*pwd
)
24 pwd
->pw_name
= USER_NAME
;
25 pwd
->pw_uid
= USER_UID
;
26 pwd
->pw_gid
= USER_GID
;
27 pwd
->pw_dir
= USER_DIR
;
28 pwd
->pw_shell
= USER_SHELL
;
29 pwd
->pw_passwd
= USER_NAME
;
30 pwd
->pw_gecos
= USER_NAME
;
33 int __init_usergrp(struct PosixCIntBase
*PosixCIntBase
)
35 PosixCIntBase
->uid
= USER_UID
;
36 PosixCIntBase
->euid
= USER_UID
;
41 ADD2OPENLIB(__init_usergrp
, 5);