How do I fix the error 'useradd: cannot open /etc/passwd'?

Linode Staff

I'm trying to create a sudo user, and am getting the following error:

useradd: cannot open /etc/passwd

How do I fix this?

1 Reply

Based on the error, it seems likely this issue is related to permissions on the /etc/passwd file. This article discusses that error and a possible resolution.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct