Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old May 16, 2013, 04:09 AM   #1
$hrap
macrumors newbie
 
Join Date: May 2013
Symbolic Links and permissions.

Hi all,

At our school we have a Server 2008 environment, with an XServe running Lion Server. Pupils authenticate via AD and OD is used for policies via Workgroup Manager.

The pupils use Garageband on some 25+ iMacs.

We have an SMB share setup on one of our Windows 2008 servers, it's basically a folder that pupils can read/write to called "Garageband" - the idea is that pupils can save their garageband files to this folder for teachers to review.

I've setup a LaunchAgent on our test iMac called com.myscript.garageband.plist located in /Library/LaunchAgents/, this points to a shell script called "sym-links.sh" located in /Library/Scripts/MyScripts:

Code:
#!/bin/bash
ln -s "/Volumes/RMShared Documents/GarageBand" ~/Music/GarageBand
The idea is that when a pupil logs on, the LaunchAgent runs the sym-link.sh script, creating a symbolic link directly from their local GarageBand folder /Users/Music/GarageBand to the SMB mount volume /Volumes/Shared Documents/Garageband so pupils can save directly to it.

The symbolic link works correctly, the local garageband folder does redirect to the smb "garageband" folder on the server - but pupils cannot save directly to it. It comes up saving the file is either corrupted, or cannot be read. It looks as if the file saves correctly, when when the pupil tries to reopen it says:

Code:
"The file cannot be opened because it isn't the correct format"
However, when a pupil saves their garageband file directly to the desktop, then drags the file into the mounted garageband volume, it saves correctly.

I've checked the ACLs from the Windows server and pupils security group have appropriate read/write NTFS permissions.

Any help would be great.

Thanks.
$hrap is offline   0 Reply With Quote
Old May 16, 2013, 12:31 PM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
For reference, the OP's prior thread on the subject was in the Mac Programming forum:
http://forums.macrumors.com/showthread.php?t=1579752

It ended with the problem unresolved
chown33 is offline   0 Reply With Quote
Old May 17, 2013, 02:35 PM   #3
rlkarren
macrumors newbie
 
Join Date: Jan 2013
Not meaning to be snide, but these things happen when trying to do things the "Windows" way on a Mac.

I would suggest putting the sharepoint on the Mac Server and share it out from there. This way you can mount the sharepoint on the Users Desktop as a network Drive and manage it from the Mac OS X Server, all via Workgroup Manager. Further adjustments from there will be much easier, IMHO.
rlkarren is offline   0 Reply With Quote
Old May 22, 2013, 02:18 AM   #4
$hrap
Thread Starter
macrumors newbie
 
Join Date: May 2013
Quote:
Originally Posted by rlkarren View Post
Not meaning to be snide, but these things happen when trying to do things the "Windows" way on a Mac.

I would suggest putting the sharepoint on the Mac Server and share it out from there. This way you can mount the sharepoint on the Users Desktop as a network Drive and manage it from the Mac OS X Server, all via Workgroup Manager. Further adjustments from there will be much easier, IMHO.
That's not a snide comment at all, rlkarren, it's a good piece of advice. In fact, I thought of using Sharepoints in the first place, but if I created a share point, would teachers still be able to access the folder from the windows "side" of things?
$hrap is offline   0 Reply With Quote
Old May 23, 2013, 12:09 AM   #5
rlkarren
macrumors newbie
 
Join Date: Jan 2013
Quote:
Originally Posted by $hrap View Post
<snip> would teachers still be able to access the folder from the windows "side" of things?
Yes, first you need to make sure the Teachers are recognized Users on the Mac System. I believe you can import AD users and groups, (I have done it once I just can't remember how I did it) Make sure the teachers group has appropriate permissions for the sharepoint, make sure SMB/CIFS sharing is on, (in addition to AFP), and then all they need is to "Map Network Drive".

How you map the network drive is up to you though. I think it's possible using a group policy on the AD server, but I haven't tried it that way. I know that it's scriptable though using a login script.

couple notes:

1. I have found however, that mapping a network drive hosted on a Mac must use the IP address rather then just the hostname. I have a fully functional DNS, registered WINS, etc., and my windows machine can never map a drive via \\servername\sharepoint. It has always been \\ipaddress\sharepoint. I think it has to do with the Apple implementation of SMB/CIFS but never took the time to investigate.

2. The other issue is that Apple's implementation of SMB in Lion Server and later had connection issues with the authentication encryption used by Windows Vista and beyond. I had to make a change in the local security policy in order for the Windows box to connect to a Mac Server with SMB/CIFS sharing. I don't know if this is still an issue.

Keep these two notes in mind when attempting to connect a windows machine to a Mac Server SMB/CIFS sharepoint. Make sure, if #2 above is still true, that you make the necessary changes in local security policy or you will never be able to connect. #1 will work as long as authentication succeeds.

rlk
rlkarren is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Symbolic links not working anymore? Intelligent OS X Mavericks (10.9) 0 May 1, 2014 12:12 PM
Symbolic Links woktov Mac Basics and Help 4 Jun 21, 2013 09:57 PM
Aliases vs. Symbolic Links Krauser MacBook Pro 5 Nov 15, 2012 12:58 PM
Symbolic Links for iPhoto Poob Bubes OS X 10.8 Mountain Lion 4 Oct 29, 2012 02:43 PM
Symbolic Links work differently? orbitalpunk OS X 10.8 Mountain Lion 4 Aug 1, 2012 07:51 PM

Forum Jump

All times are GMT -5. The time now is 02:55 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC