Author Topic: Unable to login into User Account  (Read 12796 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Unable to login into User Account
« on: August 24, 2019, 01:54:33 PM »
Server in production. Found recent files & dir changes and locked file system from user account. Now when I want to unlock, I was unable to login into user account. After clicking on login, it just refreshes page and lands on same login page with no error. Couldnt understand how to solve this issue. Getting permission denied error in ftp user login when trying to upload file, unable to mkdir using sudo from SSH.

Offline
*
Re: Unable to login into User Account
« Reply #1 on: August 29, 2019, 08:13:44 PM »
Facing the same issue, no solution so far. Have you solved this issue?
Any help will be appreciated.

Offline
*
Re: Unable to login into User Account
« Reply #2 on: August 29, 2019, 09:03:47 PM »
I've found what cwp is using for File system lock. Its chattr utility of linux.
I fixed it by
SSH into server using root
Ran this command

Code: [Select]
chattr -R -i /home/{USER}/
-R is for recursive, means it will apply changes to everything inside directory
-i is for removing the i flag which is actually what locks the file system (+i is for adding the flag)
{USER} is the username of the account you want to unlock.

For example if the username of an account is marcus, you will use something like this

Code: [Select]
chattr -R -i /home/marcus/
To read more about chattr, go to http://man7.org/linux/man-pages/man1/chattr.1.html

Once you unlock the file system using chattr, you will be able to login into User Account.
« Last Edit: August 29, 2019, 09:07:47 PM by kamii1000 »