Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts

    windows vs unix file permissions

    My apple MAC laptop finally died on me when i chucked coffee all over it. I have been using apple for 5 years to develop our websites and maintain our unix based servers. I decided i would get a windows 8 PC. The thing i cant get my head around is how file permissions work on PCs. If i have a web folder on the windows PC and i upload it via sftp with filezilla FTP client what will the permissions be. Ideally i want any file uploaded to be 644 and any folder 755. If i require anything else i can set it manually with PUTTY etc.

    The SFTP client i used on my apple mac (transmit) had a default setting. You could set it to automatically set the file permissions of a file or folder to the default each time a file is uploaded. In other words when i uploaded a file via Transmit it would upload then automatically set the file permissions to 644.

    I have looked through the settings in Filezilla and don't see any default permissions for files or folders. Since permissions in windows work differently than unix systems i wondered if Filezilla already does set any file uploaded from a windows system to 644 and hopefully folders to 755. If not how can i be sure the permissions on the files / folders.

    Ultimately i don't want to have to check / set permissions for each file individually because this would take hours. This problem could present me with a major security risk.

    Hope you can help
    You can not say you know how to do something, until you can teach it to someone else.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,778
    Thanks
    6
    Thanked 1,021 Times in 994 Posts
    I don’t remember how it was because I haven’t used Filezilla in years but generally the file permissions used depend on the server, not the client. I. e. if your site is on a Unix based server (which is the majority) then file permissions are set just like that, even if you are using Filezilla on a Windows machine (it’s not your machine but the server where the permissions are set). As to the default permissions, a quick search came up with this, although I would assume it is 644 and 755 anyway.
    Last edited by VIPStephan; 12-16-2013 at 02:33 PM.

  • Users who have thanked VIPStephan for this post:

    timgolding (12-16-2013)

  • #3
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    If thats the case then the problem was my old ftp client copying the chmod permissions directly from the file it was uploading.
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Tags for this Thread

    Posting Permissions

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