Bug 16224 - hasher-useradd gives anacceptable UIDs
Summary: hasher-useradd gives anacceptable UIDs
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: hasher-priv (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-01 11:45 MSD by ildar
Modified: 2008-07-02 21:48 MSD (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ildar 2008-07-01 11:45:59 MSD
После
# hasher-useradd ildar
делаю
# grep ildar_ /etc/passwd
ildar_a:x:7:49:1st hasher satellite for ildar:/dev/null:/dev/null
ildar_b:x:11:56:2nd hasher satellite for ildar:/dev/null:/dev/null

UIDs = 7 и 11. hasher-priv такое не приемлет с кодом:

#define	MIN_CHANGE_UID	34
	if (pw->pw_uid < MIN_CHANGE_UID)
		error(EXIT_FAILURE, 0, "config: %s: %s: invalid uid: %u",
		      name, user_name, pw->pw_uid);
Comment 1 ildar 2008-07-01 11:47:57 MSD
Ага. Понятно. Это случилось потому, что 
# grep ildar:x /etc/passwd
ildar:x:499:499::/home/ildar:/bin/bash

499 < 500. Что тут за интеллект зарыт?
Comment 2 Dmitry V. Levin 2008-07-02 21:48:58 MSD
(In reply to comment #1)
> Ага. Понятно. Это случилось потому, что 
> # grep ildar:x /etc/passwd
> ildar:x:499:499::/home/ildar:/bin/bash
> 
> 499 < 500. Что тут за интеллект зарыт?

# grep ^UID_MIN /etc/login.defs
UID_MIN                 500