Opened 5 years ago

Closed 5 years ago

#13 closed defect (fixed)

usermod (useradd) is not tolerant of illegal parameter values

Reported by: lewisr Owned by:
Priority: major Milestone:
Component: none Version:
Keywords: Cc:

Description

When attempting to add a new user and set group membership, using the -u parameter incorrectly (UID, not "user group") may lead to unexpected results:

{0}[j:\devel\klusrmgr\src] usermod -a "User2" -u Joe
   474 +++           Do nextUID = MinUID To 65535 By 1;
REX0041: Error 41 running J:\DEVEL\KLUSRMGR\SRC\USERMOD.CMD, line 474: Bad
arithmetic conversion
   177 +++       Call _UserAdd;

Suggest that command line input be validated and useful errors returned to the user.

Change History (2)

comment:1 by herwigb, 5 years ago

Fixed in version 2.5.1

comment:2 by diver, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.