Re: Error in execution of %post instructions

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

 



>>>>> "w" == wordene2  <wordene2@xxxxxxxxxxxx> writes:

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.

 - J<





[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