1

I want to create system user without password and home directory. I found some similar solution but not properly get my answer. I am using a centos machine.

in ubuntu: adduser mprobe --disabled-password --system --no-create-home --group

its working but in centos it says disable-password not found.

thanks in advance.

1 Answer 1

1

AFAIK adduser isn't a coreutils command, it's just a convenience script, so it may vary drastically from distro to distro. A quick Google search yields, that password could be disabled for an existing user with passwd -d <username>. So my recommendation would be to:

sudo -s # Enter a root shell 

then:

adduser mprobe --system --no-create-home --group # Create the user in question passwd -d mprobe # Delete its password exit # Drop root privileges 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.