"You are not the owner of /var/run/screen/S-" error after deleting account and recreating

Operating System & Version
centos 6.10
cPanel & WHM Version
84.0.21

nitro535

Registered
Nov 6, 2019
2
0
1
houston
cPanel Access Level
Website Owner
As titled. I deleted an account then remade it with the same domain.
This account can now not access screen, I am given this error:
You are not the owner of /var/run/screen/S-
Any ideas?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,291
313
Houston
Hello,

You'd want to chown it to the user you're accessing with. So if the user is nitro535 you'd do the following:

Code:
chown nitro535. /var/run/screen/S-nitro535