Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
31 views

EC2 Create new Linux user(s) with their OWN Key Pairs?

In EC2, i spinned a CentOS v6.5 instance, and i got a Key Pair as well (of course). But the problem is, i hoped it would be like as usual before that it would creates the ec2-user user, so that i can ...
0
votes
0answers
27 views

Failed backup, Create User Accounts from /home dir username uid gid

Trying to repair/replace a system from a failed backup. /etc is gone, trying to recover that, but in the meantime I need to work on a plan B. /home remains with UID and GID and all of the important ...
0
votes
2answers
74 views

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
vote
1answer
232 views

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 ...
0
votes
1answer
198 views

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 ...
0
votes
2answers
2k views

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

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 ...
0
votes
2answers
405 views

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 ...
0
votes
2answers
429 views

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 ...
1
vote
2answers
2k views

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 ...
2
votes
1answer
1k views

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 ...
0
votes
2answers
195 views

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 ...
0
votes
1answer
258 views

lenny/plesk, useradd no restriction for homedir, and not able to login with shell /bin/false

I'm running debian lenny - plesk. I want to create a new ftp user, so I run useradd -d /var/www/vhosts/somedomain.com/httpdocs/somedir johnny everything okay, johnny can now login, but he is able ...
-1
votes
1answer
336 views

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 ...
5
votes
1answer
2k views

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 ...
5
votes
1answer
698 views

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 ...
0
votes
2answers
60 views

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 ...
1
vote
2answers
65 views

formatting username [closed]

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. ...
1
vote
1answer
2k views

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 ...
1
vote
2answers
518 views

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 ...
0
votes
2answers
559 views

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 ...
0
votes
2answers
394 views

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 ...
1
vote
2answers
839 views

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?
1
vote
2answers
1k views

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 ...
1
vote
2answers
906 views

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 ...
0
votes
1answer
86 views

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, ...
0
votes
1answer
68 views

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?
1
vote
3answers
343 views

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: ...
4
votes
4answers
3k views

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 ...
7
votes
2answers
282 views

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 ...