admin user cant be used in rootstock

Bug #569946 reported by alok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RootStock
Fix Released
Medium
Ricardo Salveti

Bug Description

if i use --login admin this wont allow me to login ,as admin is already a group hence
wven though rootstock successfully builds a rootfs its of no use.
So a error message or warning that admin cant be used would be better.

Related branches

Revision history for this message
Oliver Grawert (ogra) wrote :

yes, this conflicts with the default "admin" group in ubuntu, i will add a fix that forbids to use this username, thanks for the bugreport

Changed in project-rootstock:
status: New → Confirmed
assignee: nobody → Oliver Grawert (ogra)
importance: Undecided → Medium
Revision history for this message
alok (alok-prasad7) wrote :

Probably other groups in ubuntu might also create same problem
eg.bin,daemon,sys...etc..

Changed in project-rootstock:
assignee: Oliver Grawert (ogra) → Ricardo Salveti (rsalveti)
status: Confirmed → In Progress
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Fixed at rev 109.

Example:
...
E: Failed to add user 'admin'
E: useradd: group admin exists - if you want to add this user to that group, use -g.
E: Besides possible user name conflicts, while adding the user a new group is created with the same name as the user, so avoid using existing group names
[ 162.519618] Kernel panic - not syncing: Attempted to kill init!
E: Second stage build in Virtual Machine failed !
E: Please see the log to see what went wrong.
I: Cleaning up...
I: Killed qemu...

The problem is that you'll get this error just after almost finishing the image, but is the only way if you don't want to cache the user/group list and check them.

Changed in project-rootstock:
status: In Progress → Fix Committed
Changed in project-rootstock:
status: Fix Committed → Fix Released
milestone: none → 0.1.99.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.