Red Hat / Fedora :: Sed: Can't Read *.php: No Such File Or Directory
May 9, 2010
I am using this command: Code: sed -i 's?,$HTTP_USER_AGENT,?,$HTTP_USER_AGENT."\nFile: ".__FILE__."\nLine: ".__LINE__,?g' *.php to modify a line in my php files. I want to do this recursively from the directory I am in. but I get this message in response: sed: can't read *.php: No such file or directory sed version is 4.1.2. It's important that I only change *.php files, and do so recursively.
Does anyone know why files in my /tmp directory are not able to rm even using root login? not only that, I can't even chmod or do anything to files in /tmp directory... it always saying "read only file system" warning
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
Not sure what the problem is, but my home directory or /home partition is acting up so that I cannot see the hidden directories in my home directory.
If I type "ls" I get the display of all my files and directories.
If I type "ls -l" I get the display of files and directories.
If I type "ls -a" or "ls -la", the terminal hangs.
Any thoughts? I have tried creating myself a new account and moved all my files over, then changed the ownerships to the new account. However, now the new account is acting the same way.
On RedHat 5 64-bit.I have a group that requires read-only access to the /var directory.I believe someone mentioned SGID and ACL stuff, and I've been researching this solution, but I wanted to check with you all first to ensure there wasn't an easier way to do this. Basically, I just need folks that belong in this certain group to read the contains of any file/directory contained within /var.
All my torrents go to my home/username/Download/ folder, I could read/write yesterday but now I cant even copy the files to a flash drive.The error i get is "Cannot create regular file '/home/username/Download/file' : Read only file system.
We currently have a NFS shared Directory mounted as read-only on our server.This directory contains multiple sub-directories and files. It being read-only is a equirement. Now, we need a directory underneath to be read-write. Is there a graceful way to make that happen? Like a special mount option to use? Basically objective is: /u01 is mounted as read-only and has 3 directories: dir1, dir2, dir3 dir3 has 2 sub-directories- sub1,sub2/u01/dir3/sub2 needs to be read-write, while all other are read-only.
after updating my system I can't start VirtualBox-OSE anymore. I get the error:
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: VBoxVMM.so: cannot open shared object file: No such file or directory
I try to remove and to re-install VirtualBox-OSE again, still the same error. VirtualBox works as root but not from a user account. The installed version is VirtualBox-OSE.i686 3.2.6-2.fc13 @rpmfusion-free-updates
I am trying to run Ansys on Fedora (64bit), but every time I do it gives me this error. "error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory"Please help as I am stuck with this issue for long.
i have a problem with realplayer 11 i can't open it due to that error message
Code: /opt/real/RealPlayer/realplay.bin: error while loading shared libraries: libgdk-x11-2.0.so.0: cannot open shared object file: No such file or directory so how can reveal this problem
I've just installed F11 (x86_64) on my computer. I've been using x86_64 since Fedora 7 and normally I use a manually installed i386 firefox/thunderbird. This time I've tried to do the same using Fireox 3.5b4 but I got many troubles. The last error I got is:
./firefox-bin: error while loading shared libraries: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory but that lib is not available on the standard repository. I've tried to use the i386 version of thunderbird (2.0.0.9) but I got this error: ./thunderbird-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory but on the repository there is just the libstdc++-4.4.0-4.i586 lib.
Running Fedora 12 (32 bit). 2.6.32.14-127.fc12.i686.PAE #1. Trying to open Amarok or digiKam generates the following error:- error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory.
Package exists in /usr/lib. Above 2 are the only applications affected that I've noticed to date. Googling indicates possible problem caused by recent flashplayer upgrade but I'm not sure.
Trying to install Cadsoft eagle pcb design app and getting :- error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
[root@localhost Downloads]# yum provides */libssl Loaded plugins: presto, refresh-packagekit No Matches found
root user won't be able to read the "active" xguest home directory (ll /home/xguest will only show an almost empty folder with content from /etc/skel). How can a root user list the folder of an the xguest home directory (while xguest is logged in)?
I have a computer running Fedora 11. I wanted to use samba in my office. So I configured the /etc/samba/smb.conf ,but it did not work well : Windows can find samba,but when I tap in username and password,samba request them again , and the same thing continues in a loop. So I copied another computer's smb.conf (which is also a Fedora 11,samba runs well in this one).I copied this file to /etc/samba/ ,then samba can't satart up . I read from /var/log/samba/log.smbd.log : Unable to open configuration file "/etc/samba/smb.conf": Permission denied Even if I use: chmod 777 /etc/samba/smb.conf
why I can't login samba from Windows:
[global] workgroup = MYGROUP server string = Samba Server Version %v ; netbios name = MYSERVER ; interfaces = lo eth0 192.168.1.99/24
I am interested in making the root file system is read-only. I've moved /var and /tmp file systems to another partitions. There are two files in the /etc directory that need to be writable.
These are:
I've moved this files to /var and linked it. I've added command to the /etc/rc.d/rc.local file:
That's it. Are there other solutions to make the root file system is read-only?
I'm playing with Fedora 12 and can't get GRUB to work. To boot, I've been using GRUB4DOS. While that works fine, I'd like to figure out what's wrong with regular GRUB 0.97. After the initial installation, GRUB came up on reboot, but it was broken -- it couldn't read the config file apparently, and no commands would work correctly. So I attempted to reinstall grub via the grub prompt. No matter what I do, or which hard disk I install GRUB on, I get "Error 18". I tried using the "grub-install" command as well as the prompt, and that did the same thing.
My system here is an ASUS M4A785TD-M EVO mo/bo. I've got four hard drives. Two 1TB SATA drives and a couple of PATA drives (300 and 500GB) on a Si608 controller card. Using the BIOS "BBS" boot menu, I can boot NTLDR and BOOTMGR off active partitions on any of the drives (with proper Boot.ini modifications to handle the change in drive order). GRUB4DOS works as well, and will boot Fedora 12 correctly off any of them (with proper menu.lst ministrations). But GRUB 0.97 that comes with Fedora just refuses to do anything other than say "Error 18".
I need to edit a line in a file in gedit, but its read only. I need to change
; default-sample-rate = 44100 to default-sample-rate=44800.
Would anyone know if there is an option to make a read only file editable? Judging by the responses to the thread I followed to enable my soundcard, it is possible, and perhaps there is some setting etc that needs changing
I restore tape backup on my Linux server. At the time of booting the server it cannot able to read the filesystems.
I am getting the following message, Code: Your system appears to have shutdown uncleanly Forcing file system integrity check due to default setting Checking root filesystem fsch.ext3: file system has unsupported features (S) (/) e2fsck: Get a never version of e2fsck! (FAILED) *** An error occurred during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell. Give root password for maintenance (or type Control-D to continue):
my problem is inkscape-0.48.0-1.fc14.3.src.rpm in fedora 14 64 bittry rebuild --source inkscape-0.48.0-1.fc14.3.src.rpm and this my error:I think something wrong pkgconfig .
attributes.cpp:20:32: fatal error: glib.h: No such file or directory compilation terminated. arc-context.cpp:21:28: fatal error: gdk/gdkkeysyms.h: No such file or directory
You may know the Humble Indie Pack 2, which is a set of crossplatform indie video games. There's one game in the bundle that doesn't offer a 64bit build and therefore it fails to load. It's called Braid and that's what you get when you try to run it: $ ./braid ./braid: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
Of course the 64bit libs for OpenGL and the propitiatory nvidia drivers are installed, but the game asks for the 32bit ones, at least to my understanding. I do know that why can install 32bit libraries on a 64 bit linux system (we do that for the sake of crappy Adobe Flash), but I don't know where to find these libs (searching the repo with keywords like .i586 or ia32 led me nowhere).
have installed the sybase successfully but the server cannot be started. And the error is that: ./startserver: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directoryAnd then I download the " libaio-0.3.105-2.i386.rpm", and used the rpm command to install: rpm -ivh libaio-0.3.105-2.i386.rpmbut it said: " libaio-0.3.105-2.i386.rpm: not an rpm package (or package manifest):"And then I download the "libaio-0.3.106.tar.gz", and tried to use tar command to install : tar -zxfv libaio-0.3.106.tar.gz
but it said: "tar: v: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2
I have an external 800GB USB drive I used for storage for both files from Win XP and Suse 9.0.I can read and write my data from Win XP o.k but when I try to write any files from Suse side it gave me 'read only file system' . This drive from Unix is mounted in /media directory with root owner with executable and read only. When I changed to become root and issue chmod 777 'FreeAgent Drive'.I got error chmod: changing permissions of 'FreeAgent Drive':Read only file system.
From unix, reading any file on this drive, using gui application, I can not access the drive at all but I can see all files on the drive using a command with quote (cd /media/'FreeAgent Drive')