Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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.
  1. #1
    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!

  2. #2
    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).

  3. #3
    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 )

  4. #4
    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).

  5. #5
    Just Joined!
    Join Date
    Jun 2005
    Posts
    31
    so I should do :

    ln -s /home/brill /home/jack/temp ( should that do it ? )

  6. #6
    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'.

  7. #7
    Just Joined!
    Join Date
    Jun 2005
    Posts
    31
    Thanks man your the best...

  8. #8
    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?

  9. #9
    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.

  10. #10
    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..

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •