Questions tagged [useradd]

43 questions
21
votes
3 answers

useradd not encrypting passwords in /etc/shadow

I stumbled accross this problem when trying to create new FTP users for vsftpd. Upon creating a new user with the following command and attempting login with FileZilla, I would get an "incorrect password" error. useradd f -p pass -d /home/f -s…
BadToTheBone
  • 369
  • 1
  • 3
  • 9
18
votes
5 answers

Tab Autocomplete for New User

I added a new linux user by doing a useradd -d /var/www/mywebsite.com -m newuser passwd newuser I tested the account by logging into the server with the following command ssh newuser@mywebsite.com After login, the shell doesn't let me do tab…
John
  • 7,153
  • 22
  • 61
  • 86
18
votes
2 answers

In what condition, should I create a system user instead of a normal user?

From the adduser command, I saw the option --system to create a system user. A system user will use /bin/false and by default belong to nogroup. It also won't copy the /etc/skel to the home directory. In which condition would I prefer to create a…
steveyang
  • 623
  • 4
  • 9
  • 15
7
votes
1 answer

crontab file of a deleted user

After removing the user, does the crontab added by that user gets removed as well? I am asking this because I can see a user file called "abcuser" in the /var/spool/cron/ When I cat the file, I can see the crons added by that user. The user no…
shantanuo
  • 3,459
  • 8
  • 47
  • 64
7
votes
2 answers

Setting up a user without a password

I'd like to be able to su to another user to run a script with reduced permissions. Unfortunately I have to type the password in every time, is there a way to create a user without needing the password prompt?
6
votes
2 answers

Best way to create a user with no password

What is the good way to create a user with no password? By no password, I mean an account, that would be usable only by the root account using the su/sudo commands (like the "nobody" user used by Apache or Nginx). I've read that putting a * in the…
John Smith Optional
  • 472
  • 2
  • 9
  • 18
4
votes
1 answer

useradd with -d option do not create skeleton files

When I create a user with useradd command in centos 5, the home directory is created and its /etc/skel files are copied to that directory but when i give useradd with -doption to some different path to home directory it does not create the skeloton…
Toqeer
  • 1,201
  • 3
  • 13
  • 20
3
votes
1 answer

Useradd with given password

I would like to add new user without needed any interaction, so with specified password. I have tried command above: useradd -m -p user -s /bin/bash user So it should be a user with password user, but I can't login via SSH.
plaidshirt
  • 261
  • 3
  • 11
3
votes
1 answer

How to specify home directory when creating a user in linux?

I want to specify the home directory when creating a user, currently i'm using centos 6.7 Is it possible?
Jonathan Solorzano
  • 201
  • 1
  • 3
  • 12
2
votes
1 answer

Ansible adduser issue

Having some trouble with the user module in Ansible. Everything is technically working, just not as I expected. It seems Ansible uses "useradd" versus the newer "adduser" in Ubuntu and I think its missing some configuration settings when creating…
Atomiklan
  • 539
  • 7
  • 16
2
votes
1 answer

Ubuntu - adduser / useradd both ask for password to be set, can force a script to bypass this?

I have a script that works fine on Centos because useradd doesnt require a password to be set there and then, but the same script doesnt work on ubuntu servers as it requires this info. I ideally want to force no password set on my script for the…
Matt B
  • 99
  • 1
  • 1
  • 8
2
votes
2 answers

Can't add local user on system using ldap auth for samba

Trying to add a local user to a CentOS 6.3 system that is using ldap for Samba authentication, but being stymied by the user's existing entry in ldap. [root@samba ~]# adduser wchandy adduser: user 'wchandy' already exists [root@samba ~]# useradd…
Wes Modes
  • 151
  • 1
  • 1
  • 8
2
votes
2 answers

adduser with a read / write to only one directory

I have CentOS with one ssh user which is root. How do I make one more user for my web developer so he can scp files over to /var/www/html ? Its gonna be a static page, so mysql and alike are out of question. All I need is that user to be able to scp…
sdc
  • 21
  • 2
1
vote
1 answer

How to create a user really without group in centos 7?

Per this question,I decide to create dummy user to be the owner of website files. Centos 7 offer default group ID 100 when I run useradd -u 508 -M -N -s /sbin/nologin dummyuser1. I want to provide as little as possible privilege to the…
kittygirl
  • 855
  • 4
  • 10
  • 29
1
vote
0 answers

How to use a custom skeleton directory with useradd?

I'm trying to create a new user account using a custom skeleton directory instead of the default /etc/skel. Reading man useradd I'm pretty sure this should work: useradd -m -d /home/foo -k /usr/local/etc/custom-skel foo But it seems like the -k…
Haprog
  • 111
  • 4
1
2 3