There are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
There are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
I am running both Ubuntu and XP and have a local server for my computer on both systems. Both partitions have a www directory that is accessed when I type localhost into my browser.
I want to be able to work on the project in both systems and have the changes I make show in both. So my questions is how can I make "localhost" point to the windows www instead of the /var/www one when I start up the server?
I have a large collection of files on a computer (tallgrass) and tallgrass is running an ftp server, which I have the username and password to. There is about 600 GB of files on tallgrass that I need access to, but I don't have a big enough hard drive. I need these data files to run a cpu-intensive calculation, and my CPU is significantly better than tallgrass' cpu, which is why I want to do it on my computer. (Tallgrass also doesn't have enough RAM.) What I would like to do is create a "symbolic link" on my hard drive that will point to the directory containing the data on tallgrass. Read-only is perfectly OK. This way I could read from mylink/data0001.dat and it would read from the file data0001.dat over ftp from tallgrass. I shouldn't have any speed issues because tallgrass is on my 1 Gbps LAN. Is there a way I can do this?
I have searched around and am trying to understand the difference between a hard link and symbolic link (soft link). I found this link is quite useful. But I am still not very clear. I understand soft link is not a copy of original file, but is a hard link a copy or not?
i only need localhost for testing some phpnow i get[Wed Apr 28 18:44:57 2010] [error] [client ::1] Symbolic link not allowed or link target not accessible: /srv/www/htdocs
I have a problem where I'm using Ubuntu linux to mount a Windows Vista machine's USB drive and access it on the web using Apache. I did have the USB drive plugged into the Linux machine directly and that was working via the web. FollowSymLinks is on in httpd.conf
[Code]....
The mount works and I can see the files (see above) from my regular linux user account. If I make a test file in /mnt and soft link to that, I can see it on the web. So it's just the mount to the vista machine that seems to be a problem. It's supposed to be a simple read-only mount and the apache login should (I think) be able to see the same generic root access permissions.
log from apache: [Mon Apr 26 20:39:42 2010] [error] [client 99.99.99.99] Symbolic link not allowed or link target not accessible: /home/user1/pub_html/Music, referer: https://xx.xx.xx/~user1/music.html
The credentials have a login and password that matches a special read-only account on Vista. I can see the files on the system from Linux, but not via the web. As mentioned above, a different link to the same /mnt area works fine via the web. I've tried several different mount options with no success.
While I was trying to compile a C shared object library, I accidentally created two symbolic links which point to each other. Is there a way to get rid of them without nuking the whole directory? I read that the only way to break a symbolic link is to delete the file it points to, but I'm sure there must be another way.
Can you make a symlink read only? I have about 100 users who all have a .login. They like to modify their .login, which is fine in most cases, but sometimes they do it wrong & it screws up a LOT of the things they are supposed to be doing. Because of this, I'm going to lock down all .logins & I thought, "wouldn't it be nice if we could modify one file & all users would get the modification?" So I'm currently testing having everyone's .login point to a central .login via symlink. It works fine, but it appears that the users can [re]move the link & replace it with a file, thus defeating the purpose. Can I lock down the symlink so the user cannot move or remove the link? FWIW, it must be a symbolic link (as opposed to a hard link) as the file it points to is on an NFS share (not the same file system).
I have two folders such as nonserved/ folder1/ folder2/
And a served folder via Apache media/ js/ css/ img/
In the end, I want to include/append contents of /nonserved to /media so that [URL] will be as such: /media /js /css /img /folder1 /folder2
I am running Ubuntu Server, I am up for either apache config or symbolic link based answer :) Plus nonserved folder is rather dynamic thus manual symbolic linking to each folder is impossible.
I am using Lubuntu 10.10 and have installed my application that I need. What I need is a link to the desktop that will execute the program from the /usr/share/test directory. When I execute the program I need to use "Sudo" in order to run in. So my questions is how would I add a symbolic link the desktop with the approipiate permission to run the executable. Also I need to add a custom icon the desktop.
I love how in Linux you can link to folders. get Windows XP to change where My Videos, My Music and My Pictures folders are pointing to, to make them act like Linux symlinks?Is there some way to get the same functionality in Windows XP, maybe by editing the Registry.
It appears that a write protected socket was established as a symbolic link between an audio file and the binary of the audio itself. We are unable to remove the files and the holding folder. Attempted all possible combination of RM that I could think of and then graduated to shred. We are unable to do so code...
There is a symlink from /var/www to a personal directory. FollowSymlink and chmod 755 are all set. It works perfectly until each morning I will get a "Symbolic link not allowed or link target not accessible" error. When I do a "sudo service apache2 restart", the problem will go away.
I am trying to create a RS232 C program that executes a series of commands down the line to a robot. Everything seems to work fine, except any sequential write to the serial port. At first I thought it was the UART's buffer being filled too fast, but even with a 50 uS delay it still throws the error.
I want to make symbolic links for all them to my current directory /test2
I tried
But it failed. It seems like I can't make symbolic links for all the 5 files simultaneously.
Often times I need make symbolic links for multiple files with some common pattern (just like ".txt" here). I really hope to avoid making symbolic link for each of them one by one...
Since my last upgrade I find each time I want to install something at the end:
ldconfig deferred processing now taking place /sbin/ldconfig.real: /usr/lib/libppsvodres.so.0 is not a symbolic link /sbin/ldconfig.real: /usr/lib/libppsvodnet.so.0 is not a symbolic link /sbin/ldconfig.real: /usr/lib/libppssg.so.0 is not a symbolic link /sbin/ldconfig.real: /usr/lib/libppsfds.so.0 is not a symbolic link /sbin/ldconfig.real: /usr/lib/libppsapi.so.0 is not a symbolic link /sbin/ldconfig.real: /usr/lib/libppsbase.so.0 is not a symbolic link
i made a symbolic link with this ln -s user so the user can view all the folders from ftp no just the home folder but now i see that all the ftp users can see all the folders so they can view everything not just they home folder If someone knows how to apply that just for one user, or the way to disable the link "ln -s" that ive made. I prefer to no one able to see all the folders but if you know how to ddo it for just one user will be good.
I have done something very studpid I think and was wondering if there's any chance to recovery a folder. I, for some stupid reason, merged a symbolic link with the actual folder, Thought I was doing something else.Now the directory does not seem to exist and when I click on it there is an error saying 'The link '/directory/' is broken'
Code: ln -s /home/vichingo/.gvfs/"media on mybook" /media/mybook
this worked, only now I have a folder media on mybook within the mybook folder.
I wanted to remove this link, but when doing:
Code: sudo rm /media/mybook/media on mybook
I get:
Code: rm: cannot remove `/media/mybook/media': No such file or directory rm: cannot remove `on': No such file or directory rm: cannot remove `mybook': No such file or directory
for some reason I am either unable to remove the link or change the name of the folder to change the spaces into underscores.
Consider that symbolic links at times can be broken. The target reference can be lost or misplaced. As such, usage of a symbolic link becomes deterred or broken. I propose the following: Symbolic links from now on carry a checksum relating to the original file they are linked to. The original file will carry a property that checks if it has been changed. This property will figure out the new checksum, reconfigure the symbolic link, and continue the symbolic link. Furthermore, if the system were to change, there would exist the possibility of have a symblink-comparison feature that allows the user to check the entire filesystem for files that meet the checksum criteria so that symbolic links can once more be re-established.
I have a CMS I have developed, which will run on several sites all hosted in sub directories on my dedicated server. I want to create symlinks for the main files of the CMS, including all config files, functions and admin sections. Then there will be a few files specific to each site.I read some tutorials on creating symlinks, although most are not very good in my opinion.
Do you have to create a symlink for every file I want to include? Or can I just create a symlink to a directory? For example:CMS is located at /www/cms/.Can I make www/domain1/ point to that directory, and if so, will all files include themselves correctly. I think I am a bit confused on how this works.