CentOS 5 :: Cannot Execute The "/etc/rc.d/rc.sysinit"
Jan 28, 2011
my computer will not boot up and this error message is post on the screen. the permission for this file on my computer reads "-rw-rw-r--", and i know that the correct permission for this file should be "-rwx-xr-x." is there a way where i can re-change the permission?
i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp" I know i can't execute things in /tmp now but is there a way to execute only one file and no more???
my rc.sysinit script has: if [ "$FACTORY_RESET" = "1" ]; then echo 'Reseting to factory config' mount -o sync,remount,rw /boot [ -r /boot/default.cf.2 ] && mv /boot/default.cf.2 /boot/default.cf.3 [ -r /boot/default.cf.1 ] && mv /boot/default.cf.1 /boot/default.cf.2 [ -r /boot/default.cf.0 ] && mv /boot/default.cf.0 /boot/default.cf.1 [ -r /boot/default.cf ] && mv /boot/default.cf /boot/default.cf.0 mount -o sync,remount,ro /boot fi
And I need to change last one to rw or comment it out until I write some other part of the installation, otherwise the whole system is ro and I can't alter or install anything. I guess that when my system boots put everything into rw, create the system and then move everythiong into ro, so I am locked out. If I remove the SD card and put into another system, how can I access the script and change it?
I want to edit the file /etc/rc.sysinit.But this file is used in redhat systems. Iam using opensuse 11.1, to find the corresponding file for the same in opensuse.
While playing with my Linux box, I edited rc.sysinit in /etc/rc.d/ folder. But now when I boot into run level 3 or 5, I get complain that system cannot run /etc/rc.d/rc.sysinit. I boot into run level 1, and checked its permissions, which is rw-r--r-- . It should be rwxr-xr-x. I tried to use chmod to change its permissions, but it responded that "Read Only file system" Now how can I change its persmissions when in run level 1. In run level 3 and 5, machine does not boot. My box has Fedora Core 2 with kernel 2.6.20.
I am facing problem on executing commands like df -h,ls-l,grep etc in /bin.
it is showing below errors:-- ---------------------------------------------------------------------------------- login as: root root@220.226.102.217's password: Last login: Sat Jun 4 11:14:20 2011 from 220.227.54.149 -bash: /bin/egrep: cannot execute binary file
I have a minimal installation of Ubuntu, with lxde-core and some other apps I really use. Sometimes when I start the system, it hangs and nothing else happens. I hit Esc and then I see:Code:init: Failed to spawn rc-sysinit main porcess: Unable to open console: Input/Output error.I get stuck there, and the only thing I can do is to hold the power button, shutdown, boot again, and pray it will boot fine. Sometimes it does, sometimes it doesn't.
I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)(/usr/share/pear:/usr/share/php) in System.php on line 459I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything.I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.comDoes anyone have any thoughts? If not the solution, does anyone have any suggestions on how to begin troubleshooting this?
I'm trying to execute a C++ program on PowerPC. But I am facing an error saying: "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory". But a C program gets executed successfully. The programs are cross compiled using PowerPC cross compiler.
You piece of advice will be very useful for me! How to execute "ALTER TABLE" for a lot of tables in database? I'm going to change engine from MyISAM to NDBCLUSTER. There are several hundreds of tables in database.Command like ALTER TABLE * ENGINE=NDBCLUSTER
i have new build testing centos 5.4 i386 base how to monitor logs and watch what is going wrong with file. i have 1 zmanda server enterprise i give permission and when i excecute nothing happend
ssh - execute the script remotely / File not found: ''I am uisng amazon ec2-api-tool & ec2-ami-tool
i was unable to execute through ssh. Getting error as File not found: The same script i can able to run directly in client machine successfully. Through ssh i was uanble to run the script remotely Source : myScript.sh ec2-create-volume --size $1 --availability-zone $2 $ssh -i key.pem root@myhost ./myScript.sh 10 us-east-1a In remote machine i have permission for myScript.sh as -rwxr-xr-x
Note:Reference link
1) How to create an ebs image from an existing ec2 instance 2) Building EBS Boot and S3 Based AMIs for EC2 with Ubuntu vmbuilder - Alestic.com
I want to install Codendi softwr to my Centos 5.3.But can not execute the installation script gives an error permission denied./etc/fstab file does not contain a path that holds my CDROM drive.
This should be simple but I can't seem to find what I am looking for.I want to search a text file for the existence of certain strings and execute a command if they exist, something along the lines of:
if <string> exists command or
if <any member of this list exists> command
I know how to manually search a file with grep, cat, etc., but the "if this exists" part eludes me.
Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually
I am running Centos 5.3. I ran no updates, performed no installs, nor changed any configuration immediately prior to this issue. My problem is this: when I run the command startx (default runlevel 3), it is a long time (5-10 minutes) before Gnome startx, and once it does start applications will not run. Also, when I try to use sudo (from any environment, even ssh), it is a long time (5-10) before the command is executed.
I cannot say for sure, but it seems like this is an intermittent problem. Sometimes X takes a long time to start, but once it starts it will launch programs. Sometimes X takes a long time to launch, but once it starts it will only launch certain programs. Though presently X always takes a long time to start, and I cannot successfully launch any programs.
A while back a had a similar problem to this (x taking long time to start, sudo taking long time to execute) and it ended up being a DNS problem. Unfortunately, I cannot remember exactly what it was and I stupidly did not document it. Maybe this is also DNS related, I don't know.
I don't know what log files to look at for problems with X, Gnome, and sudo taking a long time to start.
I have a file with two fields of numbers that I want to use as input for another program.
Code:
The above code does not work, as I think it would take the whole first and second fields as the input for one particular instance of the program 'inputbashangle'. What I want is to get the first two numbers from the first line of the file 'outfailtest', execute 'inputbashangle' with them, then move on to the first two numbers of the second line for all the lines of 'outfailtest'.
I'm new to linux but slowly getting the hang of things... I downloaded an application with a .sh extension. I typed "bash filename.sh" It appears to start trying to execute it and then says that it can't display the GUI because it needs access to an X server
I was wondering if it was possible to execute a program from RAM, like having the file data in a bash script variable and then running it. Something like this: ls=`cat ls` $ls So is it possible to run a program without touching the hard disk and without creating tmpfs or ramfs (it would need to be standard user privileges).
I have written a shell script and set the permissions to executable. It works fine. I burn it to a cd. But then, I cannot run it from the cd. All of the execute permissions are gone.
I am having trouble getting files to execute, even though I used chmod 777 on them, I don't know what I did wrong, I use ubuntu server so only the terminal is available to me.
I'm trying to execute a .jar file(SwingTest.jar). I change the directory to where the .jar is(Desktop). Then type the following EXACTLY:java -jar SwingTest.jarBut all it outputs is:Failed to load Main-Class manifest attribute fromSwingTest.jar
I was in the wrong directory when I did a chmod +x *.bin, so now all of my commands in the terminal come back with the error "Cannot execute binary file." From ls, to cd .. I get this error. I seem to be able to do things with sudo, but does anyone know how to fix all of my permissions so that basic terminal commands come back?
I have a collection of ELF executables that I am trying to run from a FAT filesystem. How can I do this without modifying the OS?p.s. I am running 11.04