Questions tagged [useradd]
44 questions
1
vote
1 answer
Default Group for new Users
Is there a possibility to define a default group for new Users? I mean I define the group testgroup as the default usergroup and when I add User1 and User2, both new Users would be in the group testgroup without defining this group on the useradd…

1stthomas
- 119
- 1
- 8
1
vote
0 answers
Lock Home Folder down for specific users (CENT OS)
I am running multiple users on my VPS with CentOS 7 64 bit. And, I want to be able to lock down their home directory. I want them to be able to access all sub folders in that home directory but not be able to go up[ via SSH or SFTP.
thanks for your…

DuncanA
- 11
- 2
1
vote
1 answer
How can I allow users to reset their Linux user passwords from a web interface?
I am running SAS Visual Analytics on a cluster for my department. I want the users to be able to set and reset their own password for their user account. Users and Passwords for the application are based on the local users and passwords on the…

KinsDotNet
- 197
- 7
1
vote
1 answer
Ubuntu 12.04: Unable to add or delete a user named 'mysql'
I am trying to install MySql on Ubuntu 12.04 but the installation is failing with the error: "Can't change to run as user 'mysql'. Check if the user 'mysql' exits."
So I go ahead type in the command :
'cat /etc/passwd | grep mysql'
and result is…

Afaque H
- 41
- 6
1
vote
2 answers
server unexpectedly closed network connection Putty after useradd
After adding user
[root@ctxsv-gl4j ~]# useradd -m mtteam
[root@ctxsv-gl4j ~]# passwd mtteam
Changing password for user mtteam.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@ctxsv-gl4j ~]#
putty:…

ben
- 11
- 1
- 2
1
vote
2 answers
formatting username
While adding a user what the best practice for username?
firstname.lastname
first character of firstname.lastname
firstname
lastname
firstnamelastname
I prefer "shantanu" from the following list. The sys admin says "shantanu.sharma" is the…

shantanuo
- 3,579
- 8
- 49
- 66
1
vote
1 answer
Pass password to adduser command
Just wondering if it's possible to pass the password I want to use to the adduser command in ubuntu, so that it can be automated.
I want to do something like this
echo "password" | adduser test
This would eliminate the need to fill out the form…

Flashuni
- 31
- 1
- 3
1
vote
2 answers
automatically create subdomain, virtualhost and etc when add user
there is the way, how to automatically create the subdomain, virtualhost for apache, sharing configuration (samba), etc when I add a new user?
I want it's work like the web hosting service, when we registered, domain create automatically??
how to do…

Muhammad Resna Rizki Pratama
- 123
- 1
- 8
1
vote
2 answers
debian: creating user with password with one command
I need to create a user with password in a shell script, but passwd wants me to enter the password twice. Is there a way to create a user with password in one command?

Billy
- 15
- 1
- 4
1
vote
2 answers
Can I automatically create a passworded user with pw adduser on freebsd?
Can I automatically create a passworded user with pw adduser on freebsd?
pw useradd [name] [switches]
-V etcdir alternate /etc location
-C config configuration file
-q quiet operation
Adding users:
…

olive
- 145
- 2
- 8
1
vote
3 answers
Samba users not added untill they logon first? Edit: How do I add users to tdbsam without a password prompt?
I add users to my server with the command useradd -m -p PASS_HASH -s /usr/sbin/nologin USERNAME
Then I try to access their samba home share, but it never shows up until I login with the user:
root:~$sudo login failtest
Password:######
Added user…

glisignoli
- 123
- 1
- 2
- 15
0
votes
1 answer
su Authentication failure
OS Ubuntu 18.04
I am trying to add a user, with password, home directory, create a group with the same name, using a bash script.
I tried:
sudo useradd -U -m -p $(openssl passwd -1 'some_password') test
The user was created, here's the entry from…

EastsideDev
- 333
- 3
- 13
0
votes
1 answer
useradd from jenkins user error: useradd: cannot lock /etc/passwd; try again later
I run a shell script (Centos 6.7) from jenkins containing this command, in order import root environment:
env -i `cat /home/admin/root_environment.sh` /home/admin/create_user.sh
The root_environment was generated with
env >…

Glasnhost
- 591
- 4
- 10
- 20
0
votes
1 answer
Messed up homedir permissions from useradd command
For some reason adding new user with "useradd" create the homedir but with really messed permissions - 002. You read it correct only WRITE permissions for Others.
Can someone point me what could have caused this?

excessive
- 3
- 1
- 2
0
votes
1 answer
How to fix useradd: Invalid configuration: GID_MIN (7000), GID_MAX (900)
I am running a service as root. This service creates a user and a group but fails at creating a user with the above error
how can this be fixed?

user_mda
- 123
- 5