Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-01-2009, 08:26 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 25

Rep: Reputation: 0
/bin/cp cannot stat "filename" no such file name or directory

In my %post section of my RHEL 5.3 kickstart file I mount the CD which is does. But when it executes these commands:

/bin/cp -f /mnt/OracleDBMS/config/passwd-aging/login.defs /etc/login.defs
/bin/cp -f /mnt/OracleDBMS/config/passwd-aging/useradd /etc/default/useradd

it gives my the /bin/cp cannot stat error. I have checked the permissions and that is fine, the files exist. Another thing that is funny we have this in our RHEL 4.7 kickstart and it works fine. I am pretty much at a loss of how to fix this.
Old 07-01-2009, 09:16 AM   #2
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
It is probably a directory rather than a file.
Check that /etc/default exists on RHEL5.3
Old 07-01-2009, 09:21 AM   #3
LQ Newbie
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 0
Originally Posted by fpmurphy View Post
It is probably a directory rather than a file.
Check that /etc/default exists on RHEL5.3
/etc/default exists on the system


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot stat ... "modules.order" ... No such file or directory shogun1234 Linux - Kernel 1 11-27-2008 02:12 PM
LFS 6.2 Ch. 6.14 - 2nd Coreutils test returns "/bin.bash: No such file or directory" 0graham0 Linux From Scratch 2 08-23-2007 06:32 PM
SimpleScalar: sslittle-na-sstrix/bin/ld: crt0.o: "no such file or directory" lydia.plath Linux - Software 0 03-18-2006 12:55 PM
help with "chmod a+x filename.bin" mattax Linux - Newbie 2 01-13-2006 02:13 AM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration