You are not logged in.
Pages: 1
I am still new to Arch, and I am trying to run a server on Arch. I am trying to create my serv user. What is the command for this?
This worked on Ubuntu Server(Debian), but not on Arch.
Arch:
[jesse@Chronos]# su
Password:
[root@Chronos]# adduser --disabled-login serv
bash: adduser: command not found
Last edited by krono-matrixer (2015-05-30 19:39:08)
Pen-tester Hacker and Engineer Using Arch Linux and Windows
Who needs BlackArch or Kali Linux anyway, when you can build your own from Arch Linux? ![]()
Offline
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
One problem, I cannot find an option to disable the log in for a user. The "--disabled-login" does not work.
Pen-tester Hacker and Engineer Using Arch Linux and Windows
Who needs BlackArch or Kali Linux anyway, when you can build your own from Arch Linux? ![]()
Offline
One way to do this, and I don't know if this is the preferred way, is to set the shell to nologin. So the useradd command would look like:
useradd -s /usr/bin/nologin usernameCheckout the manpage for nologin for more details.
Last edited by nullified (2015-03-13 14:41:01)
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
I'm not particularly familiar with perl, but from examining the source it looks like --disabled-login affects password rather than shell.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
That did the trick. Thanks.
Pen-tester Hacker and Engineer Using Arch Linux and Windows
Who needs BlackArch or Kali Linux anyway, when you can build your own from Arch Linux? ![]()
Offline
Don't forget to mark this thread as [SOLVED]. Directions on how to are in the How to post section of the Forum Etiquette.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Pages: 1