The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP Permission

Discussion in 'General Discussion' started by kitivaruni, Apr 29, 2011.

  1. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Why every time use ftp program to upload file to my server, files permission is 600, is not like on pc? i have to change permission 1 by 1, what wrong? is any configuration is not set? configuration from linux server or cpanel/whm?

    Thank you~~
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might check your FTP client settings. What FTP client do you use?
     
  3. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    #3 kitivaruni, Apr 29, 2011
    Last edited: Apr 29, 2011
  4. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Can you please login using the FTP client and check who the owner of these files is set to? You should see it, or can right click one of these files and choose properties. (depending on your FTP client I guess)
     
  6. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I have try to upload a same file to 3 difference cpanel server. only my cpanel server is 0600, other 2 server is 0644, im sure the problem is from my configuration, but i dont know where.. how to solve?

    My cPanel Server
    http://img94.imageshack.us/img94/9903/screenshot20110429at936.png

    Other cPanel Server
    http://img151.imageshack.us/img151/9903/screenshot20110429at936.png

    http://img833.imageshack.us/img833/9903/screenshot20110429at936.png

     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Who owns the file once you upload it to the server that is having the issue?
     
  8. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I own the file, user permission is full write. I uploaded to 3 cPanel Server are using 3 difference user name.

     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Just to be sure we've tested everything, when you upload a file using that accounts cPanel File Manager, does it also upload the file, 600?
     
  10. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Used cPanel File Manager upload is 644, but why I use FTP client is 600?

     
  11. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Is the problem from cPanel or Server configuration? Security Setting? like Firewall something...?

     
  12. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have root access to this server?
     
  13. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Yes, I have.

     
  14. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    But you are not logging into that account with dreamweaver or FTP client using the cpanel username and root password, correct?
     
  15. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I not use root account to upload, I use basic user account created by cPanel.

     
  16. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I can't think of any settings off hand that would change file permissions on upload when using dreamweaver or FTP client.

    You might try forcing an cPanel upgrade, you might also want to have your server provider or cPanel take a closer look.

    Do post back what you find out, thanks.
     
  17. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I already forcing cPanel upgrade. But is the same...

     
  18. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you have root SSH access as was previously indicated, then you would want to search for umask values on the machine in these files:

    /etc/skel/.bashrc
    /root/.bashrc
    /home/username/.bashrc

    /etc/skel/.bash_profile
    /root/.bash_profile
    /home/username/.bash_profile

    /etc/profile
    /etc/bashrc

    /etc/csh.cshrc
    /root/.cshrc

    Check to see if any show umask 077 in them. Please replace username with the cPanel username for the account in question that is setting the 0600 value.

    Please note that 077 will create files with 0600 permission and folders with 0700 permissions. This value is either going to be set in the profile for the machine or user, or the .bashrc for the machine or user. The normal umask value is 022 rather than 077, so someone has to have revised the default setting, most likely for security reasons.
     
  19. kitivaruni

    kitivaruni Member

    Joined:
    Sep 23, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    How do I check unmask?

     
  20. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You'd log into root SSH and check the files. Also, it is umask rather than unmask, so you'd have to be careful when grepping for it to put the right name (the spelling for the word does matter here):

    Code:
    grep 'umask 077' /etc/skel/.bashrc
    This is one example of checking for any set umask values in one of the files that I've mentioned.
     
Loading...

Share This Page