Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

kickstart disk

steven Burgess_2
Honored Contributor

kickstart disk

Hi all

I am attempting to add a user via the %post task on my kickstart disk

my

chkconfig -- telnet on

is ok

The user add command is

/usr/sbin/useradd -m -u 101 -g 101 -c "de user" -d /home/de -s /bin/tcsh de
/usr/sbin/usermod -p '$1$A1loilhN$0wkwN8eZeUjmRUB7Bjw021' de

This fails

Any ideas ?

I can issue the usermod -p command with success from the command line

Thanks in advance

Steve
take your time and think things through
3 REPLIES
Stuart Browne
Honored Contributor

Re: kickstart disk

Well, both of those commands pass with flying colors outside of a KS environment..

Things to check:

When the KS is running, watch the 4th VTY (umm.. I think it's the 4th *crigne* been a while). It should have the output of the KS commands. See which of those two lines failes.

As the default build-commands (i.e. anaconda KS file) has basiclaly identical commands (it's just adding a user afterall)...

One dumb question however. Are the 'tcsh' packages being installed, and is that package modifying the /etc/shells file to say that it's a valid shell?
One long-haired git at your service...
steven Burgess_2
Honored Contributor

Re: kickstart disk

Hi Stuart

Thanks for the reply

Please excuse me. This is my first week with linux

What do you mean by '4th VTY' I was wondering where i could see the commands from the %post

Also

Is it possible to test a kickstart disk as opposed to attempting an install with the disk. Having the commands fail, make the changes, reattempt the install etc etc

Thanks again

Steve
take your time and think things through
Stuart Browne
Honored Contributor

Re: kickstart disk

What I mean by the "4th VTY", is the 4th virtual terminal. If you prses CTRL-ALT-F4 during the install, you'll change to a text-screen with various details. I beleive the 4th one has the %post output.

If not, it's either the 2nd, 3rd. (ALT-F7 will return to the GUI installation, ALT-F1 to the TEXT installation).

No, I do not know of a way to 'test' a KS configuration without running it.. sorry.
One long-haired git at your service...