nekral-guest
e88d1f5803
* libmisc/mail.c, libmisc/copydir.c: Added missing include of
...
<assert.h>
2009-04-27 20:09:18 +00:00
nekral-guest
988f7334ad
* libmisc/env.c: Added assertions on the snprintf results.
2009-04-27 20:07:59 +00:00
nekral-guest
80fd2969c9
* libmisc/utmp.c: Replace HAVE_UTMPX_H by USE_UTMPX.
...
* libmisc/utmp.c: Removed old comment on HAVE_STRUCT_UTMP_UT_ID
and UTMPX support.
2009-04-27 20:06:25 +00:00
nekral-guest
13b74243a6
* NEWS, configure.in: Added configure option --enable-utmpx,
...
disabled by default. This defines USE_UTMPX, which should be used
instead of HAVE_UTMPX_H.
2009-04-27 20:03:48 +00:00
nekral-guest
c7035dbe9c
* man/po/fr.po: Fix typo.
2009-04-27 19:56:34 +00:00
nekral-guest
8f78169a52
* src/newgrp.c: Close the databases before changing the UDI and
...
GID.
2009-04-26 17:11:38 +00:00
nekral-guest
5766499b85
* libmisc/myname.c: Updated splint annotations.
2009-04-26 17:10:49 +00:00
nekral-guest
4fd672c5b9
* lib/commonio.c: Added splint annotations.
...
* lib/commonio.c: old_context should be local to commonio_close(),
not global.
2009-04-26 16:48:51 +00:00
nekral-guest
fca3b5cdc9
* src/passwd.c: Do not freecon strings duplicated with strdup.
...
Also avoid allocation of memory.
* src/passwd.c: Use SYSLOG instead of syslog.
2009-04-26 16:44:54 +00:00
bubulle
8fa9bedcf7
Updated Czech translation
2009-04-26 12:26:10 +00:00
nekral-guest
71f7f777ec
* lib/commonio.c: Do not assumes eptr is always notnull.
...
Updated splint annotations.
2009-04-25 13:41:52 +00:00
nekral-guest
4c1d96e8e0
* lib/commonio.h, lib/commonio.c: Added splint annotations.
2009-04-25 12:43:27 +00:00
nekral-guest
f9bd143012
* NEWS, po/pt.po: Updated Portuguese translation.
2009-04-25 11:06:35 +00:00
nekral-guest
98e42fa944
* libmisc/copydir.c: Added splint annotations.
...
* libmisc/copydir.c: Added assert to help splint.
* libmisc/copydir.c: Free allocated structures in cas of failure.
* libmisc/copydir.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/copydir.c: Use buffers of size PATH_MAX instead of 1024
for filenames.
* libmisc/copydir.c: Use fchmod and fchown to change the mode of
the opened file.
* libmisc/copydir.c: Indicate the mode to open(), even if we chmod
later.
2009-04-24 23:41:28 +00:00
nekral-guest
ab6c366668
* lib/prototypes.h: Added prototypes of getulong() and get_pid().
...
* lib/prototypes.h: Added splint annotations.
2009-04-24 23:35:57 +00:00
nekral-guest
fc656ad7bd
* lib/commonio.c: Use get_pid() instead of strtol.
...
* lib/commonio.c: Replace an int by a size_t.
2009-04-24 23:35:01 +00:00
nekral-guest
1353c71054
* lib/commonio.h: Added splint annotations.
2009-04-24 23:33:47 +00:00
nekral-guest
566fbac1ef
* lib/sgroupio.c: Free allocated structures on failure.
...
* lib/sgroupio.c: Added splint annotations.
2009-04-24 23:32:52 +00:00
nekral-guest
496002abc9
* lib/Makefile.am, lib/get_pid.c, lib/getulong.c: Added get_pid()
...
and getulong().
2009-04-24 23:28:15 +00:00
nekral-guest
e8dd48ac09
* lib/getlong.c: Do not check for NULL string but empty string.
2009-04-24 23:27:12 +00:00
nekral-guest
08b4253001
* lib/groupio.c: Updated splint annotations.
...
* lib/groupio.c: Added assert to help splint.
2009-04-24 23:26:31 +00:00
nekral-guest
1a87c69854
* src/useradd.c: Check assumptions on snprintf().
...
* src/useradd.c: Replace peror by an strerror and avoid an
intermediate buffer.
* src/useradd.c: Save errno between the failure and the report by
perror/strerror.
* src/useradd.c: Prefer xmalloc to malloc.
2009-04-24 23:23:51 +00:00
nekral-guest
861773bf77
* src/lastlog.c: Remove function calls from within assert().
2009-04-24 23:05:29 +00:00
nekral-guest
01e88bda16
* libmisc/obscure.c: Change some int to size_t.
2009-04-24 23:04:27 +00:00
nekral-guest
5e45ac1688
* libmisc/console.c: Use a less disturbing construct for splint.
2009-04-24 23:03:14 +00:00
nekral-guest
10396f9536
* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file
...
limit with getlog() / getulong(). This also means, in case of
non-PAM enabled systems, that the umask specified on the GECOS
fields should start with a 0 if specified in octal. (it used to be
force to octal). Do the appropriate cast and range checking.
2009-04-24 22:56:42 +00:00
nekral-guest
0c571784a3
* libmisc/salt.c: In case gettimeofday() fails, get some entropy
...
from the PID.
2009-04-24 22:49:20 +00:00
nekral-guest
7646230de2
* libmisc/setupenv.c: Prefer snprintf to sprintf, even if a small
...
context indicates no issues.
* libmisc/setupenv.c: Avoid implicit conversion of pointers to
booleans.
2009-04-24 22:46:06 +00:00
nekral-guest
42e72c418d
* libmisc/loginprompt.c: Prefer snprintf to sprintf, even if a
...
small context indicates no issues.
2009-04-24 22:27:58 +00:00
nekral-guest
37eec13774
* src/faillog.c: Remove function calls from within assert().
2009-04-24 22:27:09 +00:00
nekral-guest
f28f5f3af4
* libmisc/mail.c: Ignore the return value of puts().
...
* libmisc/mail.c: Prefer snprintf to sprintf, even if a small
context indicates no issues.
2009-04-24 22:22:57 +00:00
nekral-guest
6e357e14fc
* lib/commonio.c, lib/commonio.h, lib/groupio.c, lib/groupio.h,
...
lib/pwio.c, lib/pwio.h, lib/shadowio.c, lib/shadowio.h: Added
splint annotations. The *_locate() and *_next() functions
currently return an observer. As the structure are often modified
by the caller, it could maybe be changed to exposed later. (and
non-const).
2009-04-23 21:19:02 +00:00
nekral-guest
d0d01ffb00
* lib/pwauth.c: Use a boolean for wipe_clear_pass and use_skey.
...
* lib/pwauth.c: Added splint annotations.
* lib/pwauth.c: Added brackets and parenthesis.
* lib/pwauth.c: Avoid assignments in comparisons.
* lib/pwauth.c: Avoid implicit conversion of pointers or
characters to booleans.
2009-04-23 20:46:01 +00:00
nekral-guest
916977c5bb
* src/groupmod.c: Cast ID to ulongs and use ulong formats for IDs.
2009-04-23 20:39:29 +00:00
nekral-guest
af8ff8c1ca
* src/newgrp.c: Added splint annotations.
...
* src/newgrp.c: audit_buf is only used in newgrp. Make it static.
* src/newgrp.c: Ignore the return value of fputs().
* src/newgrp.c: Use exit(EXIT_FAILURE) instead of exit(1).
2009-04-23 20:37:00 +00:00
nekral-guest
3d2f164dca
* libmisc/pwdcheck.c (passwd_check): The progname is not used.
...
* libmisc/pwdcheck.c: Ignore the return value of sleep().
* libmisc/pwdcheck.c: Use exit(EXIT_FAILURE) instead of exit(1).
2009-04-23 20:17:02 +00:00
nekral-guest
c357e94283
* libmisc/setupenv.c: Avoid assignments in comparisons.
...
* libmisc/setupenv.c: Added brackets and parenthesis.
* libmisc/setupenv.c: Ignore the return value of fclose (file
opened read-only)
* libmisc/setupenv.c: Ignore the return value of puts().
* libmisc/setupenv.c:Avoid implicit conversion of pointers to
booleans.
2009-04-23 17:45:42 +00:00
nekral-guest
7f165aab7f
* libmisc/find_new_gid.c, libmisc/find_new_uid.c,
...
libmisc/isexpired.c, src/groupadd.c, lib/pwauth.h, lib/groupmem.c,
lib/shadowmem.c, lib/pwmem.c, lib/prototypes.h: Added splint
annotations.
2009-04-23 17:43:27 +00:00
nekral-guest
956d68c870
* libmisc/loginprompt.c: Use exit(EXIT_FAILURE) instead of
...
exit(1).
* libmisc/loginprompt.c: Avoid implicit conversion of pointers to
booleans.
* libmisc/loginprompt.c: Ignore return value of putc().
2009-04-23 17:34:46 +00:00
nekral-guest
61ebff6d97
* libmisc/env.c, libmisc/age.c: Added splint annotations.
...
* libmisc/age.c: Added brackets and parenthesis.
* libmisc/age.c: Ignore the return value of fclose (file opened
read-only)
* libmisc/age.c: Ignore puts() return value.
* libmisc/age.c: Use exit(EXIT_FAILURE) instead of exit(1).
* libmisc/age.c: Avoid assignments in comparisons.
2009-04-23 17:33:21 +00:00
nekral-guest
0b1397b33b
* lib/fputsx.c, lib/gshadow.c, lib/commonio.h: Added splint
...
annotations.
2009-04-23 11:54:30 +00:00
nekral-guest
a121b9b659
* lib/gshadow.c, lib/commonio.h: Added splint annotations.
2009-04-23 11:53:55 +00:00
nekral-guest
0c6159650d
* lib/get_gid.c: gidstr should not be NULL, but the check was
...
meant to make sure it is not empty.
* lib/get_uid.c: Likewise.
2009-04-23 11:46:06 +00:00
nekral-guest
7b562d96b3
* src/faillog.c: Added splint annotations.
...
* src/faillog.c: Cast ID to ulongs and use ulong formats for IDs.
* src/faillog.c: Ignore fflush() return value.
* src/faillog.c: Added parenthesis.
2009-04-23 11:23:53 +00:00
nekral-guest
988ec76cf8
* src/grpck.c: Ignore puts return value.
...
* src/grpck.c: Avoid variable format string.
2009-04-23 11:21:57 +00:00
nekral-guest
87e15d7b82
* src/lastlog.c: Use EXIT_FAILURE / EXIT_SUCCESS for exit()
...
* src/lastlog.c: Added splint annotations.
* src/lastlog.c: Avoid global pwent.
* src/lastlog.c: Cast ID to ulongs and use ulong formats for IDs.
* src/lastlog.c: Avoid assignment in comparisons.
* src/lastlog.c: Ignore fclose() return value since the file is
only opened for reading.
2009-04-23 11:21:01 +00:00
nekral-guest
77c1b2a369
* src/newgrp.c: Added assertion to guide splint (and me).
2009-04-23 11:17:22 +00:00
nekral-guest
b0db85bc04
* libmisc/find_new_gid.c: Use booleans instead of char fo
...
used_gids.
* libmisc/find_new_gid.c: Use getdef_ulong and cast to git_t to
get GID values.
* libmisc/find_new_gid.c: Use UL as a prefix for ulong values.
* libmisc/find_new_uid.c: Likewise.
2009-04-23 11:16:38 +00:00
nekral-guest
cbd90eed74
* libmisc/yesno.c: Ignore the return value of puts.
2009-04-23 11:14:56 +00:00
nekral-guest
35f0a2e951
* libmisc/age.c: Use exit(EXIT_FAILURE) instead of exit(1).
...
* libmisc/age.c: The return value of execl() is not used.
2009-04-23 11:14:18 +00:00
nekral-guest
614c79defc
* libmisc/xgetXXbyYY.c, libmisc/myname.c, libmisc/getgr_nam_gid.c,
...
libmisc/salt.c, libmisc/list.c, libmisc/cleanup.c, src/login.c,
lib/getdef.h, lib/groupio.c, lib/getlong.c, lib/gshadow_.h,
lib/sgroupio.c, lib/shadowio.c, lib/pwio.c, lib/commonio.h,
lib/fputsx.c, lib/prototypes.h: Added splint annotations.
* lib/groupio.c: Avoid implicit conversion of pointers to
booleans.
* lib/groupio.c: Free allocated buffers in case of failure.
2009-04-23 09:57:03 +00:00
nekral-guest
fe29344b33
* lib/defines.h: Added splint definitions to replace <locale.h>
2009-04-22 21:22:32 +00:00
nekral-guest
2c0f3ef707
* libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c,
...
lib/groupio.h, lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c,
lib/pwio.c, lib/commonio.c, lib/shadowio.h, lib/pwio.h,
lib/commonio.h, lib/prototypes.h: Added splint annotations.
2009-04-22 21:21:14 +00:00
nekral-guest
aebddca35d
* libmisc/utmp.c: Added splint annotations.
2009-04-22 21:07:33 +00:00
nekral-guest
620ee81b7e
* libmisc/utmp.c: Only set ut_time and ut_tv if gettimeofday()
...
succeeds.
2009-04-22 21:06:13 +00:00
nekral-guest
e76a5df932
* libmisc/utmp.c: Fix the check for empty host in prepare_utmp()
...
and prepare_utmpx().
2009-04-22 21:04:16 +00:00
nekral-guest
7fb1063ccd
* libmisc/utmp.c: The ut argument of prepare_utmp() might be NULL.
...
ut_id needs to be forged in that case.
2009-04-22 21:02:46 +00:00
nekral-guest
811288df64
* libmisc/utmp.c: Removed old documentation of setutmp().
2009-04-22 21:00:18 +00:00
nekral-guest
31906409c8
* libmisc/utmp.c: Use xmalloc() rather than malloc().
2009-04-22 20:59:23 +00:00
nekral-guest
b05783da32
* libmisc/utmp.c: The name returned by ttyame() needs to be copied
...
locally.
2009-04-22 20:57:29 +00:00
nekral-guest
54302f6006
* src/login.c: Added splint annotations.
2009-04-22 20:53:15 +00:00
nekral-guest
2a32262725
* src/login.c: Added assert()s for NULL (or ! NULL) username, and
...
pwd. This helps splint.
2009-04-22 20:51:13 +00:00
nekral-guest
c55311aa6d
* src/login.c: After login_prompt(), do not check for unset
...
username, but for empty username.
2009-04-22 20:46:49 +00:00
nekral-guest
3704745289
* lib/defines.h: Define USER_NAME_MAX_LENGTH, based on utmp and
...
default to 32.
* libmisc/chkname.c: Use USER_NAME_MAX_LENGTH.
* src/login.c: Use USER_NAME_MAX_LENGTH instead of the default 32.
username also needs to be bigger than USER_NAME_MAX_LENGTH because
it has to be nul-terminated.
2009-04-22 20:42:48 +00:00
nekral-guest
eae8b63d4f
* src/login.c: Use xmalloc() instead of malloc().
2009-04-22 20:21:17 +00:00
nekral-guest
349efcb0a6
* src/login.c: Ignore the return value of puts(), fputs(),
...
strftime().
2009-04-22 20:17:11 +00:00
nekral-guest
46d697cded
* src/login.c: timeout, delay, and retries should be unsigned.
...
* src/login.c: Ignore the return value of alarm() and sleep().
2009-04-22 20:15:21 +00:00
nekral-guest
53e0ff91d3
* src/login.c: If we cannot get the terminal configuration, do not
...
change the terminal configuration. setup_tty() is just a best
effort configuration of the terminal.
* src/login.c: Ignore failures when setting the terminal
configuration.
* src/login.c: Fail if the ERASECHAR or KILLCHAR configurations
are not compatible with a cc_t type.
2009-04-22 20:12:06 +00:00
nekral-guest
a362a68f53
* src/login.c: utent might be NULL after get_current_utmp().
2009-04-22 20:07:34 +00:00
nekral-guest
332a50c273
* src/login.c: Removed temp_shell. No more used.
...
* src/login.c: lastlog is only used #ifndef USE_PAM
* src/login.c: Rename lastlog to ll to avoid name clash with the
lastlog type.
2009-04-22 20:03:26 +00:00
nekral-guest
790dbb07fc
* src/login.c: Added update_utmp() to group the prepare_utmp and
...
setutmp (and the utmpx versions).
2009-04-22 19:58:39 +00:00
nekral-guest
f59a69f4b6
* src/login.c: Do not include netdb.h. gethostbyname() is no more
...
called from within login.c. Also UT_ADDR does not exist anymore.
2009-04-22 19:54:28 +00:00
nekral-guest
efcbbc3d74
* src/login.c: Check if login is run with effective root
...
privileges. This should be more helpful to users than a failure to
find an utmp entry or failure to access a file.
2009-04-21 22:46:01 +00:00
nekral-guest
a0503bc3a1
Added previous commit changelog.
2009-04-21 22:39:52 +00:00
nekral-guest
fcfa81283e
* NEWS, configure.in: Enable --enable-account-tools-setuid by
...
default for PAM builds, as it used to be before the introduction
of this option.
2009-04-21 22:22:08 +00:00
nekral-guest
fba5cad820
* etc/pam.d/Makefile.am: Distribute all pam.d files, even if
...
ACCT_TOOLS_SETUID is not enabled.
2009-04-21 22:16:17 +00:00
nekral-guest
5bdf239a66
* lib/shadowmem.c: Added spw_free().
...
* lib/shadowio.c: Use spw_free() for shadow_free().
* lib/groupmem.c: Added gr_free().
* lib/groupio.c: Use gr_free() for group_free().
* lib/pwmem.c: Include define.h before prototypes.h
* lib/pwmem.c: Added pw_free().
* lib/pwio.c: Use pw_free() for passwd_free().
* lib/sgroupio.c: Added sgr_free().
* lib/sgroupio.c: Use sgr_free() for gshadow_free().
* lib/prototypes.h: Added gr_free(), pw_free(), sgr_free(),
spw_free().
2009-04-21 22:14:10 +00:00
nekral-guest
408a30f0ba
* libmisc/shell.c: Add brackets and parenthesis.
...
* libmisc/shell.c: Avoid assignments in comparisons.
* libmisc/shell.c: Re-indent.
2009-04-21 22:07:35 +00:00
nekral-guest
c8f45eda53
* lib/defines.h: Added MIN and MAX macros.
...
* libmisc/salt.c: Removed MIN and MAX macros.
2009-04-21 22:06:09 +00:00
nekral-guest
5ad0d896f1
Added more comments to the changelog entry.
2009-04-20 14:06:06 +00:00
nekral-guest
9efd6a53d2
* NEWS, src/lastlog.c: Fix regression causing empty reports.
2009-04-20 14:04:48 +00:00
nekral-guest
18fdfee274
* src/login.c: Get rid of pwent. pwd is sufficient as long as it
...
is always coming from xgetpwnam. There is no need to copy pwd to
pwent, this was not a good idea anyway as the strings from pwd
were not duplicated.
* src/login.c: Always free the pwd and spwd structure when we
retrieve a new one. This will clear the password of the previous
user from the memory.
* src/login.c: user_passwd is used to keep point to the password
of the user being authenticated.
* src/login.c: (non PAM) Fail if the user's entry cannot be found
after the user updated her password (if expire() requested an
update).
* src/login.c: If the user does not exist on the system, there is
no need to build a pwd structure (with shell).
2009-04-20 13:29:15 +00:00
nekral-guest
a6ac4dda75
* src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
...
Just call ttytype.
2009-04-20 13:12:09 +00:00
nekral-guest
c694843da5
* src/login.c: Open the PAM session before pam_setcred and before
...
initgroups. This is more consistent with rfc86.0.
2009-04-20 12:54:17 +00:00
nekral-guest
432faba3e1
* src/login.c: Added helper functions get_pam_user() and
...
get_failent_user().
2009-04-20 12:47:04 +00:00
nekral-guest
70e1a5c9b6
* src/login.c: Added parameter to check_nologin. This will help
...
getting rid of the global pwent variable.
2009-04-20 12:33:01 +00:00
nekral-guest
61c1d100dc
* src/login.c: Added comments.
...
* src/login.c: Close the user and group files before dropping root
privileges.
2009-04-20 12:27:27 +00:00
nekral-guest
d4158bdf77
* src/login.c: We do not need to keep the old umask. Discard the
...
umask() return value.
2009-04-20 12:16:07 +00:00
nekral-guest
1bcf2ffb59
* libmisc/hushed.c, lib/prototypes.h, src/login.c: Change the
...
hushed() prototype to take a username instead of a passwd
structure in argument. The passwd entry is retrieved withing
hushed().
2009-04-20 11:48:59 +00:00
nekral-guest
87ac185752
* libmisc/setugid.c: Updated comments.
2009-04-20 11:43:36 +00:00
nekral-guest
22fbd774dc
* libmisc/failure.h, libmisc/failure.c, src/login.c: Added
...
username as first parameter of failtmp to avoid issues with
non-null terminated ut_user, unavailability of ut_user, incomplete
username (that should not happen currently).
2009-04-20 11:39:16 +00:00
nekral-guest
f3bea401e9
* libmisc/ttytype.c: Add brackets and parenthesis.
...
* libmisc/ttytype.c: Avoid assignments in comparisons.
2009-04-20 11:31:05 +00:00
nekral-guest
2ce68e8aec
* lib/pwio.c, lib/shadowio.c, lib/groupio.c, lib/sgroupio.c: Fill
...
the password fields with zeros before they are freed.
2009-04-20 11:29:17 +00:00
nekral-guest
bf66861e3f
* po/ko.po: Updated Korean translation.
2009-04-19 16:26:17 +00:00
nekral-guest
131e95ffaf
* NEWS, src/login.c: Also check if the authentication token of the
...
user has to be updated in case the user was already authenticated.
2009-04-19 16:22:17 +00:00
nekral-guest
ca10b825c7
* src/login.c: fflg is already restricted to root. Move
...
pam_acct_mgmt(), in case of fflg, earlier. This is equivalent and
simplifies the code.
2009-04-19 16:09:00 +00:00
nekral-guest
2ed05e548b
* libmisc/utmp.c: Always call endutent or endutxent when setutent
...
or setutxent were used.
2009-04-19 15:28:38 +00:00
nekral-guest
8156c3b0be
* src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
...
not get set to unsanitized values.
2009-04-19 13:33:24 +00:00
nekral-guest
d2a822fe39
* libmisc/utmp.c: Do not trust the current utmp entry's ut_line.
...
Always set ut_line based on ttyname(0).
2009-04-17 21:25:30 +00:00
nekral-guest
5298ac3dd9
* NEWS, src/login.c: Do not trust the current utmp entry's ut_line
...
to set PAM_TTY.
2009-04-17 20:40:26 +00:00
nekral-guest
c49371e423
* configure.in: Updated version number.
2009-04-15 21:46:42 +00:00
nekral-guest
76f7ae8d7d
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
...
* po/*.po, man/po/*.po: Updated PO files.
2009-04-15 21:46:06 +00:00
nekral-guest
4d2bee2e23
* NEWS, src/userdel.c: Fixed SE Linux support. semanage should be
...
called at the end.
* src/useradd.c: Always call selinux_update_mapping() (i.e.
semanage), not only when -Z is used.
2009-04-15 21:14:08 +00:00
nekral-guest
a24058d660
* NEWS, srclib/getlong.c: Fix parsing of octal numbers.
...
* NEWS, src/login.c: Fix segfault when no user is provided on the
command line.
2009-04-15 17:50:17 +00:00
nekral-guest
70d9bc6233
libmisc/system.c was contributed by Dan Walsh.
2009-04-15 17:42:34 +00:00
nekral-guest
5fa86c2b42
* NEW, src/vipw.c: SE Linux: Set the default context to the
...
context of the file being edited. This ensures that the backup
file inherit from the file's context.
2009-04-15 17:42:27 +00:00
nekral-guest
acc3423c96
* man/usermod.8.xml: There are no default values for --inactive
...
and --gid. If the options are no provided, the original values are
not changed.
2009-04-14 22:19:11 +00:00
nekral-guest
0b4b3d63da
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
...
* po/*.po, man/po/*.po: Updated PO files.
2009-04-12 01:24:45 +00:00
nekral-guest
6b46161f2d
* src/su.c: If there are no root account, or if the root account
...
has an UID != 0, default to the first UID 0 account.
2009-04-12 00:28:32 +00:00
nekral-guest
08a212ccae
* src/login.c: Restore the echoctl, echoke, onclr flags to the
...
terminal termio flags. Reset echoprt, noflsh, tostop. This
behavior seems to have change by mistake in earlier releases
(4.0.8, for no obvious reason).
2009-04-12 00:17:36 +00:00
nekral-guest
64a9f33ffa
* src/login.c: Fix the count of failures before login exits in
...
case of PAM enabled configurations.
2009-04-12 00:08:26 +00:00
nekral-guest
bc0f4fa509
* man/passwd.1.xml: Document that passwd uses PAM to authenticate
...
and change passwords on PAM-enabled builds.
2009-04-11 23:32:00 +00:00
nekral-guest
681c1d12b5
* src/newusers.c: Add more information to the mkdir and chown
...
failure messages.
2009-04-11 23:30:44 +00:00
nekral-guest
ce156b578f
* man/po/fr.po: Updated some login.defs entries. Thanks to
...
Belkacem Abbas.
2009-04-11 22:41:00 +00:00
nekral-guest
4e32b9fea9
* man/login.defs.d/MAX_MEMBERS_PER_GROUP.xml,
...
man/login.defs.d/CONSOLE_GROUPS.xml: Fix typos.
2009-04-11 22:36:11 +00:00
nekral-guest
5a56996eef
* man/es/Makefile.am: Disable the distribution of Spanish
...
manpages. They are outdated. Please contact
pkg-shadow-devel@lists.alioth.debian.org if you wish to provide
updates.
2009-04-11 18:57:14 +00:00
nekral-guest
554d4f6b95
* src/usermod.c, src/useraddd.c: Fix the usage string so that it
...
does not change depending on the configure option. Use a format.
2009-04-11 18:39:56 +00:00
nekral-guest
80a30dfe6f
* src/gpasswd.c: Fix the usage of the unused macro.
2009-04-11 18:37:59 +00:00
nekral-guest
cab74eddef
* lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A
...
shadow entry is now sufficient for agecheck. Remove the first
passwd entry parameter.
2009-04-11 18:37:08 +00:00
nekral-guest
42590e062f
* src/userdel.c: Rename argv to args to avoid nameclash with the
...
main() parameters.
2009-04-11 16:52:45 +00:00
nekral-guest
3fdefd3e40
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
...
if Zflg is set.
2009-04-11 16:47:32 +00:00
nekral-guest
60a7cc9d7c
* libmisc/getgr_nam_gid.c: Added support for NULL argument.
...
* libmisc/chowntty.c: Reuse getgr_nam_gid(), and get rid of atol().
2009-04-11 16:23:21 +00:00
nekral-guest
ca1bb50c24
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: For system
...
accounts, return the first unused ID, starting from the max value.
This could be useful later to increase the static IDs range.
2009-04-11 16:00:45 +00:00
nekral-guest
8d136297c4
* NEWS, src/useradd.c, man/useradd.8.xml: add -Z option to map
...
SELinux user for user's login.
* NEWS, src/usermod.c, man/usermod.8.xml: Likewise.
* libmisc/system.c, libmisc/Makefile.am, lib/prototypes.h: Added
safe_system(). Used to run semanage.
* lib/prototypes.h, libmisc/copydir.c: Make a
selinux_file_context() an extern function.
* libmisc/copydir.c: Reset SELinux to create files with default
contexts at the end of copy_tree().
* NEWS, src/userdel.c: Delete the SELinux user mapping for user's
login.
2009-04-11 15:34:10 +00:00
nekral-guest
2c400eff94
* src/useradd.c (get_defaults): Close the default file after the
...
default values were read.
2009-04-11 14:55:49 +00:00
bubulle
5d9c298e9d
Slovak translation updated
2009-04-11 13:53:41 +00:00
nekral-guest
413bb19543
* lib/Makefile.am, lib/prototypes.h: Added sgetspent.c.
2009-04-10 22:35:43 +00:00
nekral-guest
db337babbc
* po/POTFILES.in: Added missing files. Sorted.
2009-04-10 22:35:37 +00:00
nekral-guest
84f5ca951c
* lib/getdef.c: Use getlong instead of strtol/strtoul.
...
* libmisc/getlong, lib/getlong.c, libmisc/Makefile.am,
lib/Makefile.am: getlong.c moved from libmisc/ to lib/.
2009-04-10 22:35:26 +00:00
nekral-guest
9a7f5c6b16
* lib/shadow.c: Replace strtol() by getlong(). Also detect more
...
issues in a numerical shadow entry field.
2009-04-10 22:35:14 +00:00
nekral-guest
b5200cf753
* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT
2009-04-10 22:35:07 +00:00
nekral-guest
686ac847aa
Revert " * lib/sgetspent.c: Removed (is not used / compiled) anymore."
...
This reverts commit dbeb402f0b0befd8c48b68d53277e1bd1b5f751b.
2009-04-10 22:35:01 +00:00
nekral-guest
e075442345
* lib/sgetspent.c: Removed (is not used / compiled) anymore.
2009-04-10 22:34:55 +00:00
nekral-guest
c7258f22d8
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more
...
issues in a numerical shadow entry field.
2009-04-10 22:34:49 +00:00
nekral-guest
304b0ec202
* src/chage.c: expdays renamed to expdate. It is a date, even if
...
expressed in a number of days since Jan 1, 1970.
* src/chage.c: Likewise: lastday renamed to lstchgdate. Also fix
the --lastday documentation.
2009-04-10 22:34:42 +00:00
nekral-guest
52238dd6a7
* src/chage.c: More strtol() replaced by getlong().
2009-04-10 22:34:36 +00:00
nekral-guest
66e39884e2
* lib/prototypes.h: pwd_to_spwd() should be declared if USE_PAM is
...
NOT defined.
2009-04-10 22:34:29 +00:00
nekral-guest
d548bf4742
* src/passwd.c: Replace getnumber() by getlong(). This permits to
...
get rid of another strtol().
2009-04-10 22:34:23 +00:00
nekral-guest
1675ca3378
* libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed
...
for strtol and errno, and do not include "defines.h" (not needed).
2009-04-10 22:34:17 +00:00
nekral-guest
77459dc27d
* src/useradd.c, src/usermod.c, libmisc/getgr_nam_gid.c,
...
libmisc/Makefile.am, lib/prototypes.h: Moved getgr_nam_gid() from
src/useradd.c and src/usermod.c to libmisc/getgr_nam_gid.c.
2009-04-10 22:34:10 +00:00
nekral-guest
ffd3e43ad8
* src/useradd.c: Get rid of strtol.
...
* src/useradd.c: Provide better warning in case a default GROUP or
INACTIVE value is not valid in /etc/default/useradd.
2009-04-10 22:34:04 +00:00
nekral-guest
95bc6eb7b2
* src/useradd.c: Re-indent.
2009-04-10 22:33:57 +00:00
nekral-guest
06c81b67c2
* src/useradd.c: Use getlong instead of get_number.
2009-04-10 22:33:50 +00:00
nekral-guest
c3f109556a
* src/usermod.c: Re-indent.
...
* src/usermod.c: Specifying a inactivity value < -1 is not valid.
2009-04-10 22:33:43 +00:00
nekral-guest
f481938cc5
* po/*.po, man/po/*.po: Updated PO files.
2009-04-05 23:52:46 +00:00
nekral-guest
b9df8b5817
* configure.in: Prepare the next 4.1.3 release.
2009-04-05 22:35:12 +00:00
nekral-guest
ac52639b77
* libmisc/setugid.c libmisc/age.c (setup_uid_gid): is_console is
...
never set ifndef USE_PAM. Change the prototype of setup_uid_gid()
when USE_PAM is not defined. This permits to remove add_groups
from PAM builds. setup_uid_gid is already subject to
HAVE_INITGROUPS.
2009-04-05 22:33:00 +00:00
nekral-guest
a51954203e
* lib/prototypes.h, libmisc/addgrps.c: restrict add_groups() to
...
ifndef USE_PAM.
* lib/prototypes.h: Remove the declaration of add_cons_grps(). The
function does not exist.
* libmisc/age.c (setup_uid_gid): is_console is never set ifndef
USE_PAM. Change the prototype of setup_uid_gid() when USE_PAM is
not defined. This permits to remove add_groups from PAM builds.
setup_uid_gid is already subject to HAVE_INITGROUPS.
* libmisc/pwd2spwd.c (pwd_to_spwd): pwd_to_spwd() is not used in
PAM builds.
2009-04-05 22:29:42 +00:00
nekral-guest
021066a980
* src/passwd.c: do_update_age is only used ifndef USE_PAM. Make it
...
more explicit.
2009-04-05 22:04:31 +00:00
nekral-guest
a1cac18ac3
* src/useradd.c: Set errno to 0 before calling strtol.
2009-04-05 22:02:50 +00:00
nekral-guest
2a3b84b888
* libmisc/isexpired.c: If there are no shadow entry, there is no
...
need to convert the password entry to a shadow entry. The password
is valid.
2009-04-05 22:02:00 +00:00
nekral-guest
682eedb167
* man/usermod.8.xml: Split some paragraphs into smaller units.
2009-04-05 21:23:55 +00:00
nekral-guest
2f85113366
* man/shadow.5.xml: Rewrote to mention the meaning of special
...
values.
2009-04-05 21:23:35 +00:00
nekral-guest
b23443630c
* libmisc/pwd2spwd.c, src/chpasswd.c, src/newusers.c,
...
src/passwd.c, src/pwck.c, src/pwconv.c, src/useradd.c,
src/usermod.c: On Jan 01, 1970, do not set the sp_lstchg field to
0 (which means that the password shall be changed during the next
login), but use -1 (password aging disabled).
* src/passwd.c: Do not check sp_min if sp_lstchg is null or -1.
2009-04-05 21:23:27 +00:00
nekral-guest
7585fa0fe9
* src/chage.c: When no shadow entry exist, thedefault sp_lstchg
...
value should be -1 (no aging) rather than 0 (password must be
changed).
* src/chage.c: For password expiration and inactivity, indicate
that the password must be changed when sp_lstchg is null rather
than indicating that expiration and inactivity are not enabled.
2009-04-05 21:23:17 +00:00
nekral-guest
1ba2139d5c
* libmisc/isexpired.c: Document the isexpired return value.
2009-04-05 21:23:06 +00:00
nekral-guest
f67403ba01
* libmisc/age.c: Return a specific message when sp_lstchg is null.
2009-04-05 21:22:53 +00:00
nekral-guest
d4fc74e43c
* lib/sgetpwent.c, lib/sgetgrent.c: Use get_uid and get_gid to
...
validate the UIDs or GIDs instead of atoi/strtol.
2009-03-21 20:29:58 +00:00
nekral-guest
a1dd26d2d6
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
...
lib/get_gid.c, lib/get_uid.c, lib/Makefile.am: get_uid.c and
get_gid.c moved from libmisc/ to lib/.
2009-03-21 20:24:37 +00:00
nekral-guest
503976fc6a
* src/grpck.c (check_members): When a member is removed, do not
...
increase the index.
* src/grpck.c: Fix typo in messages and comments.
2009-03-21 19:42:48 +00:00
nekral-guest
dab1523df5
* libmisc/sulog.c: Likewise for the su log.
2009-03-21 19:32:14 +00:00
nekral-guest
a65c2c9b18
* src/vipw.c: Likewise for the backup file.
2009-03-21 19:28:02 +00:00
nekral-guest
5331930716
* src/usermod.c: Likewise for the faillog and lastlog file.
2009-03-21 19:25:02 +00:00
nekral-guest
96c7b12bc4
* src/useradd.c: Likewise for the default file, faillog, lastlog,
...
and mail spool.
2009-03-21 19:18:06 +00:00
nekral-guest
5dd5f51700
* lib/commonio.c: Call fsync before closing the backup file. This
...
ensures that the backup file is flushed to the storage medium.
2009-03-21 19:12:00 +00:00
nekral-guest
a8e9fc86eb
* src/groupmod.c: Embed gshadow related cleanup in #ifdef
...
SHADOWGRP.
2009-03-15 21:38:08 +00:00
nekral-guest
a402c4db3b
* src/usermod.c: get_number() replaced by getlong().
...
* src/usermod.c: When the user is renamed, make sure we do not
override an user with the same name (in passwd or shadow).
2009-03-15 21:34:20 +00:00
nekral-guest
780af2653a
* src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup
...
stack only when the shadow group file is present.
2009-03-15 21:32:26 +00:00
nekral-guest
9372111aaa
* NEWS, src/userdel.c: Make sure the user exists in the shadow
...
database before calling spw_remove().
* NEWS, src/userdel.c: When the user's group is removed, make sure
the group is in the gshadow database before calling sgr_remove().
* src/userdel.c: Improve warning's wording.
2009-03-15 21:29:16 +00:00
nekral-guest
9fda9f5c28
* libmisc/cleanup.c: Fix del_cleanup. The arguments were not
...
desynchronized with the cleanup functions.
* libmisc/cleanup.c: cleanup_function_args is an array of void
pointer, not strings.
2009-03-15 21:15:48 +00:00
nekral-guest
80135cdc17
* libmisc/find_new_gid.c: Fix find_new_gid() the current group
...
database was not taken into account.
2009-03-15 21:12:57 +00:00
nekral-guest
6aa874a0a0
* libmisc/addgrps.c: Fix compilation warnings.
2009-03-15 21:10:35 +00:00
nekral-guest
d1dac25379
* man/po/Makefile.in.in: xml2po cannot exclude one entity for
...
expansion. Make sure config.xml does not exist when the POT file
is created in order to keep the configurations in the POT file
* man/generate_translations.mak: make sure config.xml does not
exist neither when the translated XML is generated. Add the
missing %config; (strip out by xml2po). and make sure config.xml
is present when the translated manpage is generated.
* man/generate_mans.mak: config.xml is needed for the generation
of manpages (already in the .deps for the English manpages, but
needed for the translations).
* man/Makefile.am: Added missing CREATE_HOME.xml.
2009-03-14 16:18:06 +00:00
nekral-guest
526e7ac972
* man/generate_mans.deps: Added Makefile dependency rules.
2009-03-14 13:29:55 +00:00
nekral-guest
d60f0a1a10
* etc/login.defs: Added note for PAM enabled configurations.
2009-03-14 13:20:25 +00:00
nekral-guest
8411a8e8b4
* man/Makefile.am: Compute the dependencies for building the
...
manpages.
2009-03-14 13:16:55 +00:00
nekral-guest
295106b6a8
* libmisc/addgrps.c: Fix warnings.
2009-03-14 13:13:47 +00:00
nekral-guest
29381bf9d6
* man/po/fr.po: Added missing space.
2009-03-14 13:08:49 +00:00
nekral-guest
5a5cf15430
* man/lastlog.8.xml: Document that there might be entries, for
...
deleted users, that are not displayed.
2009-03-14 11:11:04 +00:00
nekral-guest
884a2de437
* man/chgpasswd.8.xml, man/chpasswd.8.xml: Fix the man page in
...
case SHA crypt is not supported.
2009-03-14 11:09:57 +00:00
nekral-guest
5349c79d12
* man/vipw.8.xml: MAX_MEMBERS_PER_GROUP is not used by vipw and
...
vigr.
2009-03-14 11:08:39 +00:00
nekral-guest
9ee627fe02
* man/login.defs.5.xml: Indicate that sg uses the same variables
...
as newgrp.
* man/login.defs.5.xml: vipw does not use any variable.
* man/login.defs.5.xml: In PAM enabled configurations, login still
uses some login.defs variables.
2009-03-13 23:17:43 +00:00
nekral-guest
1def19ecea
* man/usermod.8.xml: use a <replaceable> instead of a
...
<emphasis remap='I'>.
2009-03-13 23:14:18 +00:00
nekral-guest
dc857372ed
* man/newusers.8.xml: Document the behavior of newusers for each
...
field.
* man/newusers.8.xml: Do not add the note on PAM on non-PAM
enabled configurations.
2009-03-13 23:12:06 +00:00
nekral-guest
730fc8fc33
* src/faillog.c: Added support for the specification of a range of
...
users with -u.
* src/faillog.c: Do not call print_one() for users which do not
exist.
* src/faillog.c: Make sure the user's entry is not outside the
faillog file and initialize the faillog structure in that case.
* src/faillog.c: Move print_one() closer to print().
* src/faillog.c: reset(), setmax(), set_locktime() can also change
entries of user which do not exist.
* src/faillog.c: reset(), setmax() and set_locktime() shall not
create entries for users which have no entries if the value has to
be set to 0.
* src/faillog.c: reset(), setmax() and set_locktime(): better
handling of users whose entry is outside the faillog file.
* src/faillog.c: Improved option handling. Options can now be
specified in any order.
* src/faillog.c: Improved warnings when options are not
compatible or when the faillog cannot be open with the right mode.
* src/faillog.c: Only fstat the faillog file once.
* man/faillog.8.xml: Improved documentation.
2009-03-13 22:49:20 +00:00
nekral-guest
fafe281d31
* src/useradd.c, man/useradd.8.xml: Added long name for the -l
...
option: --no-log-init.
2009-03-13 22:30:38 +00:00
nekral-guest
f98b47eb55
* src/chpasswd.c: Make sure the SHA related variables is not
...
compiled when disabled at configuration time.
* src/chgpasswd.c: Make sure the SHA related variables is not
compiled when disabled at configuration time.
* src/chgpasswd.c: Fix the test for getlong() failure.
2009-03-13 22:28:27 +00:00
nekral-guest
e3e64317e8
* src/newusers.c: Make sure the SHA related variables are not
...
compiled when disabled at configuration time.
* src/newusers.c: Added FIXME
2009-03-13 22:26:35 +00:00
nekral-guest
f2c8017df4
* src/gpasswd.c: Remove the documentation of options from the
...
main() documentation. It will always be outdated here.
2009-03-13 22:21:26 +00:00
nekral-guest
bf9036d27a
* src/lastlog.c: lastlog variable renamed to ll to avoid name
...
clash with the structure.
* src/lastlog.c: check the offset in print_one() so that it is
used for the display of one entry or a set of entries.
* src/lastlog.c: Do not loop over the whole user database when -u
is used with a single user.
* src/lastlog.c: Check the size of the lastlog file so that we
can identify failures to read.
2009-03-13 22:20:20 +00:00
nekral-guest
87da822c7f
* libmisc/salt.c: Removed l64a prototype. The libc declaration is
...
non static, but the internal definition is static.
2009-03-13 19:17:24 +00:00
nekral-guest
27153ae92b
* src/gpasswd.c: log_gpasswd_success_gshadow only exists ifdef
...
SHADOWGRP.
2009-03-08 23:29:46 +00:00
nekral-guest
28d7f83c87
* NEWS, src/newusers.c, src/usermod.c, src/useradd.c,
...
src/groupmod.c, src/groupadd.c: Make sure no user or group are
created with an ID set to -1.
2009-03-08 20:43:15 +00:00
nekral-guest
c1052e2df2
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
...
to -1.
2009-03-08 20:29:22 +00:00
nekral-guest
0e2a3979f4
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
...
lib/prototypes.h: Added get_uid() and get_gid() to parse user and
group IDs.
2009-03-08 20:26:56 +00:00
nekral-guest
186ea0e203
* libmisc/getlong.c: Make sure the getlong argument is not empty.
2009-03-08 20:21:24 +00:00
nekral-guest
f47d9eba94
* contrib/adduser-old.c, contrib/adduser.c: Do not use the target
...
of snprintf in one of the format's parameters.
2009-03-07 16:32:11 +00:00
nekral-guest
7368452e49
* man/groupmems.8.xml: groupmems does not create new user.
2009-03-07 16:30:49 +00:00
nekral-guest
b46fd9a2b4
* NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to
...
Timur Birsh <taem@linukz.org>.
2009-03-03 20:53:20 +00:00
nekral-guest
a62e781248
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Avoid calling
...
getgrent()/getpwent() after they return NULL. This caused LDAP to
return at the beginning of the group/user entries.
2009-02-22 23:23:15 +00:00
nekral-guest
32ef9c2135
* man/nologin.8.xml: Fix typo (HYSTORY -> HISTORY).
2009-01-27 18:17:54 +00:00
nekral-guest
f2d6449374
* NEWS, src/gpasswd.c: Only report success to audit and syslog
...
when the changes are committed to the system. Do not log failure
for on-memory changes to audit or syslog. Make sure failures and
inconsistencies will be reported in case of unexpected failures
(e.g. malloc failures). Only specify an audit message if it is not
implicitly implied by the type argument. Removed fail_exit
(replaced by atexit(do_cleanups)). Log failures in case of
permission denied.
2009-01-26 22:03:37 +00:00
nekral-guest
af96cba0cc
* etc/login.defs: Improve the documentation of UMASK.
2009-01-19 10:21:50 +00:00
nekral-guest
a684cadbb6
* man/useradd.8.xml, man/login.defs.d/CREATE_HOME.xml,
...
man/login.defs.5.xml: Document the CREATE_HOME variable.
2009-01-19 10:00:53 +00:00
nekral-guest
6c85ca9661
* man/limits.5.xml: Remove space before an end of tag.
2009-01-19 09:51:53 +00:00
nekral-guest
de60b7b2de
* man/login.defs.d/UMASK.xml: Indicate how UMASK is used and
...
limitations.
2009-01-19 09:51:00 +00:00
nekral-guest
d8c9236a18
* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
...
is called with the -l option.
2009-01-06 20:13:31 +00:00
nekral-guest
2bb7007fcb
* libmisc/chkname.c: Use a bool when possible instead of integers.
...
* libmisc/chkname.c: Add brackets and parenthesis.
2008-12-23 22:42:22 +00:00
nekral-guest
4c7d798307
* man/groupadd.8.xml, configure.in, man/config.xml.in: Use the
...
real group name length limit in the documentation.
2008-12-23 22:36:44 +00:00
nekral-guest
3cb730bcfe
* src/Makefile.am: Only link with the needed library. When
...
compiled with PAM support, chfn, chsh, login, newgrp, passwd, and
su do not need the libcrypt library.
2008-12-23 00:44:29 +00:00
nekral-guest
1b0a32d71c
* libmisc/cleanup_group.c: Fix compilation when compiled without
...
shadow group support.
2008-12-23 00:39:54 +00:00
nekral-guest
915ec6531a
* src/groupdel.c: Remove the fail_exit () declaration.
2008-12-22 23:23:14 +00:00
nekral-guest
0bd396011a
* src/gpasswd.c: Fix the support for usernames with arbitrary
...
length.
2008-12-22 22:13:23 +00:00
nekral-guest
6405b58a98
* libmisc/chkname.c: Remove outdated comments.
2008-12-22 22:08:13 +00:00
nekral-guest
9d977dba8e
* src/groupdel.c: Re-indent.
2008-12-22 22:07:12 +00:00
nekral-guest
ad7a108d60
* src/groupmod.c: Re-indent.
...
* src/groupmod.c: Do not add the command synopsis to the main ()
documentation. This avoids outdated information.
2008-12-22 22:06:27 +00:00
nekral-guest
fca6aeeea2
* src/groupadd.c: Re-indent.
2008-12-22 22:03:34 +00:00
nekral-guest
5b8ff14caf
* libmisc/audit_help.c: Added audit_logger_message() to log
...
messages not related to an account.
* lib/prototypes.h, libmisc/cleanup.c, libmisc/cleanup_group.c,
libmisc/cleanup_user.c, libmisc/Makefile.am: Added stack of
cleanup functions to be executed on exit.
* NEWS, src/groupadd.c, src/groupdel.c, src/groupmod.c: Only
report success to audit and syslog when the changes are committed
to the system. Do not log failure for on-memory changes to audit
or syslog. Make sure failures and inconsistencies will be reported
in case of unexpected failures (e.g. malloc failures). Only
specify an audit message if it is not implicitly implied by the
type argument. Removed fail_exit (replaced by atexit(do_cleanups)).
2008-12-22 21:52:43 +00:00
nekral-guest
a438c2f184
* NEWS, src/gpasswd.c: Added support usernames with arbitrary
...
length.
2008-12-15 21:54:53 +00:00
nekral-guest
66cb5b33ad
* configure.in: Fix the "$enable_acct_tools_setuid" = "yes" test.
2008-11-30 01:32:38 +00:00
nekral-guest
c28c443d8f
* NEWS, configure.in, libmisc/chkname.c: make group max length a
...
configure option. The configure behavior encoded is:
<no option> -> default of 16 (like today);
--with-group-name-max-length -> default of 16;
--without-group-name-max-length -> no max length;
--with-group-name-max-length=n > max is set to n.
2008-11-30 01:29:40 +00:00
nekral-guest
93358ac3de
* src/su.c: (!USE_PAM) Provide visible information indicating that
...
su was denied.
2008-11-23 12:10:21 +00:00
nekral-guest
0667aee3cc
* man/ja/login.1: Fix the path of the utmp and wtmp files.
2008-11-23 00:16:53 +00:00
nekral-guest
2297508f13
* man/su.1.xml: Fix the su synopsis. username is referenced in the
...
manpage, not LOGIN.
2008-11-23 00:16:10 +00:00
nekral-guest
1a04bbb044
* libmisc/chowntty.c: Only closelog() when failure cause an exit.
2008-11-23 00:06:56 +00:00
nekral-guest
cf31f05cfb
* libmisc/chowntty.c: Improve the logs for fchown and fchmod
...
failures.
2008-11-23 00:05:39 +00:00
nekral-guest
a324a7f13f
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
...
utmp.c to chowntty.c. checkutmp() now only uses an existing utmp
entry if the pid matches and ut_line matches with the current tty.
This fixes a possible DOS when entries can be forged in the utmp
file.
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.
2008-11-22 23:56:11 +00:00
nekral-guest
eb4097180b
* NEWS, libmisc/chowntty.c: Fix a race condition that could lead to
...
gaining ownership or changing mode of arbitrary files.
2008-11-22 23:22:16 +00:00
nekral-guest
c0311206c8
* man/gshadow.5.xml, man/shadow.5.xml, man/passwd.5.xml,
...
man/grpck.8.xml: Sorted SEE ALSO references.
* man/gshadow.5.xml: Added reference to grpck(8) and grpconv(8).
* man/pwck.8.xml: Added reference to grpck(8).
* man/shadow.5.xml: Added reference to pwck(8).
* man/passwd.5.xml: Added reference to pwck(8).
* man/grpck.8.xml: Added reference to pwck(8).
2008-10-11 12:59:02 +00:00
nekral-guest
4b2f537795
* man/*.xml, man/login.defs.d/*.xml: Added copyright and licence
...
header.
2008-10-11 11:44:43 +00:00
nekral-guest
4d49f543dd
* src/login.c: Always check the return value of the pam_* APIs.
2008-09-20 21:17:26 +00:00
nekral-guest
d400af51fa
* src/login.c, man/login.1.xml: the username is not an optional
...
parameter of -f. Fix the getopt optstring, remove the parsing of
username in the -f processing block, and remove unnecessary checks
(username cannot be parsed twice anymore), better documentation of
the synopsis.
2008-09-20 20:20:19 +00:00
nekral-guest
c8d2175981
* src/login.c: Erase the username later since it it used for the
...
fake password check (in case of empty password).
2008-09-20 20:05:22 +00:00
nekral-guest
11c7543c76
* src/login.c: Explicitly tag the end of the #ifdef RLOGIN
...
sections.
2008-09-20 20:03:04 +00:00
nekral-guest
29d4533047
* src/login.c: Check that no username is specified with -r.
...
* src/login.c: Make sure a username is specified with -f.
2008-09-20 20:00:51 +00:00
nekral-guest
c813e692a2
* src/login.c: Copy the name of the user authenticated by PAM to
...
username. This simplify later logging (avoid USE_PAM
conditional).
2008-09-20 19:54:35 +00:00
nekral-guest
65e32d850c
* src/login.c: Use a dynamic buffer for usernames.
2008-09-20 19:44:12 +00:00
nekral-guest
9f2ce12b28
* src/login.c: Existence of pam_user was already checked. pwd was
...
already copied to pwent. Remove duplicated code.
2008-09-20 16:23:04 +00:00
nekral-guest
f4860274be
* src/login.c: check_flags() renamed process_flags(). All flag
...
processing blocs moved to process_flags().
2008-09-20 16:21:46 +00:00
nekral-guest
6b17118e72
* src/logoutd.c, src/userdel.c: Re-indent. This helps pmccabe.
2008-09-20 14:56:10 +00:00
nekral-guest
54a0762bbb
* src/login.c: Re-indent.
2008-09-20 14:39:09 +00:00
nekral-guest
1e3f19ad89
* src/login.c: Add missing closing }. This was probably never
...
noticed because UT_ADDR is never defined.
2008-09-20 14:21:51 +00:00
nekral-guest
5b73a0492d
* src/login.c: Do not mix USE_PAM and !USE_PAM code.
2008-09-20 14:17:20 +00:00
nekral-guest
9fa519c983
* src/login.c: Use failent_user to log to audit. username is the
...
caller, not the user login tries to authenticate.
* src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
be more precise (name must be unique, uid might not be).
2008-09-20 13:20:31 +00:00
nekral-guest
c71e7861ed
* man/passwd.1.xml: passwd cannot change the full name of the
...
user, the user's login shell; but it can change the account or
password validity period. Thanks to Reuben Thomas.
2008-09-20 10:53:00 +00:00
nekral-guest
f3df48ab4f
* src/useradd.c: Added missing declaration of Mflg.
...
* src/pwck.c: Only unlock files if they were locked before (e.g.
not in read-only mode).
* src/pwck.c: Quote the username in error messages (harmonization
with other messages).
* libmisc/find_new_gid.c: Fixed typo (s/grp->gr_gid/group_id/).
* libmisc/find_new_gid.c: Likewise.
2008-09-14 13:42:10 +00:00
nekral-guest
5df1f2f683
* libmisc/setugid.c, src/login_nopam.c, src/suauth.c,
...
lib/getdef.c: Replace the %m format string by strerror(). This
avoids errno to be reset between the system call error and the
report function.
2008-09-13 18:03:50 +00:00
nekral-guest
0833bc3cc0
* lib/commonio.c: Ignore the return value of umask() when the mask
...
is set to the old value.
2008-09-13 11:55:50 +00:00
nekral-guest
b18d46e68d
* NEWS, etc/login.defs: New CREATE_HOME variable to tell useradd
...
to create a home directory for new users.
* src/useradd.c, man/useradd.8.xml: New -M/--no-create-home option
and CREATE_HOME usage. System accounts are not impacted by
CREATE_HOME.
* man/useradd.8.xml: Indicate that a new group is created by
default.
* src/useradd.c: Removed TODO item (moved to the TODO file).
2008-09-13 11:55:41 +00:00
nekral-guest
d1f92a2225
* po/cs.po: Updated Czech translation.
...
Thanks to Miroslav Kuře
2008-09-13 11:55:30 +00:00