On Mon, Feb 28, 2000 at 07:11:47PM +0100, Ian Corner wrote:
| I am using the useradd script at /usr/sbin/ to create new accounts. However
| something has happened as the created directory and copied files from
| /etc/skel are not listed as owned by the new user. Instead there is a number
| which increases with every new user I try to add. The number is not the UID
| either. Here is an example:
| 
| I run the following command:
| /usr/sbin/useradd -u 100004 -g popusers -c test-account -m -k /etc/skel
| p100004
| 
| The created directory indicates the owner as: 34468

Linux userids are 16 bit values. You're seeing the low order 16 bits of
100004 used in the user_id field of the file record. Useradd _ought_ to
check this but obviously doesn't. You'll have to restrict yourself to
smaller numbers. Maybe start at 10000?
--
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

It is interesting to think of the great blaze of heaven that we winnow
down to animal shapes and kitchen tools.        - Don DeLillo


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to