User Tag List

Results 1 to 10 of 10

Thread: Request: Simple File Permission Object

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Request: Simple File Permission Object

    I need a very simple object that has the ability to change file permissions at runtime. The only function I need in the object is to change the permissions of a file using the octal system. If anyone knows an extension or a method that can currently do this, that is fine also.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,515
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)

    Re: Request: Simple File Permission Object

    Aren't octal notation file system permissions generally for Unix-like systems? I thought Windows used file attributes (hidden, system, archive, read only).
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    Windows has file attributes, as well as a full permissions set (at least on NTFS).

    The 3 parts of an octal set are (IIRC) self, group and everyone.

    Windows has "self" and "everyone" permissions, but a file doesn't have a group on windows, making the middle permission nonsensical. You can set group permissions for a file, but as the file itself doesn't have a group, you have to specify which group to give the permissions to.

    The file attributes (read-only, hidden etc) are legacy, and aren't enforced. Anyone can overwrite a read-only file if the program they're using allows it, but if they don't have write PERMISSION on that file there's nothing they can do about it (assuming they aren't allowed to change their own permissions for the file).

    EDIT: On top of that, the "Administrator" user can't be blocked out of any file, as they have the ability to change permissions on all files.

  4. #4
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    I did forget to mention why I need it. I made a post about a month back on the same topic. I would use this extension in conjunction with the FTP object for transfering files to my iPhone. The iPhone only accepts files that have permissions of 0755, so while I have no trouble transfering the files, they don't work once they get there.

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    Ah, you need to change the permissions via FTP. Does the FTP object not do this?

  6. #6
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    I just checked it over again to make sure and I am almost positive it cannot change permissions.

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    As a workaround you could try connecting with moosock (or one of the other socket extensions), and sending ftp commands yourself to do the permissions:
    USER username
    PASS password
    CHMOD 755 file

    (you might need to use CWD folder/folder/folder before CHMOD)

  8. #8
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    I understand what your saying, but how would I go about setting it up?

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,410
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    Just establish the connection with the FTP object to the remote folder then send the Line CHMOD XXX filename on port 21 and the file name permissions should change. As you already have a connection you shouldn't need to re-establish one through moo sock, although you could code your own ftp client in moosock.

  10. #10
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Request: Simple File Permission Object

    I'm getting a crash just uploading the files now with the FTP object.

Similar Threads

  1. [Request] Simple 3D object
    By happygreenfrog in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 30th April 2013, 10:08 PM
  2. Server Permission Problem Saving INI File
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd November 2008, 09:52 PM
  3. [Request] Quick File Search Object
    By Nifflas in forum Extension Development
    Replies: 8
    Last Post: 4th July 2007, 08:58 PM
  4. [Request] A simple formatted text object
    By Mantis in forum Extension Development
    Replies: 3
    Last Post: 26th February 2007, 11:53 AM
  5. File Encryption object (3EE) for MMF2? (Request)
    By Mathias in forum Extension Development
    Replies: 3
    Last Post: 25th September 2006, 05:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •