Skip to main content

permissions issues

Comments

13 comments

  • Spork Schivago
    I'm currently SSHd into my server but whenever I try to login as sporkschivago or my other user, I also get an error message saying the server refused my key and I see in the /var/log/secure log: Received disconnect from my_ip_address: 14: No supported authentication methods available
    0
  • syslint
    what is the result of the following commands ? # ls -ald / # ls -ald /home # ls -ald /home/sporkschivago
    0
  • cPanelMichael
    Hello :) Yes, please review the permission and ownership values on the three directories referenced in the last response and let us know the results. Thank you.
    0
  • Spork Schivago
    Something's really wrong here. I enabled password authentication so I could at least get in. This is the error message I get after I type my password:
    Last login: Thu Feb 18 06:14:26 2016 from 74.65.109.246 Could not chdir to home directory /home/sporkschivago: Permission denied Attempting to create directory /home/sporkschivago/perl5 Unable to create /home/sporkschivago: Permission denied at /usr/local/share/perl 5/local/lib.pm line 686. BEGIN failed--compilation aborted. Attempting to create directory /home/sporkschivago/perl5 Unable to create /home/sporkschivago: Permission denied at /usr/local/share/perl 5/local/lib.pm line 686. BEGIN failed--compilation aborted. -bash: /home/sporkschivago/.bash_profile: Permission denied
    Here's the directory listings that you asked for.
    root@franklin:[/]# ls -ald / dr-xr-xr-x 27 root root 4096 Feb 18 10:26 // root@franklin:[/]# ls -ald /home drwx--x--- 11 root root 4096 Jan 21 14:30 /home/ root@franklin:[/]# ls -ald /home/sporkschivago drwxr-xr-x 26 sporkschivago sporkschivago 4096 Feb 17 22:15 /home/sporkschivago/
    0
  • Spork Schivago
    I'm going to try rebooting the server and see if it fixes anything. EDIT: The reboot didn't help at all. Any suggestions?
    0
  • Spork Schivago
    A little update. I just created a new shell user using adduser. I get the same permission denied error message. Would this mean there's something wrong with the actual /home directory? I didn't do anything with that folder...this is very worrisome.
    0
  • cPanelMichael
    A little update. I just created a new shell user using adduser. I get the same permission denied error message. Would this mean there's something wrong with the actual /home directory? I didn't do anything with that folder...this is very worrisome.

    Ensure permissions on the /home/$username directory are set to 0711. Is this a VPS, and if so, which specific VPS software environment? Thank you.
    0
  • Spork Schivago
    Ensure permissions on the /home/$username directory are set to 0711. Is this a VPS, and if so, which specific VPS software environment? Thank you.

    Thank you for your suggestion cPanelMichael, however, setting permissions to 0711 on /home/ didn't fix the problem. This problem is also occurring with new users as well as the old users on my system as well. This makes me think it might be something with the /home directory but I honestly don't see what could have happened to of changed the permissions on the /home directory. Last night, I did run the umask command, but with no parameters. It returned (I want to say) 0022. Now, when I run it, it returns 0002. Maybe it returned 0002 last night and I just didn't notice. This is a VPS. It's CentOS 6.7 (final) running on Virtuozzo. I don't know of anyway of telling what version of Virtuozzo though. uname shows kernel version 2.6.32-042stab092.2. When I do a df -h, I see /dev/vzfs. This is why I believe it's Virtuozzo and not OpenVZ. There's also a /proc/user_beancounters. I think this rules out Xen. So I believe it's Virtuozzo.
    0
  • cPanelMichael
    This is a VPS. It's CentOS 6.7 (final) running on Virtuozzo. I don't know of anyway of telling what version of Virtuozzo though. uname shows kernel version 2.6.32-042stab092.2. When I do a df -h, I see /dev/vzfs. This is why I believe it's Virtuozzo and not OpenVZ. There's also a /proc/user_beancounters. I think this rules out Xen. So I believe it's Virtuozzo.

    The error message you pasted suggests the VPS that has met the "quotaugidlimit" threshold, or at some other VPS parameter limit imposed from the VPS node. Please report this issue to your VPS hosting provider to see if they can verify if any resource limits have been reached. Thank you.
    0
  • Spork Schivago
    I fixed the login issue! I didn't realize that things were a bit different for CentOS. I still don't know how the permissions got messed up on the home folder. I didn't mess with that. All I did was a chmod o-r * in the /home/sporkschivago directory. So, if I want someone to be able to view /home/sporkschivago/public_html, the public_html needs to have o+x set, /home/sporkschivago needs to have o+x set and / needs to have o+x set. When I ran chmod 0711 on /home, this fixed the issue!!!
    0
  • Spork Schivago
    The error message you pasted suggests the VPS that has met the "quotaugidlimit" threshold, or at some other VPS parameter limit imposed from the VPS node. Please report this issue to your VPS hosting provider to see if they can verify if any resource limits have been reached. Thank you.

    I don't have a quota. Well, I have a 40GB hard drive. I guess we could look at that as a quota, kinda. But I have unlimited bandwidth and no quota unless I configure a quota myself for my users.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • syslint
    Please set 755 permission on / and test it. You don't have write permission on /
    0

Please sign in to leave a comment.