HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Adding PATH in %post for kickstart (http://www.howtoforge.com/forums/showthread.php?t=60347)

nich1313 27th January 2013 21:09

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
PATH=$PATH:/sbin:/usr/sbin
export PATH

#Add Alias
alias ll='ls -alF'


All times are GMT +2. The time now is 20:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.