]> granicus.if.org Git - shadow/blob - TODO
2012-02-13 Mike Frysinger <vapier@gentoo.org>
[shadow] / TODO
1  * Create a common usage function that'd take the array of     
2    long options and an array of descriptions and output that so things would
3    be standardized across the utils.
4    Usage strings should be normalized and split first.
5    Investigate optparse.
6
7
8 /etc/default/useradd
9  * GROUP=1000 should accept a group name.
10
11 Check when RLOGIN is enabled if ruserok() exists
12
13 Move selinux_file_context out of libmisc/copydir.c
14
15 Review hardcoded root account?
16
17 review all call to strto
18
19 libmisc/cleanup_user.c
20         cleanup needed (cleanup_report_add_user* not used)
21
22
23 libxcrypt support
24  * http://wiki.linuxfromscratch.org/patches/browser/trunk/shadow/shadow-4.0.18.1-owl_blowfish-1.patch
25
26 implement getlong, getulong.
27         avoid atoi, atol, atoul, strtol, strtoul, ...
28
29 manpages: comment the RLOGIN parts
30
31 Replace build_list (in lib/gshadow.c) and list (in lib/sgetgrent.c) by
32 comma_to_list()
33
34 Revert the modified files if all files could not be changed.
35   * or warn and indicate which files were modified and which were not.
36   * check the order the files are modified.
37
38 report nscd_flush_cache failures?
39 call nscd from the programs or from lib (commonio?)
40
41 PAM: check if a non-interactive conversation function could be used to set
42 the password in chpasswd and newusers
43
44 WITH_SELINUX
45   - review all tools to check that the strategies are consistent
46
47 chage, chfn, chsh: same change needed as in passwd.
48   - probably need moving check_selinux_access to a separate file.
49
50 testsuite
51  - newgrp
52    - test with unknown user's GID
53
54 newusers
55  - add logging to SYSLOG & AUDIT
56  - use CREATE_HOME
57  - Add a -Z option (see useradd / usermod)
58
59 Document when/where option appeared, document whether an option is standard
60 or not.
61
62 Check all the expiry semantics
63
64 ALL:
65 - move base passwd/shadow/group/gshadow operation to module for allow write
66   different backend modules for db, NIS, LDAP and others. Default backend it
67   will be goot if will be chosen depending on /etc/nsswitch.conf and allow
68   override this by -r <repository> options (where the <repository> can be
69   file, db, nis nisplus, ldap .. like on /etc/nsswitch.conf in service column).
70   passwd have old piece of code with handling -r option and it will be good
71   finish this and propagate on other shadow tools for allow operate on other
72   user databases by well known tools.
73 - Protect against signals. Register do_cleanups in a signal handler.
74
75 - login.defs
76   - generate depending on configuration
77
78 - useradd:
79   - add handle create user mail spool in maildir format.
80   - Add support for -k in -D mode
81   - Add support for -K in -D mode
82   - Add option to create or not the mail spool (and set the default in -D
83     mode)
84   - Change -l to reset the entry if an entry was already there
85   - set the mask in mkdir?
86
87 - userdel:
88   - add backup option for the removal of user resources,
89   - user_busy: check that the user is not running any processes.
90   - missing "deleting group" FAILED
91   - home dir removed, but userdel may fail and may leave the user
92     => warning needed
93
94 - usermod
95   - add an option equivalent to useradd's -l (only when uid is changed)
96   - the mode of new home directories should be set according to the
97     original mode. Does copy_tree does this?
98   - user renamed, order is not kept in /etc/group (see
99     47_usermod-l_no_shadow_file). This is a problem when the first user is
100     considered as the admin.
101   - see mail "user ID change" on  April, 15
102     + fix call to chown (combination of -m and -u/-g)
103     + add tests
104
105 - passwd:
106   - check combination of options (e.g. -u/-l)
107   - when -u refuse to unlock because it would create an empty password, it
108     should not display "Password changed."
109     exit instead?
110
111 - newgrp: check the USE_PAM section.
112
113 - pwck
114   - Add check to move passwd passwords to shadow if there is a shadow
115     entry (with a password).
116   - Add check to move passwd passwords to shadow if there is a shadow
117     file.
118   - Support an alternative /etc/tcb directory as second parameter.
119   - add options -g / -G to specify alternative group / gshadow files
120
121 - su
122   - add a login.defs configuration parameter to add variables to keep in
123     the environment with "su -l" (TERM/TERMCOLOR/...)
124
125 - vipw
126   - set ACLs and XATTRs on the temporary file (and backups?)
127   - vipw + selinux -> use lib/selinux.c