Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [adduser]

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

0
votes
0answers
17 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? ...
1
vote
1answer
112 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 ....
0
votes
1answer
36 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 ...
0
votes
2answers
47 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 ...
0
votes
0answers
51 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 ...
-1
votes
1answer
159 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 ...
0
votes
0answers
37 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 ...
0
votes
0answers
20 views

How to setup a list of users using bash [duplicate]

I need to add many users on a Ubuntu machine. Is there a way to add a list of users using a text file? When using adduser it always asks for an individual password and extra information, else I would ...
0
votes
0answers
224 views

groupadd: cannot lock /etc/group while adding user

I've Ubuntu 64bit 18.04 version. While adding a user using the command - root@ubuntu:~# sudo adduser --home /root --uid 10000 --shell /bin/tcsh troot I see the error - Warning: The home dir /root ...
0
votes
1answer
74 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 ...
9
votes
1answer
769 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 ...
1
vote
2answers
91 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 ...
0
votes
1answer
88 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....
2
votes
0answers
168 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 ...
4
votes
2answers
951 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.
0
votes
1answer
502 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-...
4
votes
1answer
135 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 ...
0
votes
0answers
292 views

adduser command

I am running a Ubuntu 16.04.3 LTS. I already have a user with name Joan which has a home directory under /media/Joan/home/. I created a new user with name Doe using adduser command. There was only one ...
3
votes
1answer
31 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 ...
0
votes
0answers
39 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 ...
11
votes
4answers
2k 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 ...
0
votes
3answers
2k 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 ...
1
vote
1answer
1k 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 ...
0
votes
0answers
108 views

How to require new users to provide their email address when creating their accounts?

I want to create user accounts to new users on our shared computer, but I found the user profile doesn't have the email address field. Can I add the email address field and require new users to fill ...
-2
votes
1answer
74 views

have a problem with error 1 during install [closed]

I tried to create a new user using the CLI command adduser I did not follow the prompt instructions. The command exited with a error value of one. What should I do?
1
vote
0answers
28 views

How to create multiple user logins for each ubuntu system [duplicate]

I have 25 systems of ubuntu and I want to create 60 login id and password for students. And any students can use any system to use system using his/her credentials. How can I achieve this?
0
votes
1answer
3k views

Cannot add a user account with numerical username - useradd: group '11' does not exist

I'm an amateur Kubuntu user, and have much to learn. I am trying to create a user account which are named after numbers. I have sudo privileges and I tried it on the root account as well. Apparently,...
0
votes
1answer
58 views

Creating a user without its account being disabled [duplicate]

Is there a way to create a new standard user, who can log in immediately? When I create users through a shell script, the users do get created, but they are disabled. Is there are way to create them ...
1
vote
0answers
73 views

Kubuntu - newly created user delayed from showing

Using the GUI in Kubuntu, I am creating a new user (we will call it newuser1). I enter the username, and valid password, then hit apply. Nothing happens. I try creating a 2nd new user, thinking ...
0
votes
1answer
275 views

Add a dot to the REGEX

I have tried to add a dot to the current REGEX in the /etc/adduser.conf file on Ubuntu 16.10 but it doesn't seem to save as I cannot add a user that has a username of: mediasvr.adm Current REGEX is: ...
0
votes
0answers
86 views

vsftpd use users with /usr/sbin/nologin [duplicate]

My problem is that I need to setup some services uses some local users. I'm using vsftpd with vsftpd.userlist which contains allowed users. First problem is I need to block login to system. So I ...
0
votes
0answers
456 views

bash script adding users. setting the username to script argument

I'm trying to create a bash script that creates a new user. I pass the desired username as a argument, but it's not accepting the value. I'm trying to have: root@forgehe:~# bash newuser.sh ...
-1
votes
3answers
2k views

Create another root account with ubuntu

It is indicated that on the manual of adduser we can do : sudo useradd -ou 0 anotherroot Where anotherroot is the name of the new root account. The link of adduser manual : https://linux.die.net/...
1
vote
0answers
398 views

Conflicting Account Exists Locally

I have network user account and I was trying to add it to admin group, using a local admin account. I accidentally typed useradd instead of usermod, and when I restarted my computer it gives error of ...
2
votes
1answer
3k views

adduser to multiple groups

I'm trying to add a user into two groups when creating a new account. Now I use this command; adduser --gid 33 --home /home/wwwroot/domain.com --force-badname %USER% and then usermod -a -G group ...
3
votes
2answers
2k views

How to add an user called “admin”

I need to add an user called "admin". When I type: # adduser admin I get: adduser: The group 'admin' already exists. So, I guess, by default, adduser is trying to create an "admin" group that ...
3
votes
2answers
2k views

Sudo user not in sudo group?

When adding user like this : sudo adduser someuser --ingroup sudo Added user can use sudo but he is not in /etc/group sudo nor in /etc/sudoers So how does it work ?
0
votes
3answers
187 views

How to change the prompt of a user, so that it shows the current directory?

I created user 'user11' in Linux and changed its home directory using the -d option but when I login with this user, it shows '-bash-4.3$'. I want to know: What is the meaning of '-bash-4.3' and ...
0
votes
1answer
259 views

How to lock user to directory?

I created new user adduser david Now I have problem. When I login with this user via WinSCP FTP manager, default login directory is /home/david/. I need change for this user default direcory to /var/...
1
vote
1answer
676 views

Accidentally created another root user. How to delete or change permissions?

I need a non-root user to do certain (safe) things. I didn't pay attention, and used useradd -ou 0 -g 0 new_user_name, which gave root permissions to the user. It also has the same UID of 0. Before ...
0
votes
1answer
235 views

Adding users and giving special permissions

I have tried different things with chmod and adduser commands but it will take too much time for me to do this. Here is what I try to do: Lets say I will add 3 users to my system. Each user can read ...
3
votes
3answers
3k views

Not able to login into newly created user account

I created a new user account from System Settings > User Accounts. I can log in to new user account from the terminal but I can't log in to user account from GUI. When I try to log in to the newly ...
10
votes
1answer
12k views

How to create new user with Public key authentication?

I have Ubuntu Server 14.04 LTS. I have Public key authentication enabled by default. I used the following command to create new user: sudo useradd -m -c "John T." john -s /bin/bash The command ...
3
votes
1answer
1k views

How to restore/add previous user account

I've recently fixed a broken installation by reinstalling Ubuntu with a new username, and thankfully my old account survived (yay). Now I'd like to add my old account back to Ubuntu. Note that I'm not ...
0
votes
1answer
902 views

-ingroup vs --ingroup

Instead of: sudo adduser --ingroup hadoopgroup hadoopuser I did a: sudo adduser -ingroup hadoopgroup hadoopuser am OK to go? Or the single - will cause a problematic user.
0
votes
2answers
3k views

Automatically create folder in new users' home directory

I need to automatically assign every new user that gets created a certain folder Sales in their home directory. (e.g. when you add the user tim, tim automatically gets a folder named Sales in his home ...
1
vote
1answer
613 views

Set or determine the UID range for guest accounts

For a special purpose it seems like I need to know the UID (user ID) of my guest accounts. As guest accounts are created and (usually) removed automatically whenever one is needed, the UIDs are not ...
0
votes
1answer
1k views

How to create Guest User Account in Ubuntu without Password?

I have a desktop computer with kubuntu. How can I create a Password-less Guest Account. [Files and History must be deleted at logout]
4
votes
2answers
6k views

Can I add a user group to another group in Ubuntu?

I have file named abc.txt and 3 groups (Teacher, Staff and Student). I want to create a group name CanView, which allow Teachers and Students to view the file abc.txt. Can I add Teacher and Student to ...
3
votes
2answers
17k views

password does not work with useradd -p

I am running ubuntu 14.04 LTS. I ran the following command to create a user $sudo useradd -m -p password1 guest_user and then tried to switch to the user with $su guest_user But i could not login ...