Mailinglist Archive: opensuse-autoinstall (124 mails)

< Previous Next >
RE: [suse-autoinstall] SLES8 user setup failing with uid/gid/home
  • From: "Michael Shannon" <Michael.Shannon@xxxxxxxxxxxxx>
  • Date: Wed, 15 Dec 2004 00:57:14 +0000 (UTC)
  • Message-id: <06E113602F57124C92E268E50D9DB6B16A877C@xxxxxxxxxxxxxxxxxxxx>
I had problems getting user and group creation to work correctly as
well, so I just created a post install script that called groupadd and
useradd, not as elegant as using yast, but not nearly as frustrating

groupadd -g 123 groupname
useradd -d /home/username -m -c "gecos info" -s /bin/shell username


-----Original Message-----
From: Michael Czyz [mailto:czyzm@xxxxxxxxx]
Sent: Tuesday, December 14, 2004 4:44 PM
To: suse-autoinstall@xxxxxxxx
Subject: [suse-autoinstall] SLES8 user setup failing with uid/gid/home

I've been beating against this for almost a full day now and it defies
sense as far as i can tell.

I can successfully create users without a problem, unless i try to
specify a
uid, gid, or home element.

using the following config:

<users config:type="list">

<encrypted config:type="boolean">true</encrypted>
<encrypted config:type="boolean">false</encrypted>
<encrypted config:type="boolean">false</encrypted>
<uid config:type="integer">480</uid>

i get errors on both the eaws and ftpuser users.
for the eaws user:

2004-12-14 03:46:47 <3> wfgGCbase(495) [Interpreter]
modules/UserWriteStack.ycp:152 Invalid initial value "1011" for variable
which has been declared as integer
2004-12-14 03:46:47 <3> wfgGCbase(495) [Interpreter]
modules/UserWriteStack.ycp:157 [WFM] Undeclared variable uid


for the ftpuser i get the same error message, even though i explicitly
uid as integer.

but i also get an error on the gid. this seems to get parsed correctly,
turned into the correct group name based on the gid (no integer problem
but the useradd line that gets created contains:

-G dialout,uucp,video,audio ftpuser,

which causes an error because of the lack of , between audio and ftpuser

i also sometimes seem to get an error creating the home directory
above, but this seems to be intermitent.

any ideas on why uid isn't treated as an integer, gid gets parsed but
not added
to the useradd correctly, or a home directory won't get created?

To unsubscribe, e-mail: suse-autoinstall-unsubscribe@xxxxxxxx
For additional commands, e-mail: suse-autoinstall-help@xxxxxxxx

< Previous Next >
This Thread
  • No further messages