Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Why does useradd cause a GLib-CRITICAL error? (http://www.linux-archive.org/debian-user/655152-why-does-useradd-cause-glib-critical-error.html)

Jason Hsu 04-12-2012 06:11 AM

Why does useradd cause a GLib-CRITICAL error?
 
The script I'm using fails at the useradd command with the following message:
(gksudo:2942): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed

The useradd command is:
self.do_run_in_chroot("useradd -s %s -c '%s' -G sudo -m %s" % ("/bin/bash", setup.real_name, setup.username))

More details are at http://forums.linuxmint.com/viewtopic.php?f=189&p=565740&sid=5c6825a8521aa1383 c649b74a7f70dc2#p565740 .

Exactly what is necessary to make sure that the useradd command works properly?

--
Jason Hsu <jhsu802701@jasonhsu.com>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120412011149.4b2421d9f31a9b2820063892@jasonhsu.c om">http://lists.debian.org/20120412011149.4b2421d9f31a9b2820063892@jasonhsu.c om

Camaleón 04-12-2012 03:49 PM

Why does useradd cause a GLib-CRITICAL error?
 
On Thu, 12 Apr 2012 01:11:49 -0500, Jason Hsu wrote:

> The script I'm using fails at the useradd command with the following
> message: (gksudo:2942): GLib-CRITICAL **: g_str_has_prefix: assertion
> `str != NULL' failed
>
> The useradd command is:
> self.do_run_in_chroot("useradd -s %s -c '%s' -G sudo -m %s" %("/bin/bash", setup.real_name, setup.username))
>
> More details are at
> http://forums.linuxmint.com/viewtopic.php?f=189&p=565740&sid=5c6825a8521aa1383 c649b74a7f70dc2#p565740
> .
>
> Exactly what is necessary to make sure that the useradd command works
> properly?

So it's "gksudo" who complains? :-?

I don't know what can be the problem. How you considered asking also at
"debian-devel" mailing list?

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: jm6ti3$gu4$7@dough.gmane.org">http://lists.debian.org/jm6ti3$gu4$7@dough.gmane.org


All times are GMT. The time now is 07:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.