Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    280

    Default .htpasswds: Incorrect permissions

    We've had one user (so far) complain about the WysiwygPro editor not allowing him to login to edit the pages (FileManager->Click File->Click WysiwygPro editor->New window opens with login details->Copy login details).

    I then created a "Password Protected Directory/Web Protect" via cPanel, but was unable to login with the details I entered. I deleted the /home/USERNAME/.htpasswds folder and tried again (which forced cPanel to recreate that folder anew), but again without success.

    Looking into the issue showed the permissions of the folder thusly:
    drwxr-x--- 2 USERNAME USERNAME 4096 Mar 1 19:06 .htpasswds/
    when they should have been (according to other servers):
    drwxr-xr-x 2 USERNAME USERNAME 4096 Mar 1 19:06 .htpasswds/
    (i.e. "other" cannot read/execute that folder)

    Any idea why this (100% repeatable on that account) problem occurs and how to permanently fix it. We were running on RedHat Enterprise 3 i686 WHM 10.8.0 cPanel 10.8.1-E40 , but tried upgrading to WHM 10.8.0 cPanel 10.8.2-E3 but there was no difference. We're running phpSuExec/suExec as well.

  2. #2
    Member
    Join Date
    Jun 2004
    Posts
    10

    Default

    Here is some info on htaccess and passwds

    Hopefully that can help a little?

    http://www.vortexmind.net/index.php/...king-tutorial/

    Good luck
    sysadmin

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    280

    Default

    I know all that - it's not the issue.

    Basically, whenever CPANEL automatically created the /home/USERNAME/.htpasswds folder, it sets it with permissions of 750 instead of 755 which prevents logins.

    This folder is automatically created when:
    - The "HTML Editor" in the "File Manager" is started
    - A user selects the "Password Protect Directories/Folders" option on their cPanel control panel

    We've had this occur with a second server (and user) so it's definetly a bug in WHM 10.8.0 cPanel 10.8.2-E3 and some earlier versions.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Then you need to log it with cPanel.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Jun 2003
    Posts
    280

Similar Threads & Tags
Similar threads

  1. Disk Used Incorrect
    By sudonic in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-26-2009, 02:33 AM
  2. Mail Mode Permissions Incorrect
    By netricks in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-13-2006, 09:51 PM
  3. /scripts/securetmp restores with incorrect /tmp permissions
    By mr.wonderful in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-14-2004, 05:18 PM
  4. last login from incorrect!
    By cyberspirit in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-04-2003, 05:53 AM
  5. incorrect click
    By itf in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-09-2002, 05:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube