Results 1 to 10 of 18
Hello Guyz,
Im pretty new to the linux game, and needing some help.
I have 2 dirs
home/jack and home/brill
Home/jack has a dir in it called temp that I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-03-2005 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 31
Making a shortcut
Hello Guyz,
Im pretty new to the linux game, and needing some help.
I have 2 dirs
home/jack and home/brill
Home/jack has a dir in it called temp that I want to provide a shortcut to home/brill so
What I want to do is :
So both users can read, write to the same dir. But the actual folder is contained in home/jack/temp but I want brill to have access to that folder as well can you advise on how to do this?
how do I make this kind of shortcut?
Please help, Thanks!
- 06-03-2005 #2Linux Newbie
- Join Date
- Jun 2005
- Posts
- 181
Probably a bit of a roundabout way, but hey..
Create a group, and use chown to set the directory to be owned by jack and that group. Add jack and brill to the group, and give the group rw access to the directory. Then put in this.. ln -s /home/jack/temp /home/brill/temp. I think that should work. If you need help with making the group etc, just say (lazy).
- 06-03-2005 #3Just Joined!
- Join Date
- Jun 2005
- Posts
- 31
Is their anyway I can actually go ahead and force it to mount that link
what I learned so far is ln -f /home/brill/ /home/jack/temp ( but it says that its not allowed )
This is what it comes back and tells me:
ln: `/home/brill': hard link not allowed for directory
Any ideas? Sorry I dont know all about groups and stuff ( extremely new )
- 06-03-2005 #4Linux Newbie
- Join Date
- Jun 2005
- Posts
- 181
-s, not -f. -s is symbolic, anything else is a hard link (directly to the data on the drive, and therefore considered a security risk).
- 06-03-2005 #5Just Joined!
- Join Date
- Jun 2005
- Posts
- 31
so I should do :
ln -s /home/brill /home/jack/temp ( should that do it ? )
- 06-03-2005 #6Linux Newbie
- Join Date
- Jun 2005
- Posts
- 181
If /home/jack/temp is the directory you want a link to, the command is 'ln -s /home/jack/temp /home/brill/temp'.
- 06-03-2005 #7Just Joined!
- Join Date
- Jun 2005
- Posts
- 31
Thanks man your the best...
- 06-03-2005 #8Just Joined!
- Join Date
- Jun 2005
- Posts
- 31
All I then need to do is make it writeable by user brill
so should I just make it Chmod 777 temp?
- 06-03-2005 #9Linux Newbie
- Join Date
- Jun 2005
- Posts
- 181
That would allow other users to access it. If you have GUI tools availble (easier than command line), you can make a group, assign both users to that group (if all you have is kuser, don't use it, it got me in a bad state last time I tried), and then use konqueror or whatever to change the ownership of the directory. Then you can make it readwrite for the group.
- 06-03-2005 #10Just Joined!
- Join Date
- Jun 2005
- Posts
- 31
Ah, ok great, but I only have command line so I dont have much options. but thanks for all your help you have helped tons!!! Your the best..


Reply With Quote
