RE: [suse-autoinstall] SLES8 user setup failing with uid/gid/home
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 either. groupadd -g 123 groupname useradd -d /home/username -m -c "gecos info" -s /bin/shell username -m -----Original Message----- From: Michael Czyz [mailto:czyzm@yahoo.com] Sent: Tuesday, December 14, 2004 4:44 PM To: suse-autoinstall@suse.com 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 any 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"> <user> <encrypted config:type="boolean">true</encrypted> <username>root</username> <user_password/> </user> <user> <encrypted config:type="boolean">false</encrypted> <username>eaws</username> <user_password>xxx</user_password> <forename>EA</forename> <surname>Admin</surname> <uid>1011</uid> </user> <user> <encrypted config:type="boolean">false</encrypted> <username>ftpuser</username> <user_password>xxx</user_password> <forename>FTP</forename> <surname>Account</surname> <gid>205</gid> <uid config:type="integer">480</uid> <home>/usr/ftproot/triggerjobs</home> </user> </users> 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 uid, which has been declared as integer 2004-12-14 03:46:47 <3> wfgGCbase(495) [Interpreter] modules/UserWriteStack.ycp:157 [WFM] Undeclared variable uid etc.. for the ftpuser i get the same error message, even though i explicitly declare uid as integer. but i also get an error on the gid. this seems to get parsed correctly, and turned into the correct group name based on the gid (no integer problem there) 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 specified 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@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
participants (1)
-
Michael Shannon