-2

On Ubuntu, there is a useful package called adduser.

But on Arch Linux, I searched it by pacman -Ss adduser, and got nothing.

I'm not sure is it in extra repository or user repository, or actually it's not in the arch linux ecosystem?

Is there another way to search it on Arch Linux except installing it directly from downloaded source code?

8

There is no adduser command in Arch Linux.

As the wiki makes clear, Arch uses useradd. And there is no need to install anything, as it is packaged as part of the [core] repository:

pacman -Fs useradd
  core/shadow 4.5-4

In general, it is a good idea to abandon your reliance on how Ubuntu does things when you move to Arch. Arch provides all of the tools that you require to competently administer your system, and a package manager that suports you identifying which packages provide these tools.

And a wiki that meticulously documents them.

See this question for the differences between the two: What does adduser do that useradd doesn't?

0

To install the adduser command, use:

pacman -S yaourt
yaourt -S adduser

Note that yaourt is deprecated. You may now add users using adduser.

A reasonably equivalent command is:

useradd -m -G groupname -s bash username

When you have some spare time, study the documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.