Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > What's the Best way to share files with diffrent users over SMB?

What's the Best way to share files with diffrent users over SMB?
Thread Tools
Senior User
Join Date: Mar 1999
Location: Livingston NJ USA
Status: Offline
Reply With Quote
Dec 23, 2002, 04:28 PM
 
Hello, i have posted this in the networking section, but I believe the unix forum dwellers are more capable of answering the question...

-----

Here is the dilemma.

I would like to share the following:
/Users/userA/Music/iTunes/iTunes_Music

With userB on a windows machine.

Also, userB must be able to access the following:
/Users/userB/

At the same time.


---------------------
Here is what does not work:

Making a hard link to the music directory in the userB account. I am having trouble making hard links to directories in OS X, as far as I can tell the kernel does not allow it.


Logging into both accounts at the same time using windows 2000. I don't think its possible. If it is I don't know how to do it, and i'd rather not do it this way. I want both user to keep their passwords private.

---------------------

I could put the iTunes stuff in the /Users/Shared folder, but if I do, how to I get to it over the network using SMB? Would this be the best way? User that log in are restricted to their account folders. I would rather keep users restricted to their proper folders also..


In short, what is the best way of doing this?

Thanks.
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Dec 29, 2002, 07:29 PM
 
Originally posted by Avon:
Hello, i have posted this in the networking section, but I believe the unix forum dwellers are more capable of answering the question...

-----

Here is the dilemma.

I would like to share the following:
/Users/userA/Music/iTunes/iTunes_Music

With userB on a windows machine.

Also, userB must be able to access the following:
/Users/userB/

At the same time.


---------------------
Here is what does not work:

Making a hard link to the music directory in the userB account. I am having trouble making hard links to directories in OS X, as far as I can tell the kernel does not allow it.


Logging into both accounts at the same time using windows 2000. I don't think its possible. If it is I don't know how to do it, and i'd rather not do it this way. I want both user to keep their passwords private.

---------------------

I could put the iTunes stuff in the /Users/Shared folder, but if I do, how to I get to it over the network using SMB? Would this be the best way? User that log in are restricted to their account folders. I would rather keep users restricted to their proper folders also..


In short, what is the best way of doing this?

Thanks.
OK, let's take them one after the other:

Hard links: Root can create hard links to directories, unless Apple changed something recently. I don't think you should do this, however, because it generally leads to serious disk corruption.

Logging in twice: Yes, you can do that, if you contact the same server using two different names. Let's say the dns entry mymac.corp.com points to IP 12.34.56.78. Then you could connect to

\\mymac.corp.com\userB -U:userB

at the same time as

\\12.34.56.78\userA -U:userA

This is a bug in Windows, but it's a fairly useful one at times!

Now, for my recommended soloution: Use the program here:

http://www.versiontracker.com/morein...596&db=mac

to share the entire Users directory. Then let the standard access privileges control who can access what inside that directory.
     
Mac Elite
Join Date: May 2001
Location: ~/
Status: Offline
Reply With Quote
Jan 6, 2003, 12:25 AM
 
You could always put your music directory in /User/Share and make a soft link to it in your ~/ directory. As long as you put a group read & write permission on the music directory in /User/Share and userA and userB are in the same group you shouldn't have any problem sharing that directory over Samba. This has the added bonus of allowing you to share your music directory over Apache. If you make up some .m3u files with the path to your music you can open the .m3u in Winamp or iTunes and stream MP3s out over HTTP or link to the MP3 itself.

It is pretty trivial to switch the iTunes Music directory to be anything you want, like /User/Share/Music.
(Last edited by Graymalkin; Jan 6, 2003 at 12:47 AM. )
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2