Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 21035  / 3 Years ago, mon, november 8, 2021, 3:54:50

I am experimenting with nginx+uswgi+Flask and am following this tutorial. However when I get to the portion for creating a new user for uswgi I am having troubles.



When I enter the command from the snippet the error I get is



$ sudo adduser -c 'uwsgi user,,,' -g nginx -d /nonexistent -s /bin/false uwsgi
Option g is ambiguous (gecos, gid, group)
Option d is ambiguous (debug, disabled-login, disabled-password)
Option s is ambiguous (shell, system)
...


I am by no means a ubuntu pro but after doing a little research I think the options I want are



$ sudo adduser -c 'uwsgi,,,' --group nginx --debug /nonexistent --system /bin/false uwsgi


however the error this returns is:



adduser: Only one or two names allowed.


here is my version information (if that helps)



$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise


So my question is what options should I be using to successfully create a uwsgi user such that I can complete the tutorial?


More From » 12.04

 Answers
2

You are using wrong command. Use useradd instead of adduser:



sudo useradd -c 'uwsgi user,,,' -g nginx -d /nonexistent -s /bin/false uwsgi

[#32639] Monday, November 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmiend

Total Points: 292
Total Questions: 101
Total Answers: 111

Location: Azerbaijan
Member since Tue, Aug 9, 2022
2 Years ago
rmiend questions
Tue, Jan 18, 22, 23:52, 2 Years ago
Sat, Sep 17, 22, 15:44, 2 Years ago
;