Find the answer to your Linux question:
Results 1 to 5 of 5
first time poster here, so hi to you all. My linux knowledge isn't as good as i'd like & i've encountered a new issue that has left me baffled. I ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Location
    uxbridge, UK
    Posts
    0

    Thumbs up Linux permissions change on upload

    first time poster here, so hi to you all.

    My linux knowledge isn't as good as i'd like & i've encountered a new issue that has left me baffled.

    I have a mac user here using Cyberduck to upload / download artwork. He pulls & saves the files on a network share on a windows 2008 server, which he has full access to folders / files.

    The issue is that when he uploads using cyberduck, the permissions on the file change to 700 causing external suppliers not to be able to download the file externally ?

    He is admin locally on the mac, is using an ftp account that has full privilages and has full access to the windows network share.

    I'm not 100% sure that its linux causing the permissions to change, but as a long shot i thought one of may have encountered similar issues to what he is having.

    Cheers
    Last edited by mesockmeshoe; 03-23-2011 at 02:34 PM. Reason: wanted to

  2. #2
    Linux Newbie Nagarjuna's Avatar
    Join Date
    Feb 2011
    Posts
    122
    Hello, and welcome to Linux Forums!

    I'm a little bit confused as to which machine is what in this situation. While reading your post, to me it appears that he is running a Mac and trying to upload from it to a Windows 2008 server. However, you don't really mention the system running Linux. Is he trying to upload to a Linux server of some sorts? The '700' is often used to represent permissions on a *NIX system.

    If your uploading to a Linux FTP server, you may want to check the servers umask. To somewhat over simplify it, the umask is what decides the default permissions of newly created files by a process.

    Anyways, that's just an idea. I may be able to help you out more however if you can specify where the Linux machine is in this situation

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Location
    uxbridge, UK
    Posts
    0
    Thanks for getting back to Nagarjuna.

    Just to clarify, he uses a mac book pro to ammend image files which are located on a network share housed on a windows 2008 server.

    He then uploads from the network share to our Linux FTP server so that external companies can get to them.

    The issue happens when he uploads the files using cyberduck on the mac to the linux server, the permissions always revert back to 700.

    After looking into it yesterday, i uploaded a file to the linux box directly from his mac desktop which for whatever reason kept the correct permissions in place. I'm now thinking that it might be to do with the network share, although he is the owner of this specific network share, so surely those rights should be carried across when uploading ?
    I will look into the servers umask to see what's occuring.

    Cheers

  4. #4
    Linux Newbie Nagarjuna's Avatar
    Join Date
    Feb 2011
    Posts
    122
    Ahh, okay. Thanks for clarifying.

    Is this client the only one that does this? If not, it could be the umask on the FTP server is set to 077. This might mean that when the FTP server writes the uploaded data to it's hard disk, it will write it by default with 700 permissions, regardless of what the permissions were on the server.

    Here is a umask table for you:

    Code:
    Umask 	Created Files 		Created Directories
    000 	666 (rw-rw-rw-) 	777 	(rwxrwxrwx)
    002 	664 (rw-rw-r--) 	775 	(rwxrwxr-x)
    022 	644 (rw-r--r--) 	755 	(rwxr-xr-x)
    027 	640 (rw-r-----) 	750 	(rwxr-x---)
    077 	600 (rw-------) 	700 	(rwx------)
    277 	400 (r--------) 	500 	(r-x------)
    As for changing the umask for your FTP server, I believe it depends on the server software your using. It could also be the umask set for the user that he uses to access the server. Do you know what it is by any chance?

    This is just a guess. I hope it helps.

  5. #5
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,287
    If Cyberduck is an FTP or SCP client, it might be setting 0700 permissions on upload, it may be worth checking the settings in there
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

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