Questions tagged [adduser]

adduser and addgroup are friendlier front ends to useradd, groupadd and usermod.

Filter by
Sorted by
Tagged with
0 votes
1 answer
79 views

adduser fails with error code 1 and then error code 6

I am trying to add a new admin user to a system. I tried via the GUI but it gave error code 1. I went to the terminal and tried: $ sudo adduser <username> sudo adduser: The user <username> ...
user avatar
  • 163
0 votes
1 answer
79 views

I want to 'undo' adding myself to docker group

I'm using Ubuntu 20.04. I installed Docker from Snap Store. Then i started running the commands as recommended on the page, because i wanted to be able to run it as a normal user.These are the command ...
user avatar
1 vote
1 answer
76 views

Is it possible to make a directory that a user cannot list, but would be able to access files in it?

Is it possible to make a directory that a user cannot list, but would be able to access files in it? Provide examples of when this might be necessary.
user avatar
0 votes
0 answers
80 views

Scripting user account creation and group assignment

I have to create a large number of users for a large number of Ubuntu VMs and wrote the following script as a result. This (working) bash script creates multiple sudo users from the USERS array and ...
user avatar
  • 1
0 votes
1 answer
74 views

What are the commands to see and edit the user's information? after to use adduser [duplicate]

I read these tutorials: How to create a user account on Ubuntu Linux How to Add and Delete Users on Ubuntu 18.04 When is used the adduser command appears in the process: Changing the user ...
user avatar
0 votes
1 answer
1k views

Creating a new top level Admin User for Ubuntu on WSL

Swapping standard Ubuntu for win-10 w/ "WSL Ubuntu" For 5 years I booted to Ubuntu Distros with a GUI desktop, however; this year, my professor has forced me to add Windows to my machine. In ...
user avatar
  • 151
0 votes
0 answers
191 views

should I add new user on the dockerfile?

I have a non root user with the id 1001 on my host. I want to use that user to run certain docker container. So on the dockerfile (distroless) I specified the USER 1001 as the user to run the ...
user avatar
0 votes
0 answers
64 views

Why doesn't the --quiet flag work when running the adduser command?

So after a few years of this annoying me, I figured it was time to crowd-source. Why doesn't the --quiet or -q flag work when running adduser commands on Ubuntu? According to the manual and all ...
user avatar
0 votes
1 answer
98 views

You can modify user data with chfn (e.g. phone, room) but how can you just display that organisational data?

Edit: @steeldriver provided the answer I believe. I think I found the reason why I did not get the output that I wanted in the first place. When I created the user I entered Full Name, Room Number, ...
user avatar
  • 13
0 votes
1 answer
1k views

How to switch from root to user in Ubuntu running in Termux?

I recently installed Ubuntu via Termux on my android phone. This version is specified when I enter the username and password. Welcome to Ubuntu 20.04.2 I once went from root to user mode by adduser ...
user avatar
1 vote
1 answer
1k views

useradd: cannot open /etc/passwd

I am facing create a new user on my ubuntu 20.04 from GUI as well as terminal. I am getting following error: sahadeb@HP-Elite-Book:~$ sudo adduser user1 Adding user `user1' ... Adding new group `user1'...
user avatar
1 vote
1 answer
182 views

Prevent adding users via gnome-control-center

We require users to be added using a special script and therefore adding users via GUI (i.e. gnome-control-center user-accounts) should be blocked to prevent someone accidentally not using the script. ...
user avatar
  • 370
0 votes
1 answer
35 views

/home/jdoe doesn't appear after creating user named "jdoe"

I'm running the last version of Ubunutu on VirtualBox. Just learning the usermod command. I got a problem : when i type sudo useradd -d /home/jdoe jdoe or sudo useradd -D /home/jdoe jdoe or even sudo ...
user avatar
  • 1
0 votes
2 answers
2k views

"Failed to get a list of devices: 'Forbidden'", when list new printers on Kubuntu20.04

I installed a fresh Kubuntu-20.04, and created the first user(jacky) by means of the installer of Kubuntu, then I created the second user(leon), by using cmd-line tool "adduser", and adding ...
user avatar
  • 107
0 votes
0 answers
92 views

Trouble creating system account and running a cron job under it

I have Ubuntu 20.04 LTS server installed on a raspberry pi 4 (no desktop) and I am trying to create a system account and have a script run under the system account when the system boots (the solution ...
user avatar
  • 3
1 vote
1 answer
341 views

User creation with limited access

How to create a user with access to selected applications installed in the system and read/write permission to only one directory in the file system? Say, for example, one wants to create a user dummy ...
user avatar
  • 965
0 votes
0 answers
151 views

Can't add user to sudo group

I'm on AWS and despite being looged in as root, I can't edit /etc/sudoers adduser houman usermod -aG sudo houman When I login as houman and try sudo ls: [sudo] password for houman: Any idea, why this ...
user avatar
  • 895
1 vote
0 answers
120 views

Ubuntu Server - Users vanish after reboot

I'm a noob when it comes to Linux. So bare with me here... I'm trying to make a new user. Running adduser goes without any problems. The user's home folder is there if I look under /home/ But after ...
user avatar
0 votes
1 answer
859 views

New User, use /etc/skel [closed]

I can't find precise information about the /etc/skel settings for the new user to add, to the settings I have in user "model". Could someone tell me what files to skel so I don't have to ...
user avatar
0 votes
0 answers
83 views

I want to make a user without password requirement

so I have ubuntu 18.4 loaded on my laptop and I have my own user on it I want to make another user without root privilege for normal use of my family which is accessible without any password. I tied ...
user avatar
1 vote
1 answer
378 views

How to create a new user with home directory in a different parition

i am trying to add a new user to my system (ubuntu 19.10) from console with a home directory in a separate partition but it seems i cannot do it properly: My default user is 'gep' and the designated ...
user avatar
  • 23
0 votes
1 answer
372 views

Ubuntu 20.04 (Gnome) create user without graphical interface

I'm trying to create user who is hidden. I would don`t see this user on GUI welcome screen. I need that user only to administrate some applications.
user avatar
0 votes
1 answer
175 views

How to update field of /etc/passwd?

I want to update some contact information in /etc/passwd. It's the 5th field, shown as "user info" in the following example username : x : uid : gid : user info : home directory : shell It looks ...
user avatar
  • 131
2 votes
1 answer
583 views

How user manager in ubuntu adds users from gui

Can anybody describe how user manager in gnome or any other DE adds users without commandline using GUI? How it binds adduser function and GTK together?
user avatar
0 votes
0 answers
237 views

adding user in shell script problem

I want to use a script to be able to quickly add a user to my ftp-server I thought this would work: #!/bin/sh RED='\033[0;31m' NC='\033[0m' # No Color echo -e "${RED}2020 Maraton Consulting${NC} ...
user avatar
0 votes
1 answer
213 views

Create new User with Completely different workspace from the others

I have just one user(For example User_One the name) and a root on my system and i want to create a second user (For example User_two the name) who I want him to have : *His own desktop with his own ...
user avatar
1 vote
1 answer
79 views

Trouble creating a default desktop for new users 18.4.03

How can I get default directories to show up automatically when I create a new user? I looked at messing with the /etc/xdg/user-dirs.defaults file by setting Desktop = (Folder with the dir in the) and ...
user avatar
  • 21
1 vote
0 answers
543 views

How to allow a remote user to connect over ssh on ubuntu 18.04

Before you yell me out, I already checked the answers on the web but couldn't install the system that I want correctly. Here is what I want: Allow a remote user to connect (to my pc) over ssh and ...
user avatar
  • 157
1 vote
0 answers
347 views

im trying to create a new user but it dosent work

After running sudo adduser charlie, I get: Adding user `charlie' ... Adding new group `charlie' (1002) ... Adding new user `charlie' (1001) with group `charlie' ... Creating home directory `/home/...
user avatar
3 votes
1 answer
1k views

useradd/usermod not accepting -c [duplicate]

When I run the following command : sudo usermod –c "Richard Tracy" dtracy I get the following error : Usage: usermod [options] LOGIN Options: -c, --comment COMMENT new value of the ...
user avatar
  • 167
1 vote
0 answers
65 views

Run adduser interactively with a script password problem [duplicate]

I am able to run the adduser command with a script automaticly, but I have no idea how I can get the script to automaticly enter the password hello without needing to type it. Do you have any ideas? ...
user avatar
3 votes
1 answer
7k views

.bashrc and .bash_profile not created with adduser but created with useradd [duplicate]

I am adding a user named 'test' in my Ubuntu 18.04 server. When I add the user using adduser, like this: sudo adduser --system --group test --shell /bin/bash all goes well, I can login fine, but ....
user avatar
  • 33
1 vote
1 answer
1k views

Script for creating users on new servers

So I am in this situation where we have started adding a bunch of new servers because we are getting new clients, therefore, we need new servers for each new client we get, and with that follows the ...
user avatar
  • 51
0 votes
2 answers
2k views

trying to add user to sudoers group gives me error

im adding one user to the sudoers file and when i enter the command sudo adduser <username> sudo, shows error <username> is not on the sudoers file. this incident will be reported. Any ...
user avatar
0 votes
0 answers
218 views

SOLVED: su with new user automatically fails without asking for a password

I'm on Ubuntu 16.04.5. I've created a user called test_user and when I try the command su test_user I get the output user@user:~$ su test_user su: Authentication failure user@user:~$ Without ...
user avatar
  • 9
-1 votes
1 answer
1k views

Automating user creation with information from text file

I have one txt in this format: dfs /home/dfs ashik karki so now i need a bash script for reading the each word from the text file and what i am going to do is i want to automate adduser and generate ...
user avatar
0 votes
0 answers
64 views

User Concept of Ubuntu

A question to user account of Ubuntu 16.04. I am newby to Ubuntu/Linux OS. I hosted a server and was logged in with ssh (putty client side) and the default root account with all permissions. I created ...
user avatar
0 votes
1 answer
372 views

User creation remote logging

I am trying to centralize logs from different server to one server. I can centralize logging information via adding auth.* @server_ip:port in /etc/rsyslog.conf from the clients, but now I don't ...
user avatar
  • 3
9 votes
1 answer
4k views

Why is the username still displayed even when it's been deleted using 'userdel' [duplicate]

I added a user with the adduser command and then deleted it withuserdel, but the username is still displayed in the home directory and in the switch account section. Why does this happen? How do I ...
user avatar
1 vote
2 answers
1k views

How much disk space is assigned to a new user in ubuntu?

If I create a new user test1 using the adduser/useradd command, how much space does Ubuntu assign to the test1 user? What happens when I have 10 users on my system? Do all of them use the same amount ...
user avatar
0 votes
1 answer
603 views

How to specify home directory with 'adduser' when user creation fails on a machine with NFS home directory and Kerberos authentication

I am using adduser --disabled-password to create a user that uses Kerberos authentication for letting them sign into their account. Therefore, the password is predefined by a central Kerberos database....
user avatar
  • 9
2 votes
0 answers
283 views

Dell XPS 13 Ubuntu Guest to Administrator [duplicate]

So, I got Dell XPS 13 Developer Edition, 2018. The laptop started fine, and then it entered the guest account. There is no way that I can create an administrator user account. I followed the steps ...
user avatar
  • 244
14 votes
2 answers
10k views

Difference between adduser and usermod -G -a

What is the difference between adduser user_name group_name and usermod -G -a user_name group_name At first glance they seems to do the same thing : add a user to a group.
user avatar
0 votes
1 answer
2k views

apt upgrade systemd fails, users and groups already exist

If I try to upgrade systemd via apt update && apt upgrade, the systemd portion indicates the users and groups already exist so it exits. edit: this is on 16.04 server Setting up systemd (229-...
user avatar
  • 396
4 votes
1 answer
262 views

Prevent new users from being added to a group with the same name as user name and instead add to generic group?

I need to add several new users to a system. Each of these users should be a member of the same group - appdev - and should not be assigned to a group that is the same as their user name. Can I do ...
user avatar
3 votes
1 answer
48 views

Where to report mistakes in a translated man page?

I just discovered a mistake in the German version of the man page for adduser: Einen System-Benutzer einrichten Wird adduser ohne die Option --system und mit einem nicht optionalen Argument ...
user avatar
0 votes
0 answers
44 views

Ssh users can acces almost any dirs/files

I'm new to this forum so forgive me if I asked this question in the wrong place, neither could I find a conclusive answer,, So, I have a dedicated Ubuntu 16.04.3 LTS, I have it for a while now, it ...
user avatar
11 votes
4 answers
14k views

programmatically clone /etc/skel for new users

/etc/skel is a folder that will be cloned for new users. Is there a possible way that we can define rules what to copy from /etc/skel folder? For example, I'm looking for a way that if a user is ...
user avatar
6 votes
4 answers
26k views

usermod says account doesn't exist but adduser says it does

I run the command usermod -a -G dialout amashreghi but I get amashreghi doesn't exists, however, when I try to add the user using adduser adduser amashreghi It says that amashreghi already ...
user avatar
1 vote
1 answer
2k views

How to change users home directory?

I want to create new user or change one of the current users home directory from /home/user2 to /media/user1/secondary. I already tried this solution here "How to change the default parent directory ...
user avatar