View Single Post
Old 27th January 2013, 21:09
nich1313 nich1313 is offline
Junior Member
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding PATH in %post for kickstart

Hey everyone, I'm looking to add /sbin and /usr/sbin to PATH for all users in %post on my kickstart script. Any help is appreciated, I have included what I have below.

%post --log=/root/ksoutputfile.log
#Check for Updates
yum update -y

# Users to be added
useradd -c "xxx" -s /bin/bash -m -d /home/xxx -p '$1$hmjzoDbU$U7nArF0xs8Y45w7f.P4EQ0' xxx
useradd -c "Test User" -s /bin/bash -m -d /home/test -p '$1$/yw6acw5$zPg3kcwAX7ec2oTIsliZa0' test

#Changing command path for users
export PATH

#Add Alias
alias ll='ls -alF'
Reply With Quote
Sponsored Links