Dont know what I'm doing wrong with useradd


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Dont know what I'm doing wrong with useradd
# 1  
Old 07-10-2005
Dont know what I'm doing wrong with useradd

Hi,

Just got a dedicated server account for web hosting. I have some linux experience since the past 3 months I've been using SuSE and aint even touvhed windows but now I know I've relied too much on KDE's friendly tools to do some of the admin stuff.

I'm trying to add a user from the root account using SSH. I want this user to be in the group "users".

This is what I'm doing:

Code:
useradd -d /home/d11wtq -m -s /bin/bash -e 2010-07-10 -g users -p mypass d11wtq

It all *appears* to go okay so I try

Code:
ssh d11wtq@localhost

It asks me for my password as expected then pauses and asks me again, after 3 attempts it just says session inactive and throws me out (like the password is wrong).

Could somebody explain where I'm going wrong here? I feel like such a n00b now Smilie

Cheers,

d11

(Do I need to do something else before the user "d11wtq" can use SSH?)

EDIT | If it helps this a Gentoo Linux server
# 2  
Old 07-10-2005
Ah OK thanks never mind Smilie

I needed to (as root) run this command afterwards:

Code:
passwd d11wtq

I should have known that since I run passwd on a 30 day cycle anyway, I just hadn't thought about giving it a username paramater.
# 3  
Old 07-10-2005
Remember that -p mypass allows you to specify an encrypted password as returned by crypt(3). Are you sure that you encrypted the password properly? Try using the passwd command to reset the password.
# 4  
Old 07-10-2005
or use:
unset HISTFILE
this command will stop writing to ~/.bash_history (for security)
# 5  
Old 07-10-2005
Quote:
Originally Posted by zylwyz
or use:
unset HISTFILE
this command will stop writing to ~/.bash_history (for security)
?? will that also stop the handy UpArrow feature too for us lazy typist ??
# 6  
Old 07-11-2005
Why are we talking about shell history all of a sudden? I feel like I'm watching Eraserhead or something. Smilie
# 7  
Old 07-28-2005
Quote:
Originally Posted by popcycle
?? will that also stop the handy UpArrow feature too for us lazy typist ??
This will now stop
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Why result is wrong here ? whether break statement is wrong ?

Hi ! all I am just trying to check range in my datafile pls tell me why its resulting wrong admin@IEEE:~/Desktop$ cat test.txt 0 28.4 5 28.4 10 28.4 15 28.5 20 28.5 25 28.6 30 28.6 35 28.7 40 28.7 45 28.7 50 28.8 55 28.8 60 28.8 65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies

2. Solaris

useradd

I want to creat a 27 logins in solaris.Can anyone tell me how to write a script for that so that i create at a time for all 27 people. Thanks to guide me. (6 Replies)
Discussion started by: kkalyan
6 Replies

3. Solaris

useradd

if useradd command is deleted in solaris how do we add user (3 Replies)
Discussion started by: vivek_ng
3 Replies

4. UNIX for Advanced & Expert Users

useradd?

Hi Experts, when using useradd command, what are the necessary options/arguments to be included? Please advice. (4 Replies)
Discussion started by: etcpasswd
4 Replies

5. Shell Programming and Scripting

useradd

Gurus, I need to add a user to all the machines. I need a script to do this. I did one but it does not allow me to su to root within a ssh session i open. It exists saying su: Sorry. Please let me know how i can do it. I do not have the freedom of using sudo either. Regards (4 Replies)
Discussion started by: earlysame55
4 Replies

6. Solaris

useradd

Hi, I need to add a new user who will only be able to access one single folder on my Solaris 9 system. Can this be achieved by using just useradd or do i need to fiddle with auth_attr table? TIA, Selma (4 Replies)
Discussion started by: Selma
4 Replies

7. Programming

I dont want this

Im creating a sort of shell, for my cybercafe This will restrict my clients from accessing unwanted materials so im programming a similar bash to 1. to meet my goals 2. to learn new things. im creating it in C, please have a look at the attachement. i wish to avoid having a blank space... (6 Replies)
Discussion started by: C|[anti-trust]
6 Replies

8. UNIX for Advanced & Expert Users

useradd

Hi. due to some needs i gave a user the premission to use useradd command with sudo. i want to know if there is a way to let him set the initial password, without giving him the premission to use passwd command as root (sudo). maybe a way to set a default password for all the new users that... (2 Replies)
Discussion started by: dorilevy
2 Replies

9. UNIX for Dummies Questions & Answers

useradd

I work on some hp ux 11.00 Servers. i have to add an user. i use the useradd command like follows: useradd -u 72022 -g 71095 -c " comment " -d /PACKAGE_NAME/home/username -s /usr/bin/sh username The command returns with error 3. The manpage means value number 3: Invalid argument supplied to an... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies
Login or Register to Ask a Question