You are not logged in.

#1 2015-03-08 17:55:21

krono-matrixer
Member
From: Waco, Texas
Registered: 2015-03-08
Posts: 22
Website

[solved] adduser --disabled-login

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)


cool 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? roll

Offline

#2 2015-03-08 17:56:47

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [solved] adduser --disabled-login


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#3 2015-03-13 14:06:59

krono-matrixer
Member
From: Waco, Texas
Registered: 2015-03-08
Posts: 22
Website

Re: [solved] adduser --disabled-login

One problem, I cannot find an option to disable the log in for a user. The "--disabled-login" does not work.


cool 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? roll

Offline

#4 2015-03-13 14:40:34

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [solved] adduser --disabled-login

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 username

Checkout 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

#5 2015-03-13 14:59:25

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [solved] adduser --disabled-login

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

#6 2015-03-15 12:46:49

krono-matrixer
Member
From: Waco, Texas
Registered: 2015-03-08
Posts: 22
Website

Re: [solved] adduser --disabled-login

That did the trick. Thanks.


cool 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? roll

Offline

#7 2015-03-15 13:38:43

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [solved] adduser --disabled-login

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

Board footer

Powered by FluxBB