LL2_RENAME_USER(3) ll2_rename_user - . #include int ll2_rename_user (struct ll2_context *context, const char *user, const char *newname, char **error); , -. . , , LL2_DEFAULT_DATABASE. char *error = NULL; const char *user = "root"; const char *new_user = "notroot"; int ret = ll2_rename_user (NULL, user, new_user, &error); 0 , -ENOMEM -1 . error -1. error , . error . lastlog2(3), ll2_new_context(3), ll2_unref_context(3), ll2_read_all(3), ll2_write_entry(3), ll2_read_entry(3), ll2_remove_entry(3), ll2_update_login_time(3), ll2_import_lastlog(3) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". liblastlog2 ,,util-linux" 2.40. . util-linux 2.41.3 2025-12-15 LL2_RENAME_USER(3)