Questions tagged [useradd]

The tag has no usage guidance.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
1 answer
6k views

User is not in passwd and shadow file but when getent passwd user it shows

User is not in /etc/passwd and /etc/shadow file but when I "getent passwd userSec" it shows the account details. [root@myServer systemadmin]# getent passwd userSec userSec:...
carlregencia's user avatar
2 votes
1 answer
909 views

useradd ignores defaults in /etc/default/useradd

FTP Migration. Moving the FTP server from Windows to Ubuntu, and rebuilding the storage for FTP on a different server. I'm doing a one time pass to create about 100 users, all with the same password,...
Crimius's user avatar
  • 121
2 votes
0 answers
162 views

How to create multiple users during installation?

Now these days I am working on a Ubuntu customization project. In which I want to add this feature that Customizes OS can be able to create 2 users automatically during the installation. User can be ...
Umesh Kushwaha's user avatar
1 vote
0 answers
240 views

useradd Problem with /etc/default/useradd ubuntu 22.04

Hi i have problem with useradd conf file /etc/default/useradd. I change some vaule at the end of file for example: GROUP=100 HOME=/users INACTIVE=40 EXPIRE=4 SKEL=/etc/skel CREATE_MAIL_SPOOL=yes none ...
Dany's user avatar
  • 79
1 vote
0 answers
69 views

How does Ubuntu change the fonts and icon theme for every user?

I know how I can manually change the theme and appearance settings using dconf & the user shell themes extension for a single user, how to theme GDM using dconf & /usr/share/gnome-shell/gnome-...
schuelermine's user avatar
1 vote
0 answers
2k views

How to change the default home directory?

On a server, I have mounted a big drive on /home2 in order to store all the user accounts. Supposedly in order to set the default directory to /home2, we are supposed to edit /etc/default/useradd ...
Dov's user avatar
  • 811
1 vote
2 answers
747 views

Diff between 2 ways changing useradd defaults

I'm trying to change the useradd default shell, so when the next new user created its shell would be /usr/sbin/tcsh. One way doing that is by running the following command : useradd -D -s /usr/...
NI6's user avatar
  • 111
1 vote
1 answer
2k views

User add and shell script with password

I know how to use the useradd comand but would like to make a shell script to automate the process so how would I put the users input to the password part which is a dialog presented after I have ...
Jhondoe's user avatar
  • 239
1 vote
0 answers
2k views

create multiple users from csv file and communicate them the password

I have to create multiple users in an Ubuntu environment from a csv file that lists their names and password. I am using the following tutorial Import users from CSV file But I am not been able to ...
user2065276's user avatar
1 vote
1 answer
716 views

Running useradd with shell_exec

After trying to give permissions to /etc/passwd, the useradd command wont execute from php's shell_exec(); I also tried to visudo and change passwd's owner, the error is still useradd: Permission ...
BusyLM's user avatar
  • 31
0 votes
1 answer
217 views

Ubuntu22.04: useradd don't work as expected

I setup a factory new ubuntu 22.04. I run useradd test1, there is no home directory created. I run useradd -m test2, there is home directory with ~/.bashrc and some other environment files. But the ...
Bryan Chen's user avatar
0 votes
1 answer
209 views

Set UID range for specific GUID

I created some groups and I want to create some users to specific guid. It will something like this: group1 with uid from 1000 to 1500 group2 with uid from 2000 to 2500 group3 with uid from 3000 to ...
Mario_7626's user avatar
0 votes
0 answers
166 views

Useradd Default Groups in 22.04

I'm working on building some new servers with 22.04. I use Ansible to create users, and noticed that when creating a new user, for example "test", the user's default group is now the "...
spikeypanda48's user avatar
0 votes
0 answers
66 views

Ubuntu 20.04 name user add problem Bug #1927078

A problem occurred while upgrading the version of the Ubuntu system from 18.04 to 20.04. 18.04 user name For example, the user who was using 9128323 cannot log in in 20.04. (GUI only) 9128323 is a ...
Hyeok Ji's user avatar
0 votes
0 answers
339 views

provision additional user accounts during autoinstall?

Is it possible to provision multiple user accounts (eg. security scanning accounts) during autoinstall? The primary account gets created with user-data: identity: hostname: useful password: hash ...
Lee Butler's user avatar
0 votes
0 answers
30 views

New user has 2 issues: 1st it runs the 'new user config' every time and can't move icons on/off favorites

I created a new user through Settings->User (Ubuntu 22.04.1 LTS) on some (I have 6) new devices it seemed to work fine, on others it actually has 3 problems: 1st it runs the 'new user config' every ...
Kevin Stringer's user avatar
0 votes
0 answers
224 views

Failed to install opendkim in webmin (Ubuntu): "useradd: cannot lock /etc/passwd; try again later."

I tried to install opendkim on the Ubuntu server using the Webmin command line, with the following command: sudo apt-get -y install opendkim opendkim-tools But I encounter a number of errors: Setting ...
איש נחמד's user avatar
0 votes
0 answers
78 views

how to create a user in linux that user can only use a text editor

How to create a user in Linux that user can only use a text editor. And if that user exit from the text editor the system automatically shut down
Mohamed Ali's user avatar
0 votes
0 answers
343 views

can't login via 'root and ssh keys' after adding non-root user

Ubuntu 20.04 server (on a Digital Ocean droplet) here. I had set up root login with SSH keys, and login password disabled. Everything worked fine. The other day I decided to add a non-root user (...
thanks_in_advance's user avatar
0 votes
0 answers
4k views

How to create user without a password in Ubuntu

I am using Ubuntu 19.10.I want add a system user with a home directory, and the user won't have any login access or password. I want to accomplish this by running useradd without sudo command. I gave ...
alper's user avatar
  • 222
0 votes
1 answer
368 views

the system doesn't read .bashrc and .profile of a user in Ubuntu14.04

Recently I added a new user to linux 14.04, user2, but the home directory of user2 is NOT in /home/user2, I've put it in different place, lets call it home2. useradd -d home2 user2 I already had an ...
mounaf's user avatar
  • 1
0 votes
0 answers
363 views

Unable to login to default account after creating new account in ubuntu 16.04

I was trying to install cassandra in my local machine following this article I created new group and user using the following commands as suggested in the article. root@ubuntu:~# groupadd cassandra ...
user593401's user avatar
0 votes
1 answer
540 views

How many users can I create with useradd without having a visible performace degradation

Assuming that I have a PC with 2GHz processor, 4GB RAM. How many users can I create with useradd without noticing a visible change in performance in server file operations like (copying files form ...
Gabriel Petrovay's user avatar