Changing folder attributes

  • Hi,

    my app creates a folder on a MacServer-Volume (FileSharing), but can't
    change the attributes of that folder using
    setAttributes:ofItemAtPath:error: . It always receives the error: You
    do not have appropriate access privileges to save file.

    I have read and write previliges to the server volume

    Any help is welcome.

    Reinhard
  • On Apr 26, 2010, at 12:54 AM, Reinhard Segeler wrote:

    > my app creates a folder on a MacServer-Volume (FileSharing), but can't change the attributes of that folder using setAttributes:ofItemAtPath:error: . It always receives the error: You do not have appropriate access privileges to save file.

    If you try to do the same thing from a shell, using mkdir and chmod, does it work or do you get errors?

    > I have read and write previliges to the server volume

    Are you sure you have the right privileges for the specific parent directory you’re creating the folder in?
    Also, what type of server is this? AFP?

    —Jens
  • Am 26.04.2010 um 16:36 schrieb Jens Alfke:

    >
    > On Apr 26, 2010, at 12:54 AM, Reinhard Segeler wrote:
    >
    >> my app creates a folder on a MacServer-Volume (FileSharing), but
    >> can't change the attributes of that folder using
    >> setAttributes:ofItemAtPath:error: . It always receives the error:
    >> You do not have appropriate access privileges to save file.
    >
    > If you try to do the same thing from a shell, using mkdir and chmod,
    > does it work or do you get errors?

    No problem
    >
    >> I have read and write previliges to the server volume
    >
    > Are you sure you have the right privileges for the specific parent
    > directory you’re creating the folder in?

    I have to check that

    > Also, what type of server is this? AFP?

    AFP

    >
    > —Jens
  • On Apr 26, 2010, at 9:12 AM, Reinhard Segeler wrote:

    >>> my app creates a folder on a MacServer-Volume (FileSharing), but can't change the attributes of that folder using setAttributes:ofItemAtPath:error: . It always receives the error: You do not have appropriate access privileges to save file.
    >>
    >> If you try to do the same thing from a shell, using mkdir and chmod, does it work or do you get errors?
    >
    > No problem

    Hm. Could you show us the code you use to change the attributes?

    —Jens
previous month april 2010 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today