Questions tagged [adduser]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
35 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 ...
0
votes
1answer
38 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.
0
votes
1answer
15 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 ...
2
votes
1answer
62 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?
0
votes
0answers
20 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} ...
0
votes
1answer
55 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 ...
1
vote
1answer
68 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 ...
0
votes
0answers
353 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 ...
1
vote
0answers
119 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/...
3
votes
1answer
469 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 ...
0
votes
0answers
22 views

newly created account in 18.04 fails to login

I created an new account and it can't seem to log in from the users screen. I can su into the account from terminal. Any ideas? I added the user from my root account using the settings menu. I've ...
1
vote
0answers
59 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? ...
3
votes
1answer
3k 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 ....
1
vote
1answer
394 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
674 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
106 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
503 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
50 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
1answer
152 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
1k 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
310 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
307 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
247 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 ...
9
votes
2answers
6k 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
1k 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
164 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 ...
3
votes
1answer
39 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
41 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
7k 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 ...
2
votes
4answers
10k 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
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 ...
0
votes
0answers
131 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
83 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
31 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
7k 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
65 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
77 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
544 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
309 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
688 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
4k 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
702 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
6k 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 ...
4
votes
2answers
3k 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
416 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
565 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
1k 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
346 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 ...
4
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 ...