Questions tagged [useradd]

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

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
664 views

ssh fails with “could not find home directory” (which exists and has permissions) even while a local terminal logs the same user in

I have a bizarre problem where ssh does not find a home directory for some users (that exists), yet the same user can login directly on my machine via a local terminal. Details follow: I maintain a ...
1
vote
0answers
8 views

unable to boot directly to desktop environment

I tried to change a user's login name with usermod --login krypton maddybut now everytime I reboot my pc, it doesn't directly shows the desktop environment and I need to do Ctrl+Alt+F2 and then startx ...
1
vote
0answers
65 views

Why my newly created user is not inheriting $PATH variable

I added a new user dev on my Alpine based image. After switching to the new user I see env variables are different in case of both root and dev user. Specially $PATH variable is different. But I think ...
1
vote
0answers
225 views

Debian 9 - useradd

Here is an extract of /etc/default/useradd: GROUP=1005 Here is an extract of /etc/login.defs: USERGROUPS_ENAB no Here is the useradd command I run to create a user: $ sudo useradd test22 $ id -a ...
1
vote
0answers
793 views

389 ldap client authentication issue [CENTOS 7]

I have created posix group and posix account also able to successfully authenticate client but client unable to change the password. The error is password change failed: Confidentiality required``...
1
vote
1answer
705 views

Adding multiple user accounts on different primary/secondary groups

I am trying to create several user accounts with different groups in an imx6 board. Currently, no users are created in the device. Hence, I see 1000:1000 as my default user:group ID. The scenario I ...
1
vote
0answers
263 views

Add user as web-admin CentOS Linux 7

First of all, I'm a newwbie on Linux and CentOS. My webserver is on CentOS Linux 7 and different sites/domains under: /home/username/www/site1 /home/username/www/site2 Where "username" is my ...
1
vote
0answers
890 views

How to test new user login?

I've done some searching on Google and SE and have not found what I need using my search terms. Accessing RHEL 5.10 (Tikanga) from Windows 7. I am making a new user and need to make sure their ...
1
vote
0answers
354 views

Change default group for any new user

I'm wondering if you could change defaults groups for new users without having to specify all of them manually. I'm trying to harden my ArchLinux and there's a group (provided by Grsecurity) that is ...
1
vote
1answer
50 views

Is there any backward compatibility of -p (--path) option in user/group commands?

I upgraded from SUSE SLES 11 to SLES 12 and found that some user/group commands (such as useradd, groupadd, groupmod ... ) are no longer accept -p (--path) option to specific the directory of passwd, ...
1
vote
0answers
61 views

User creation during authentication

I'm working with OpenBSD 5.6 and the goal is that I need to create user when he or she tries to authenticate with specific password. I've written a script for this purpose and everything goes ok but ...
1
vote
1answer
425 views

How to create user account from script non-interactively without the password being seen?

The man page for useradd says http://linux.die.net/man/8/adduser -p, --password PASSWORD The encrypted password, as returned by crypt(3). The default is to disable the password. Note: This option ...
1
vote
1answer
38 views

Grant rights to create / manage users

Is there a way I can grant a user or a group the permission to add/edit other users without the ability to alter anything else on the system? The idea is to give helpdesk agents the ability to grant ...
0
votes
0answers
57 views

User entries not deleting in lastlog file in Solaris

I am deleting a user in Solaris 10 and 11.  If I delete a user using the command userdel -r test1 and then check my lastlog file /export/home/ch185140/lastlog, I get output like this: 1 tj100201 ...
0
votes
1answer
198 views

useradd with no options

When I create a user with useradd (no option) I can later add his passwd by using passwd new_user. How can I create his correct home directory (with Desktop and Templates inside) and all other ...
0
votes
1answer
366 views

ssh with new user failing with Permission denied (publickey)

I am trying to create user on EC2, following are the steps I performed. root$ adduser abc --disabled-password root$ sudo su abc abc$ mkdir /home/abc/.ssh abc$ chmod 700 /home/abc/.ssh abc$ touch /...
0
votes
0answers
108 views

How to configure which characters are allowed in CentOS usernames

In systems such as Debian, there is a file /etc/adduser.conf which includes directive NAME_REGEX that can be used to define which characters are allowed in a username. Is there a way to do this in ...
0
votes
1answer
78 views

How can I automate adding a new user, using an existing user's groups?

Raspberry pi comes with a default user account that is added to multiple groups: username@hostname:~ $ groups pi pi : pi adm dialout cdrom sudo audio video plugdev games users input netdev spi i2c ...
0
votes
2answers
638 views

Creating a working bash script that auto creates admin users in linux

The script below is what I have tried already but it still asked me for the user's password and other information when it ran. #!/bin/bash PASSWORD="somepassword" USERNAME="default" if id -u "$...
0
votes
1answer
563 views

useradd cannot execute / not owner error

I have Solaris 9. When running useradd as root i have this error. #/usr/sbin/useradd ksh: /usr/sbin/useradd : cannot exceute Then tried change shell csh and sh but to no avail. csh: # /usr/sbin/...
0
votes
0answers
450 views

Added new user, but can't access account - public key encryption

I added a new user to one of our servers, but can't log in to it via putty. The error message is "Server refused our key", and from putty, "Disconnected: no supported authentication methods available (...
-1
votes
1answer
495 views

SVN Installation and adding user

I installed SVN in my linux server a year back by following some documentation online and I created two users to my svn repository. I need to add few more users to my repository and I completely ...
-1
votes
1answer
107 views

processes that run during new user creation

I have two questions: What processes typically run when a new user is created? What processes run when an existing (regular) user escalates his privileges to gain root-access? I Googled a lot and ...
-4
votes
1answer
442 views

unix, adding users to existing directory in centos

I'm trying to add users to an existing directory but I keep getting: useradd: warning: the home directory already exists. Not copying any file from skel directory into it. I want to add users to ...