Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th January 2013, 20: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
PATH=$PATH:/sbin:/usr/sbin
export PATH

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dovecot start problem veneficus Installation/Configuration 3 10th April 2012 17:39
Redirect a domain. ISPConfig is adding a / at the end of the path... voltron81 Installation/Configuration 4 24th May 2010 15:20
Failover with VMWare Server - /var/vm isn't the right size.. Bart van Kleef HOWTO-Related Questions 24 30th August 2008 11:00
Strato Server - Restoring with SystemImager popper2001 HOWTO-Related Questions 5 28th July 2007 10:18
Creating image with Systemimager cuongtim HOWTO-Related Questions 3 18th November 2006 13:55


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


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