Re: Error in execution of %post instructions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kickstart-list@xxxxxxxxxx wrote:
> w> I am running RH7.0 and am trying to copy a list of users into the
> w> etc/passwd file from the scrip, as well as a few other things.
> How, exactly, are you doing this?  I have lots of constructs like:
> cat <<EOF > /etc/auto.master
> /misc   /etc/auto.misc         --timeout 5
> /home   /etc/auto_home         --timeout 60
> /nas    /etc/auto_home         --timeout 60
> /chome  /etc/auto_home_cluster --timeout 60
> /usr/local /etc/auto_usr_local --timeout 300
> EOF
> 
> in my %post section and have no problems.
> 
> w> Everything I attempt in the %post section is dumped into the file
> w> /etc/passwd?
> 
> That sounds like you did
> 
> cat <<EOF > /etc/passwd
> 
>and never included an EOF,so everything until the end of the file ends up
> in /etc/passwd.
> 

Actually, there was an EOF at the end of the line, but there was a slight difference to what you posted:

cat <<EOF >>/etc/passwd
mmeintz:*:201:200:Mathew Meintz-USServiceDelivery:/home/mmeintz:/bin/bash
stevel:*:202:200:Steve Laxner-USService Delivery:/home/stevel:/bin/bash
sarag:*:203:200:Sara Guan-USService Delivery:/home/sarag:/bin/bash
lindsad:*:251:200:Dave Lindsay-UKService Delivery:/home/lindsad:/bin/bash
davep:*:301:300:Dave Parkes-UKDevelopment:/home/davep:/bin/bash
mjoyce:*:302:300:Matthew Joyce-UKDevelopment:/home/mjoyce:/bin/bash
sean:*:303:300:Sean Welsh-UKdevelopment:/home/sean:/bin/bash
bbuser:x:501:501:Big Brother User:/opt/bb:/bin/bash
jabber:x:502:502:Jabber User:/home/jabber:/bin/bash
EOF

After this, I try to cat definitions into the /etc/group file and then cat some directions to be loaded into cron, but all of it ends up in the /etc/passwd? file.
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux