Questions tagged [useradd]
44 questions
0
votes
1 answer
add system user without login but able to su without asking for password
I created a user "sysuser" with -r option, when trying to su using another non-root user I am prompted for password.
As "sysuser" is a system account and should not login, I did not set up a password. (With sysuser I need to be able to own files and…

Sri
- 1
0
votes
2 answers
Should I set the password when creating new user using useradd command?
I know that when creating a new user by useradd, I could set his password by -p option, but it seems insecure, then what the right way to create a user and set his password?
I do this in two steps:
1. create the user using useradd command without…

cifer
- 101
- 5
0
votes
1 answer
Cannot add user on Centos Server - Input/Output error
Today, on my Centos server I tried to add a user but got the following error:
-bash: /usr/sbin/useradd: Input/output error
How do i fix it?
Thanks
UPDATE:
var/log/messages is blank
df -h also gives me a the same input/output error:
-bash:…

DextrousDave
- 315
- 2
- 4
- 13
0
votes
2 answers
How to make Ubuntu useradd behave like Centos useradd?
I don't remember modifying CentOS useradd to get this behavior.
useradd in CentOS creates the user's home directory with all the normal files (like .bashrc).
I modified /etc/default/useradd to make it looks like CentOS (just required some…

Buttle Butkus
- 1,741
- 8
- 33
- 45
0
votes
2 answers
Bash script for setting up FTP
Is it possible / any recommendations on writing a shell script to automate the process of creating a new user/ftp user:
Currently the process:
sudo useradd -d /ftp-files/user-a -m user-a
sudo passwd user-a
The issue is that I need to manually…

williamsowen
- 1,167
- 3
- 16
- 25
0
votes
1 answer
Add regular unix user to whm to use cPanel
I have been using useradd to create user account on my CentOS server although cPanel has been installed on the server. For some reasons, I created them by command instead of using WHM.
Now, some of them want to use rich features of cPanel. What is…

thatlamguy
- 111
- 2
0
votes
2 answers
creating user with limited access
I add a user on Application server using "useradd" command.
/usr/sbin/useradd shantanu
This user can connect to mysql service using the following command...
mysql -h 10.10.10.111 -uroot -proot@123
I want this user to not to be able to connect to…

shantanuo
- 3,579
- 8
- 49
- 66
0
votes
2 answers
Debian add user permission
I'm giving my friend a host on my dedicated server. I created a new user for him:
Debian server.
adduser friend
Adding user `friend' ...
Adding new group `friend' (1000) ...
Adding new user `friend' (1000) with group `friend' ...
Creating home…

Muazam
- 197
- 2
- 10
0
votes
1 answer
Creating users/groups via PHP
I'm creating an internal tool that needs a bit of cpanel/webmin type functionality, but this isn't a situation where I could use one of those
Right now I need to be able to create linux users, groups, and directories via PHP. Here's what I have…

Lowgain
- 247
- 1
- 2
- 7
0
votes
1 answer
Is it possible to change the directory in which useradd creates its lockfiles?
Useradd creates lock files in /etc/ directory. Is it possible make it create them somewhere else?
user58292
0
votes
1 answer
Script to notify me when users are created
I've created a script from what ive found on the web to notify a SA of users being added to a server. I have it setup with a cron to run the script every 5 mins to monitor differences in the /var/log/secure file but it still sends a blank email if…

award94
- 1
0
votes
1 answer
Add an aliases user root2, results changing the owner root to root2
Am looking to add an alias for the root user to log to the server with a different password
So I followed this advice
https://serverfault.com/a/870301/429729
by using the following command
useradd -o -u 0 -g 0 -N -d /root/ -M root2
it works but…

user1402259
- 1
- 1
0
votes
1 answer
Create user without adding subuid range
Is it possible to create a new user e.g. with useradd without adding an entry to /etc/subuid even if the latter file exists?
I use /etc/subuid only to for the user namespacing by Docker but don't want all other manually users manually to get subuid…

svoop
- 145
- 1
- 6
-1
votes
2 answers
Please help me understand useradd example's syntax
I've been doing some research on how to add a user to the system so as to have a new ftp user and one of the examples I ran across was this:
useradd -m -G users,ftp,wheel joe -s /bin/bash
passwd joe
chown -R joe /var/www/
I'm new to Linux and I…

Nick
- 315
- 2
- 7
- 15