Re: Creating new users with an old name: deferral: Unable_to_switch_to_/home/phr:_access_denied._(#4.3.0)/

Ed <[email protected]> Thu, 14 Mar 2019 20:30:10 +0000
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
On Thu, Mar 14, 2019 at 06:41:26pm +1100, Philip Rhoades wrote:
> People,
> 
> I had to do a lot of housecleaning on my server and now when trying to
> create a new user with a name that has existed previously and then mailing
> that user locally I get this:
> 
> @400000005c8a03630d6c68b4 delivery 13: deferral:
> Unable_to_switch_to_/home/phr:_access_denied._(#4.3.0)/
> @400000005c8a03630d6c7084 status: local 0/10 remote 0/20
> 
> I have made sure there are no issues with these files by cleaning out old
> stuff before creating the new user:

Do you have any double entries in passwd/shadow? Are the two in sync?

  # grep phr /etc/*

and

  # ls -al /home/phr /home/phr/Maildir

Are the perms correct here?

Does the account work? What happens if you 'sudo su - phr'?

-- 
Best regards,
Ed http://www.s5h.net/