Permissions on link files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Permissions on link files
# 1  
Old 04-01-2005
Permissions on link files

Does any one now if you can change permissions on a linked file with out completely removing it and then relinking it?
# 2  
Old 04-01-2005
The permissions on a link are always 755, owner is the creator of the file and the group is the primary group of the creator. If chmod is used on a symbolic link, the target file permissions will be modified.

Hope this helps!
# 3  
Old 04-01-2005
Actually the permissions on a symlink are 777 but this is modified by the umask. This fact can be used to devise a script to re-create a symlink with different permissions. Since the permissions on a symlink are ignored there is no reason to this.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Zero link count files in proc

Hi Experts, I had encountered an issue where the zero link process was holding too much amount of data on a Solaris server. I was able to terminate the process after which the space of the file system was released. 40G /proc/8567/fd/2 Can you please let me know if there are any... (11 Replies)
Discussion started by: dhanu1985
11 Replies

2. UNIX for Dummies Questions & Answers

Nullifying Zero Link Files

how do i nullify zero link files under /proc please help me (4 Replies)
Discussion started by: bluenavi
4 Replies

3. Solaris

Nullifying Zero Link Files

How do I nullify a zero link file. Please help me (0 Replies)
Discussion started by: bluenavi
0 Replies

4. Solaris

Change permissions for link in solaris

Hi I am an application admin. My users have all d code at one place. I am planning to create a link on every ones home directory. But i want to know change the permissions of the link so that users will delete it accidentally. Could you please tell me how to change the permissions on the link... (4 Replies)
Discussion started by: firestar
4 Replies

5. Shell Programming and Scripting

How to find link files

How to find the link files. i have main file, now i want to find all the files linked to it. (4 Replies)
Discussion started by: aju_kup
4 Replies

6. UNIX for Advanced & Expert Users

how to remove the files along with its link files

How to remove the files along with its link files either hardlink or softlink? (1 Reply)
Discussion started by: Ramesh_srk
1 Replies

7. Solaris

Testing targets of link files > ln -s

Hi all Ive been given the task to write a script that tests that certain link files work, i.e. the physical directory the link points too, is actually there. Now, before I go down the route of ls -l | awk ...... or using test or find, is there a far more simpler command that I can use ? ... (2 Replies)
Discussion started by: sbk1972
2 Replies

8. Shell Programming and Scripting

link files together

if I have 1000 files, named file1, file2, ... ,file1000. for each one, I want to append a line, for example "this is the end of file#". then, I want to link them all together. how can I do that by using a simple script? (1 Reply)
Discussion started by: fredao
1 Replies

9. UNIX for Dummies Questions & Answers

Link files....

How do you identify the type of a link in the output of the ls -l command? (1 Reply)
Discussion started by: Tom Bombadil
1 Replies

10. Shell Programming and Scripting

Link files in unix

Can anyone say some ideas about using/creating link files (for ex., lrwxrwxrwx 1 bin bin 7 Jan 10 2001 bin -> usr/bin) in a shell script. (2 Replies)
Discussion started by: yuvasyntel
2 Replies
Login or Register to Ask a Question