Bug 26461 - Брать UID_MIN из /etc/login.defs
Summary: Брать UID_MIN из /etc/login.defs
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: alterator-sshd (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL: http://git.altlinux.org/gears/a/alter...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-16 21:28 MSK by Lenar Shakirov
Modified: 2011-10-28 12:18 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lenar Shakirov 2011-10-16 21:28:46 MSK
Брать UID_MIN из /etc/login.defs, а не предустановленный UID_MIN=5000.

Как минимум на Simply у созданного юзера UID=500

http://git.altlinux.org/gears/a/alterator-sshd.git?p=alterator-sshd.git;a=blob;f=alterator-sshd/backend3/sshd;h=c23a52c7b46ae7eeb46e7b95b985f12c96bf23f6;hb=HEAD#l19
Comment 1 Lenar Shakirov 2011-10-28 12:18:46 MSK
Пример из alterator-users:

http://git.altlinux.org/gears/a/alterator-users.git?p=alterator-users.git;a=blob;f=alterator-users/backend3/users;h=13f4b6b2ea0048af8d9e90982efc80f5dd378bc0;hb=HEAD#l28

UID_MIN=$(grep '^UID_MIN' /etc/login.defs 2>/dev/null|sed -r 's,UID_MIN[[:space:]]+,,')