Skip to main content

Questions tagged [useradd]

The `useradd` command is used to create new users on a system.

2 votes
1 answer
89 views

As far as I understand https://unix.stackexchange.com/a/84960/771338, useradd --no-log-init modifies the lastlog file to prevent a user from appearing in lastlog. I have two questions about this: Is ...
py-php's user avatar
  • 71
9 votes
1 answer
1k views

I want to enforce my password policy to both new users and existing ones, but when I run adduser on Ubuntu 24, it allows me to add a weak password. $ sudo adduser handsm [sudo] password for superuser: ...
machinist's user avatar
  • 335
0 votes
2 answers
71 views

I'm writing a daemon in C which needs to do some things as a separate user from root. I will call this user "testuser". My program is installed by its makefile. My question is thus, when ...
spinosarus123's user avatar
0 votes
2 answers
73 views

Using a Rocky Linux server, I created a user using the following command, sudo adduser foobar and user foobar is now a member of group foobar. We can confirm with the following. foobar$ id uid=1111(...
Sekots Reivan's user avatar
0 votes
0 answers
194 views

I need to restart a systemd service (running as root) every time a new user is created. I saw that some systems have a way to make an adduser hook but this isn't an option in RHEL8. What is the best (...
ridderhoff's user avatar
1 vote
0 answers
89 views

I burned the openSUSE Tumbleweed iso on USB and plugged it into a laptop to try it out. I ran the gui installer. When asked to choose a username I typed q in the username. However I was unable to ...
kix448526's user avatar
2 votes
1 answer
804 views

If I'm not mistaken, the --prefix option of useradd should allow me to change the etc files from the directory I select, but it strangely adds an extra /. I'm using Linux Mint 21.1 mate 64bit version ...
mrdaemon's user avatar
0 votes
0 answers
800 views

In Linux on my Virtual Box, How do I set default values for any future new user? Also, how do I create an empty file named TESTFILE and have it copied to each new users home directory. I believe I did ...
MindHackzQueen's user avatar

15 30 50 per page
1
2 3 4 5
16