Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7464 - Current superadduser script is broken.
Summary: Current superadduser script is broken.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-04 10:13 UTC by Gregg
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregg 2002-09-04 10:13:51 UTC
In the current superadduser script it sets the variable GGID equal to "-g $GID"
then tries to use that variable in the line (104):

chown $LOGIN:$GGID $HME

A chown with that variable for the group does not work.  So the chown call
doesnt work here and you get an error


*[root@sc.am:root] superadduser

Login name for new user []: hipwr

User id for hipwr [ defaults to next available]:

Initial group for hipwr [users]:

Additional groups for hipwr (seperated
with commas, no spaces) []:

hipwr's home directory [/home/hipwr]:

hipwr's shell [/bin/bash]:

hipwr's account expiry date (YYYY-MM-DD) []:

OK, I'm about to make a new account. Here's what you entered so far:

New login name: hipwr
New UID: [Next available]
Initial group: users
Additional groups: [none]
Home directory: /home/hipwr
Shell: /bin/bash
Expiry date: [no expiration]

This is it... if you want to bail out, hit Control-C.  Otherwise, press
ENTER to go ahead and make the account.


Making new account...

chown: `hipwr:-g': invalid group

Changing the user information for hipwr
Enter the new value, or press ENTER for the default
        Full Name []:   
Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:

New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:

Done...
*[root@sc.am:root]
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-09-04 16:22:26 UTC
I've committed a fix -- not had the time to test it properly as I'm out 
travelling, so please test it for me and reopen the bug if it persists.

Thanks a bundle!