0
votes
0answers
12 views

Mount (or makefs or tunefs or cap or…) option to disallow symlinks?

(Other than mkfs.vfat, that is.) Is there a way in Linux to have a filesystem mounted but to prevent symlinks from being made on it? It's fine if this needs to happen at the time the filesystem is ...
2
votes
1answer
65 views

Why store program code in /var/cache?

I have inherited a Java / Tomcat stack, running on Ubuntu. It has crashed and I am trying to restart it. The program code seems to be using a config file which I have found on the file system. The ...
0
votes
1answer
37 views

Specify a fallback file for a broken symbolic link

I want to create a symlink, foo.txt, needed at system startup, to another file, bar.txt on a different mount point. The mounted partitions are different physical drives as well. ln -s /baz/bar.txt ...
5
votes
1answer
353 views

Cannot delete broken symbolic link

I have a symbolic link formerly pointing to a Dropbox directory. I don't know what I did wrong, but apparently now it points to itself. hyper@mypi:/home/hyper/test$ ls -l total 1024 lrwxrwxrwx 1 ...
1
vote
2answers
63 views

Something like a symbolically linked file, but with change details attached?

Is there a file type or method for using files in which certain files look and behave like symbolically linked files, but contain extra meta information for changing the data when they are read? ...
3
votes
1answer
55 views

Where are information stored information about hard/soft links

Where does the *nix system store information about number of hard links to a specific inode? I can't find any information about that. Everywhere what a hard link is but rarely a bit more advanced ...
0
votes
2answers
178 views

Hard links versus symbolic links: which one is faster / smaller? [duplicate]

Hard links Given a file original.txt, a hard link hardlink.txt will point to the same inode and continue to exist even when original.txt is deleted. Symbolic links Given a file original.txt, a ...
1
vote
1answer
84 views

Create Relative Symlink Inside Relative Symlink

I've been browsing for a minute now trying to find a way to create a relative symlink inside a relative symlink, and what I mean by that is this... I have my CakePHP Templates Skeleton as a symlink ...
10
votes
2answers
699 views

Convert absolute symlink to relative symlink with simple Linux command

I have a complete sub-filesystem inside a path /home/user/system containing the standard Linux structure with directories /bin, /home, /root, /usr, /var, /etc,... This sub-filesystem contain symbolic ...
4
votes
3answers
155 views

How can I edit symlinks?

My basic understanding of a symlink is as a special file, a file that contains a string path to another file. The kernel's VFS abstracts a lot of that away but is there any reason why symlinks seem to ...
0
votes
1answer
73 views

How to increase the link count for a directory, link count went to 0?

I have made myself land in this situation, it is a chrooted workspace on my system where I virtualize the entire file system ( so its not actual /var/log ) Is there a way that I can either delete this ...
1
vote
2answers
97 views

FS permission scenario

How can I achieve this files & folders permissions scenario: Consider these folder: Folder A: 640 root apache /var/www/A/ Folder www: 640 root apache /var/www/ and this linux user: id user1: ...
1
vote
2answers
2k views

cannot create symbolic link on CentOS 5.6 - File exists error

I am trying to setup a symbolic link on my CentOS 5.6 machine to point dev_crmpicco/ to ~/vhosts/dev/dev_crmpicco/web/ I am using the following command: [crmpicco@devel dev]$ ln -s ...
2
votes
1answer
609 views

Using symbolic link on directory with contents

I'm working on a Debian machine with a bunch of different filesystems and I'm trying to manipulate a large amount of data in MySQL. I've run out of room in my home directory, but there's a ton of ...
5
votes
1answer
135 views

Can non-canonicalized forms of filesystem paths be significant? (eg. “foo//bar”, “foo/./bar”, and “foo/../bar”)

I have a script for building a particular flavor of GCC cross-compiler. Throughout the script there are many paths that are not in canonical form, such as duplicate path separators (/xxx/foo//bar/yyy) ...
2
votes
2answers
655 views

Symlinks and EncFS

I am trying to secure my Dropbox account by using EncFS. My strategy is as follows: I store all my files in a folder called ~/Public/. The encrypted counterpart of ~/Public/ is ~/Private/. Use ...
4
votes
5answers
2k views

How to make a variable symlink ? (or something similar)

How can I make a variable symlink that would point to a different location according to the current user? Is it possible? Should I use something else instead? A mount point? How? Here is the problem ...
4
votes
2answers
2k views

How does linux work with symbolic links?

I mean what's going on when some process wants to read a symlink? What's going on when something changes a symlink during a read or even write process? For example: I have 2 huge, similar 100G files ...
8
votes
3answers
397 views

Symlink to part of the file?

Is there possible to create file that is just a sub-sequence of bytes from another file, like a symlink, but referencing only part of the file?
58
votes
4answers
15k views

Why hard links not allowed to directories in UNIX/Linux

I read in text books that UNIX/Linux doesn't allows hard links to directories but soft links do. Is it because, when we have cycles and if we create hardlinks, and after some time we delete the ...
5
votes
2answers
7k views

How do you make samba follow symlink outside the shared path

This is ubuntu server 10.04 64 and samba 3.4.7 I have a shared directory /home/mit/share and another one /home/temp that I link into the shared one: ln -s /home/temp /home/mit/share/temp But on ...
9
votes
1answer
133 views

Strategies for maintaining a reference to a file after it was moved or renamed?

I've had a mac at work lately, and was amazed to see that Xcode would still find my latest project after I renamed its folder and moved it someplace else. Now I understand that this is the result of ...