MaxOS X file access???



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 15/06/2008 at 23:38, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R9-R10.5 
    Platform:      Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Okay, explain this to me like I'ma five year old and how I can work around it. All data files are always written to the plugin folder - except on Windows Vista where this is not possible they are written to the "<OS>:\Users<username>\Kuroyume\... folder".

    Still, half of this message makes no sense to me. Where would I write 'network home directory' data? And the files being written to are MY files - preferences and whatnot. So, yes, I should have access to them. Whether or not the rights are given to User to let my plugin write into some folder or another is not my fault (see Windows Vista above). Sooooo....

    Here's the user's message:

    _We have massive problems getting Interposer to work when the User is not the Admin User due to the need of interPoser to write to files and directories it shouldnt have access to.

    We work with network home directories. Do you have a tutorial or such that explains how to set up InterPoser Pro to work with network home folders?

    C4D was a bit tricky to set up, but now works very nicely even not installed localy on every machine. We would like to use InterPoser too, but so far where unable to get it to run (as a user). The Programm allways want access to folders it shouldnt have acces to anyways.

    Running it as admin or root is NOT an option. Help would be greatly appreciated.

    If no tutorial is available, could you tell me all files and folders (in the InterPoser and C4D folders) InterPoser needs r/w access to in order to get interPoser to run? I then might be able to work around this behavior._

    Thanks,



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 16/06/2008 at 00:35, xxxxxxxx wrote:

    I should add, since I clipped some personal information out of the message, that this involves MacOS X. As far as I can tell, we're discussing MacOS X Server with respect to the 'network home directories'.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 16/06/2008 at 12:51, xxxxxxxx wrote:

    It appears that problems with non-Admin users is that folder permissions may not be sufficient. If there is an Admin account on the computer then this can be rectified. It not then I will need to add a means for the user to specify an alternate storage folder for iPP data.

    Not sure if this will suffice for these 'network home directories' though.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 16/06/2008 at 14:22, xxxxxxxx wrote:

    Is there any simple way to determine the current user or user folder for MacOSX? For Vista, I'm getting the system environment variable (UserProfile). Don't know if there is anything similar on MacOSX. Dan, my MacOSX man? :)



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 16/06/2008 at 19:20, xxxxxxxx wrote:

    This seems to work nicely - but finding it was like pulling teeth with chopsticks. ;)

    > #include "Folders.h" \> \> // METHODS: MacUserPrefs \> // Open Resource Fork \> //\*---------------------------------------------------------------------------\* \> String MacUserPrefs::GetUserPrefs() \> //\*---------------------------------------------------------------------------\* \> { \>      // ask MacOS to find the users preferences folder (/Users/{username}/Library/Preferences/ on US-english MacOS X) \>      // see http://developer.apple.com/samplecode/MoreFilesX/listing2.html \>      // and http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html#//apple_ref/c/func/FSFindFolder \>      // and http://developer.apple.com/samplecode/FileNotification/listing1.html \>      FSRef     fsRef; \>      char     path[1024]; \>      OSErr     tError =     noErr; \> \>      tError =               FSFindFolder(kOnAppropriateDisk, kPreferencesFolderType, kDontCreateFolder, &fsRef;); \>      tError =               FSRefMakePath(&fsRef;, (UInt8\* )path, 1024); \>      return     String(path); \> }


Log in to reply