[NTLUG:Discuss] Re: Creating a shared folder
Greg Edwards
greg at nas-inet.com
Mon Sep 27 09:24:53 CDT 2004
David Ross wrote:
>
>
> So the easiest way would be?
> $mkdir /games/shared
> $ln -s /home/users/shared /games/shared
>
> I'm only trying to share this directory with a Windows box on my network.
Yes. That is if you want to share the entire contents of the shared home.
For windows users I normally keep a "windows" directory in their home
and then have the windows users keep a shortcut on their desktop to that
directory. If you put the entire linux user on /games/shared remember to
copy the current contents before deleting the home dir.
YMMV, but this is how I'd set it up
$ su - root
$ mkdir /games/windows
$ chown root:user /games/windows
$ chmod g+s,o= /games/windows
$ ln -s /home/users/shared/windows /games/windows
-- repeat for all users to grant access to /games/windows --
$ exit
Setting root as owner, user as group, the sticky bit, and turning off
world access will let all members of the user group get to the files, root
will control the directory, and limit access to user group members. Make
sure all users that will share these are members of the user group. I
prefer to setup a win or winuser group rather than using user itself, but
that's just me.
--
Greg Edwards
Software Engineering Services - http://consult.nas-inet.com
Custom Hosted Websites - http://www.nas-inet.com
More information about the Discuss
mailing list