Bug 107108 - New user is added at UID 500 instead of at 1001
Summary: New user is added at UID 500 instead of at 1001
Status: RESOLVED NOT A BUG
Alias: None
Product: kuser
Classification: Miscellaneous
Component: general (show other bugs)
Version: 2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Szombathelyi György
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-09 16:26 UTC by R (Chandra) Chandrasekhar
Modified: 2005-08-16 22:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R (Chandra) Chandrasekhar 2005-06-09 16:26:32 UTC
Version:           2.0 (using KDE 3.4.0, Debian Package 4:3.4.0-0ubuntu3.2 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)
OS:                Linux (i686) release 2.6.10-5-386

Kuser adds the next user (after the first user with UID 1000) as user with UID 500.

AFAIK, UIDs until 999 are for system use only.

Also, Kuser reported being unable to create the new user's home directory, despite being invoked with sudo in Kubuntu.

On the whole Kuser was buggy and I used the CLI <adduser> command and everything worked out perfectly.  The new user was added as user 1001.
Comment 1 Stephan Binner 2005-06-09 22:59:40 UTC
> Kuser adds the next user (after the first user with UID 1000) as user with UID 500. 

And what UID did you configure as "first normal UID"?

> AFAIK, UIDs until 999 are for system use only.

That differs from distribution to distribution.
Comment 2 Szombathelyi György 2005-06-09 23:20:09 UTC
If you have problem with the package provided with your distribution, please file a bug report for them. They can compile KUser with the configure option --with-first-uid=1000 and --with-first-gid=1000. The defaults are 500, which you can change in the configuration dialog, but the packagers can override this with the above configuration option. 

About the home directory creation: what's the error message?
Comment 3 R (Chandra) Chandrasekhar 2005-06-10 03:38:32 UTC
Dear Folks,

The KDE developers have asked me to refer this to you.  See KDE Bug 107108.

For clarification, the default first user created by default during 
installation of Kubuntu was 1000.  The second user, created with the 
Kuser interface had UID 500; whereas with the adduser command, the 
second user UID was 1001.  I think the latter is correct.  The file 
/etc/adduser.conf is also attached for completeness.

The home page creation error was that the home page could not be 
created, even though I was using sudo with Kuser.  It was created 
without fuss from the command line with adduser.

FYI, please.

--Chandra
   10 Jun 2005
------------------
Dr R (Chandra) Chandrasekhar
Adjunct Senior Lecturer
M018, Centre for Intelligent Information Processing Systems (CIIPS)
School of Electrical, Electronic and Computer Engineering
The University of Western Australia
35 Stirling Highway, Crawley, WA 6009, AUSTRALIA
Phone: +61-(8)-6488-1905  Fax: +61-(8)-6488-1168
email: chandra@ee.uwa.edu.au
CRICOS Provider Code: 00126G
------------------
# /etc/adduser.conf: `adduser' configuration.
# See adduser(8) and adduser.conf(5) for full documentation.

# The DSHELL variable specifies the default login shell on your
# system.
DSHELL=/bin/bash

# The DHOME variable specifies the directory containing users' home
# directories.
DHOME=/home

# If GROUPHOMES is "yes", then the home directories will be created as
# /home/groupname/user.
GROUPHOMES=no

# If LETTERHOMES is "yes", then the created home directories will have
# an extra directory - the first letter of the user name. For example:
# /home/u/user.
LETTERHOMES=no

# The SKEL variable specifies the directory containing "skeletal" user
# files; in other words, files such as a sample .profile that will be
# copied to the new user's home directory when it is created.
SKEL=/etc/skel

# FIRST_SYSTEM_[GU]ID to LAST_SYSTEM_[GU]ID inclusive is the range for UIDs
# for dynamically allocated administrative and system accounts/groups.
FIRST_SYSTEM_UID=100
LAST_SYSTEM_UID=999
FIRST_SYSTEM_GID=100
LAST_SYSTEM_GID=999

# FIRST_[GU]ID to LAST_[GU]ID inclusive is the range of UIDs of dynamically
# allocated user accounts/groups.
FIRST_UID=1000
LAST_UID=29999
FIRST_GID=1000
LAST_GID=29999

# The USERGROUPS variable can be either "yes" or "no".  If "yes" each
# created user will be given their own group to use as a default, and
# their home directories will be g+s.  If "no", each created user will
# be placed in the group whose gid is USERS_GID (see below).
USERGROUPS=yes

# If USERGROUPS is "no", then USERS_GID should be the GID of the group
# `users' (or the equivalent group) on your system.
USERS_GID=100

# If QUOTAUSER is set, a default quota will be set from that user with
# `edquota -p QUOTAUSER newuser'
QUOTAUSER=""

# If DIR_MODE is set, directories will be created with the specified
# mode. Otherwise the default mode 0755 will be used.
DIR_MODE=0755

# If SETGID_HOME is "yes" home directories for users with their own
# group the setgid bit will be set. This was the default for
# versions << 3.13 of adduser. Because it has some bad side effects we
# no longer do this per default. If you want it nevertheless you can
# still set it here.
SETGID_HOME=no
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
         
http://bugs.kde.org/show_bug.cgi?id=107108         
           Summary: New user is added at UID 500 instead of at 1001
           Product: kuser
           Version: 2.0
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: gyurco freemail hu
        ReportedBy: chandra ee uwa edu au


Version:           2.0 (using KDE 3.4.0, Debian Package 4:3.4.0-0ubuntu3.2 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)
OS:                Linux (i686) release 2.6.10-5-386

Kuser adds the next user (after the first user with UID 1000) as user with UID 500.

AFAIK, UIDs until 999 are for system use only.

Also, Kuser reported being unable to create the new user's home directory, despite being invoked with sudo in Kubuntu.

On the whole Kuser was buggy and I used the CLI <adduser> command and everything worked out perfectly.  The new user was added as user 1001.
Comment 4 Szombathelyi György 2005-08-16 22:39:10 UTC
I close as INVALID, since there are both compile-time and run-time options to change the first UID and GID.