McdeSys: mcde_sys_users/user_add/user_delete (users.c, POSIX getpwent and useradd/userdel), user_set_password and user_set_admin per system (NetBSD: pw_gensalt+crypt for usermod -p, wheel; a group member removed by rewriting the group's line as user.c does, since usermod -G only appends -- measured; Linux: chpasswd on stdin, gpasswd, sudo), mcde_sys_update_check/apply (NetBSD: /etc/makronix/update, RELEASE, sysupgrade, pkg_add -uu; Linux: apt-get). A secret goes through a pipe, never on a command line. Tests: test_sysinfo refuses a bad login and, not as root, adding (PASS on Linux and NetBSD); as root in the NetBSD VM add/admin on/off/password/delete pass and /etc/group is as before. dtsystemsettings: Accounts (list, Add/Delete/Password/Administrator, Unlock... through su -m root in a terminal, password fields show stars), Software Update (running, available, new packages, source, Check Now, Update Now... runs -apply-update as root in a terminal; the check runs after the pane shows: apt took 21 s here). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
607 B
Makefile
16 lines
607 B
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
# dtsystemsettings, the settings of the computer in one window (main.c);
|
|
# panes.c is the list of the panes, plain C with its own tests (make check).
|
|
bin_PROGRAMS = dtsystemsettings
|
|
|
|
dtsystemsettings_SOURCES = main.c panes.c panes.h ui.h accounts.c update.c
|
|
dtsystemsettings_CPPFLAGS = -I$(top_srcdir)/include $(DT_INCDIR) \
|
|
-I$(top_builddir)/include \
|
|
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
|
|
dtsystemsettings_LDADD = $(LIBMCDESYS) $(DTCLIENTLIBS) $(XTOOLLIB)
|
|
|
|
check_PROGRAMS = test_panes
|
|
test_panes_SOURCES = test_panes.c panes.c panes.h
|
|
TESTS = test_panes
|