Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Gentoo Linux Help > Making a shortcut

Forgot Password?
 Gentoo Linux Help   For help and discussion related to Gentoo Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-03-2005   #1 (permalink)
Just 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!
brill01 is offline  



Reply With Quote
Old 06-03-2005   #2 (permalink)
Linux 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).
Monkeh is offline   Reply With Quote
Old 06-03-2005   #3 (permalink)
Just 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 )
brill01 is offline   Reply With Quote
Old 06-03-2005   #4 (permalink)
Linux 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).
Monkeh is offline   Reply With Quote
Old 06-03-2005   #5 (permalink)
Just Joined!
 
Join Date: Jun 2005
Posts: 31
so I should do :

ln -s /home/brill /home/jack/temp ( should that do it ? )
brill01 is offline   Reply With Quote
Old 06-03-2005   #6 (permalink)
Linux 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'.
Monkeh is offline   Reply With Quote
Old 06-03-2005   #7 (permalink)
Just Joined!
 
Join Date: Jun 2005
Posts: 31
Thanks man your the best...
brill01 is offline   Reply With Quote
Old 06-03-2005   #8 (permalink)
Just 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?
brill01 is offline   Reply With Quote
Old 06-03-2005   #9 (permalink)
Linux 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.
Monkeh is offline   Reply With Quote
Old 06-03-2005   #10 (permalink)
Just 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..
brill01 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:11 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1