Ubuntu :: How Can Be Changed Symlink From / Etc / Rc2.d Directory
Feb 27, 2010How can be changed a symlink from the /etc/rc2.d directory.I want tho change the time of start from S20 to S60.
View 1 RepliesHow can be changed a symlink from the /etc/rc2.d directory.I want tho change the time of start from S20 to S60.
View 1 RepliesIf I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:
/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c
My home directory's permissions allow only myself access to it. Is it possible to put a file inside my home directory with.. say.. full permissions, and create a symlink to it so other users can access that file alone inside my home folder? System is Ubuntu Karmic.
View 2 Replies View Relatedis there a way to make a symlink that redirects to the directory rather than acting as an alternate path? In other word, what I have now is:
[Code]....
I want my pwd to be the hardlink pwd rather than the symlink pwd after changing my directory.
I m trying to do a make but get error 2 right away with
Code: $ make: *** /lib/modules/2.6.35.13-91.fc14.i686/build: No such file or directory. Stop. make: *** [all] Error 2 regardless
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.
View 1 Replies View RelatedI did a clean install from Ubuntu 09.04 to 10.04 and restored my files from tar.
Everything worked fine until I tried my weekly rsync backup.
The permissions seemed to be causing problems, so I recursively changed all the permissions in my home directory:
Code:
~/Documents$ sudo chmod -R 644 /home/wolf/
[sudo] password for wolf:
chmod: cannot access '/home/wolf/.gvfs': Permission denied
So now all the directories and files have read permission for everyone:
Code:
~/Documents$ ls -A
ls: cannot open directory .: Permission denied
~/Documents$ sudo ls -lA
[sudo] password for wolf:
total 80
drw-r--r-- 2 wolf wolf 4096 2010-05-22 20:45 career
drw-r--r-- 23 wolf wolf 4096 2010-05-02 17:17 computer_languages
drw-r--r-- 2 wolf wolf 4096 2009-08-09 23:29 .ecryptfs
drw-r--r-- 21 wolf wolf 4096 2010-05-02 17:23 misc
-rw-r--r-- 1 wolf wolf 27298 2010-05-23 13:01 next.odt
drw-r--r-- 3 wolf wolf 4096 2010-05-23 15:46 PC_maintenance
drw-r--r-- 5 wolf wolf 4096 2010-05-08 01:43 software_projects
Now I can't even look at my own directory:
Code:
/home$ cd /home/
/home$ ls -lA
total 20
drwx------ 2 root root 16384 2010-05-07 01:01 lost+found
drw-r--r-- 42 wolf wolf 4096 2010-05-23 15:35 wolf
/home$ cd /home/wolf
bash: cd: /home/wolf: Permission denied
/home$ sudo cd /home/wolf
[sudo] password for wolf:
sudo: cd: command not found
/home$
I am using fedora 13. If is use the command "cd //". It changes to root directory. How is it? What "//" denote?
View 6 Replies View Relatedthe permissions for my home directory were accidentally changed from 'access files' to 'create and delete files', and I changed them back, but ever since then I am not able to change any preferences/settings at all. power management, themes, panels, emerald, anything. my user account is supposed to be the administrator, and all the user privliges are checked. how to get control of my computer back?
View 9 Replies View RelatedI have a server with my music on it. There is a network share where all my machines can access that music. In the past I have created a link inside the Music folder of each user/machine which links to the Samba share. I have been doing this by linking to /home/[username]/.gvfs/share on server.
In 8.10 I am able to drag and drop to create the necessary link from Music to share on server. With maybe 9.10 I lost the ability to drag and drop the link and had to resort to the command line ( ln -s "/home/[username]/.gvfs/share on server" /home/[username]/Music ). With 10.10 I don't seem to be able to create this link using any method. (Any link which is created is linked to / .) (After 8.10 admin rights are required to create the link from ~/.gvfs/whatever.) This method is very handy as all of the machines and users point to the exact same location for their music (~/Music/share) and if I can't create that link this system of organization fails.
how to undo this?
"Simply change the symlink so that it points to /bin/bash. To do this, open a terminal, and type the following:
sudo rm -f /bin/sh
sudo ln -s /bin/bash /bin/sh
From now on your scripts should work as their authors expected."
So, I made a bash script that I need to be executed on booting, I created it in /etc/sbin/mount_folder.sh
Code:
sudo chmod +x mount_folder.sh
sudo ln -s mount_folder.sh /etc/init.d/mount_folder.sh
Then I try to:
[Code].....
Also, if I create the symbolic link in the same folder I can execute it normally
I recently installed virtual box on debian and after it had finished my terminal informed me that I could remove some "unnecessary" software by use of sudo apt-get autoremove. When I did this, some of the icons on the desktop changed and all of the icons in the drop down menu on the bar at the top of the screen also changed to ordinary folder symbols. The theme that I was using also went away. I restarted the computer and it booted back into a shell prompt with no GUI. I tried to get back to the GUI using alt+f7 but it didn't seem to exist
View 2 Replies View RelatedI have mounted a samba share on my desktop from a remote server (with smb4k). There I created a symlink to "/". When I open the symlink with konqueror it opens the right one (the root directory of the server), but when i open this link with the shell (cd rootfs/), then it opens my local root directory (of my host)... Is it possible to open the right link with the shell?
View 1 Replies View RelatedI'm running a clean install of Lucid on a new HD. I've moved over all my old data and files from the previous Karmic system, and am having trouble with a directory full of symlinks. This is a collection of links into my photographs, which I use for wallpaper with Desktop Drapes, and the directory has 1300 symlinks which now point to the wrong place.
I only need to change the first part of the link target:
/oldplace/somedir/subdir/photo.jpg
into:
/newplace/somedir/sudir/photo.jpg
I believe this needs the application of _ ln _ in a terminal to re-write the symlink, and the use of a bash line including _ if . . fi _ or possibly _ IFS _ ? I might also need to use _ sed, - but I'm not sure of the syntax for this.
recently I downloaded warzone 2100. It was downloaded in tar.gz format. I searched for the way to install it and I am not able to install it. I unzipped the folder and then changed my directory to the unzipped folder. After that I used ./configure. After doing this, when I write make, it gives error and says no make file found. What can I do to solve this problem.
View 9 Replies View RelatedI have a docs partition with my music on it. I replaced the Music folder in the system's home folder with a symlink pointing to the music folder on the docs partition, but the special music icon has now disappeared (it just looks like a regular folder).
View 3 Replies View RelatedI have been using pidgin on windows XP with .purple on another networked computer [also win XP]. in windows you can set the environmental variable to change the location of purplehome to the //windows_share/.purple and it 'just works' I am now trying to replicate this using ubuntu 10.04 LTS I need some answers: should a symlink be used? should it be added to fstab? should properties, command be changed in pidgin? I have tried all of these but I must not be doing it right cos it is not working! Trust you can help me out on this. I am a relative newbie but have been using ubuntu for a year or so, just never sorted this one out.
View 1 Replies View RelatedIf I have the below sudoers entryusera ALL=(userb) NOPASSWD: /home/userc/bin/executable-fileusera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-fileWhen I log-on as usera and try running the below commands, it workssudo -u userb /home/userc/bin/executable-filebut NOT the one below.sudo -u userb /home/userc/bin/link-to-another-executable-fileSorry, user usera is not allowed to execute '/home/userc/bin/link-to-another-executable-file' as userb on hostname.
View 1 Replies View RelatedIn my MIDI music collection, I have a "best" folder with duplicate copies of only my favorite files. Recently I thought, why waste memory with duplicates--can't I just put symlinks in the "best" folder? So I tried to, in Konqueror. It would only let me make the symlinks from the Konqueror superuser account.
View 4 Replies View Related2.6.38-8-generic
Mint 11 64 bit
I'm trying to move a file from a directory to another one and create a symlink but seem to be doing something wrong. Have done "man ln" and looked up info in coreutils but I don't seem to be able to get it right. There are two files in ./home/jim/.config/banshee-1/ that I want to move to ./home/jim/Dropbox/banshee. I have created backups of both and created the new folder in Dropbox. see attached screen shots. I then run
Code: jim@saturn ~ $ sudo ln - ./home/jim/Dropbox/banshee/banshee.db ./home/jim/.config/banshee-1/banshee.db
ln: creating symbolic link `./home/jim/.config/banshee-1/banshee.db': No such file or directory and get the above error message. Now I know symlinks do not need to be complete at the time of creation, but I'm not sure if I have done this right or not and if I try and read and write banshee.db at the original location if it will do it properly and efficiently. Is this a case where I should do a hardlink instead and have both files. If I want to do this every time at start up, how do I automate the commands once I have them right?
if it is possible to copy and paste as a symlink.
It seems to me that the only way to create a shortcut or symlink is through the command line. I use KDE.
This was one of the most basic things Windows could do since Windows 95, and is one of the simplest shortcuts I dearly miss since leaving Windows.
I have a directory containing files and symlinks to files elswhere. I make a copy of the directory like this:
cp -rp dir/* new_dir
The files in new_dir have their original timestamps, but the symlinks have the current time. touch -t does not operate on the symblink but on the files they reference. Is there a way to set the timestamp of the symlink to a time in the past?
I have been using linux for about 4 months now and decided i fancy the challenge of building a LFS system(Using book version 6.7). I have got all the way up to the point of gcc being installed and then have to create the symlink to libgcc.a
Now i have typed in the command and tried copy and pasting but i always get the following output:
Code:
Now it cannot find -gcc it appears but states at the bottom ./libgcc.a file exists.
If its a fatal error or what I can do to possibly correct it!
I have a dual-boot setup with Ubuntu and Windows 7, sharing an NTFS file system.If I create a new folder (called "newfolder") in the root of my Windows 7 partition, with a text file called newtextfile.txt, and then create a symlink in Ubuntu with ln -s /media/S3A8115D003/newfolder.I can then see, read and edit "newtextfile. txt" from Ubuntu, until I log out and reboot.After I reboot, the symlink to newfolder still appears to be there but when I try to access it, I get This link cannot be used, because its target "media/ S3A8115D003/ newfolder" doesn't exist.However, if I first navigate in the file manager to the Windows folder S3A8115D003/ newfolder and view its contents, then the Ubuntu symlink appears to be healed.How can I make the symlink work without first having to touch the target file with the file manager?
View 8 Replies View RelatedI 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.
Because I am working with some 3d software, and to be able to start it I need to symlink libGL.so.1 and libGL.so.1.2 from /usr/lib64/ to libGL.so.1 and libGL.so.1.2 from /usr/lib64/catalyst/ folder. I move existing libs to new names by adding .bak at the end of file name.
But everytime I restart machine soemthing changes libGL.so.1 linking from libGL.so.1.2 (in catalyst folder) to libGL.so.1.2.bak (in usr/lib64/ folder), original file. And I can not start 3d software. Can I stop that from happening somehow? Why is that happening at all?
I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd' to navigate back out of the symlink rather than just navigate to the parent directory of the linked-to folder...
For example:
$ ls -al /jobs
tech -> /mnt/projects1/tech
temp -> /mnt/projects2/temp
$ cd /jobs/tech
$ cd ../temp
../temp: No such file or directory.
$ pwd
/mnt/projects1/tech
I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to /bar/a,b,c and then copying over certain files with a certain extensions.
View 1 Replies View RelatedI have to make sym link of phpmyadmin in /var/www in order to run phpmyadmin. I read that links can't be chmod-ed. The link ot folder phpmyadmin has 777 permissions. When browse in it every file has only read and for the root read/write access.
Is that a problem (777 access rights on sym link phpmyadmin on /var/www folder)?