Lines Matching defs:to
224 log_warning_errno(errno, "Failed to change mode on %s: %m", backup);
227 log_warning_errno(errno, "Failed to change ownership of %s: %m", backup);
232 log_warning_errno(errno, "Failed to fix access and modification time of %s: %m", backup);
344 static int sync_rights(FILE *from, FILE *to) {
350 if (fchmod(fileno(to), st.st_mode & 07777) < 0)
353 if (fchown(fileno(to), st.st_uid, st.st_gid) < 0)
595 /* We default to the root directory as home */
598 /* Initialize the shell to nologin,
680 .sp_flag = (unsigned long) -1, /* this appears to be what everybody does ... */
778 /* Try to avoid using uids that are already used by a group
792 /* Let's also check via NSS, to avoid UID clashes over LDAP and such, just in case */
831 /* First, try to get the gid directly */
837 /* Then, try to get the uid directly */
914 return log_error_errno(errno, "Failed to check if user %s already exists: %m", i->name);
917 /* Try to use the suggested numeric uid */
921 return log_error_errno(r, "Failed to verify uid " UID_FMT ": %m", i->uid);
928 /* If that didn't work, try to read it from the specified path */
939 return log_error_errno(r, "Failed to verify uid " UID_FMT ": %m", i->uid);
949 /* Otherwise, try to reuse the group ID */
953 return log_error_errno(r, "Failed to verify uid " UID_FMT ": %m", i->uid);
960 /* And if that didn't work either, let's try to find a free one */
971 return log_error_errno(r, "Failed to verify uid " UID_FMT ": %m", i->uid);
1058 return log_error_errno(errno, "Failed to check if group %s already exists: %m", i->name);
1061 /* Try to use the suggested numeric gid */
1065 return log_error_errno(r, "Failed to verify gid " GID_FMT ": %m", i->gid);
1072 /* Try to reuse the numeric uid, if there's one */
1076 return log_error_errno(r, "Failed to verify gid " GID_FMT ": %m", i->gid);
1083 /* If that didn't work, try to read it from the specified path */
1094 return log_error_errno(r, "Failed to verify gid " GID_FMT ": %m", i->gid);
1104 /* And if that didn't work either, let's try to find a free one */
1116 return log_error_errno(r, "Failed to verify gid " GID_FMT ": %m", i->gid);
1158 /* There's already user to be created for this
1229 log_debug("Adding implicit group '%s' due to m line", j->name);
1256 log_debug("Adding implicit user '%s' due to m line", j->name);
1432 log_error("[%s:%u] Failed to replace specifiers: %s", fname, line, name);
1449 log_error("[%s:%u] Failed to replace specifiers: %s", fname, line, name);
1510 /* Try to extend an existing member or group item */
1542 /* A list for this group name already exists, let's append to it */
1595 log_error("Failed to parse UID: %s", id);
1645 log_error("Failed to parse GID: %s", id);
1699 return log_error_errno(r, "Failed to open '%s', ignoring: %m", fn);
1721 log_error_errno(errno, "Failed to read from file %s: %m", fn);
1843 log_error_errno(r, "Failed to enumerate sysusers.d files: %m");
1855 /* Default to default range of 1..SYSTEMD_UID_MAX */
1869 log_error_errno(lock, "Failed to take lock: %m");
1875 log_error_errno(r, "Failed to load user database: %m");
1881 log_error_errno(r, "Failed to read group database: %m");
1893 log_error_errno(r, "Failed to write files: %m");