LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2008, 03:22 PM   #1
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Rep: Reputation: 0
Trouble Creating User/ Changing Password


Having trouble creating user, specifically editing the password for it...
I am using the command shell in the webmin interface, I just need to create a different user so I can run a teamspeak server, it won't run the server as root, I am new to linux obviously so please be as specific as possible when explaining how to change the password. Thanks!


Operating system: Redhat Linux Fedora 8
Webmin version: 1.400

I create a user "ts" and when I type "passwd ts" it says:

New UNIX password: New UNIX password: New UNIX password: passwd: Authentication information cannot be recovered
Changing password for user ts.



Then I enter the password I want...

1234 (press enter)

now it says:

>1234
bash: 1234: command not found
 
Old 04-06-2008, 03:50 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
What happens when you run "su ts" ?
 
Old 04-06-2008, 04:00 PM   #3
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
there isnt an error, su ts seems like it works, but it never said "user created" and i think thats because i never set the password

but when i do use su ts and then start the teamspeak server, it still says for security reasons dont start as root, and then fails to start
 
Old 04-06-2008, 08:13 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well. try "su - ts" not to leave traces of your orgignal root session in the environment/"real uid"
 
Old 04-06-2008, 08:52 PM   #5
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
How did you add the user?

If the user ts is already created you can log in as root (in a terminal) then give the command passwd ts you will be prompted for the new passwd enter the new passwd press enter, you will be asked to enter it again press enter.
 
Old 04-06-2008, 10:58 PM   #6
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
i type: adduser ts
it doesnt prompt me for the password, so i type passwd ts
then it says

New UNIX password: New UNIX password: New UNIX password: passwd: Authentication information cannot be recovered
Changing password for user ts.



so then i type a password i want "1234" and press enter and it says:


>1234
bash: 1234: command not found
 
Old 04-07-2008, 12:33 AM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
So, check if "su - ts" lets you run teamspeak server, and also check if there is a /etc/passwd line for ts.
 
Old 04-07-2008, 09:20 AM   #8
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
after doing su - ts the server still will not start, i don't think there is a /etc/passwd line for the user ts, but i might not have checked the right way
 
Old 04-07-2008, 01:04 PM   #9
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, if there is no /etc/passwd line mentioning user ts, the user was not added successfully, I am afraid.. Can you just login to the server using normal ssh? And I thought webmin had a specialized user management module, it could work better, too.. It looks like useradd didn't have a chance to convey its error message to you..
 
Old 04-07-2008, 06:40 PM   #10
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
When I type adduser ts then press enter, what do i do next? Do i type the password i want and press enter? Is this correct? I might just be so stupid I'm doing it wrong, that's what I assume...
 
Old 04-07-2008, 07:46 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,443

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
As suggested above, check your /etc/passwd file to see if you do in fact have a user "ts" there. If you don't you will have to add it. If you do you just need to add password.

As root in terminal to add a user: "adduser ts", hit enter, type "passwd ts", you will be prompted for a password (twice). Enter it. I would check after entering the "adduser ts" to see if it shows up in /etc/passwd.
 
Old 04-08-2008, 08:40 PM   #12
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
theres no /etc/passwd file

when i type "passwd ts" and press enter it says:

New UNIX password: New UNIX password: New UNIX password: passwd: Authentication information cannot be recovered
Changing password for user ts.


then i type the password i want, which for example is 1234, and press enter and it says

> 1234
bash: 1234: command not found


the whole thing looks like this ...

> passwd ts
New UNIX password: New UNIX password: New UNIX password: passwd: Authentication information cannot be recovered
Changing password for user ts.
> 1324
bash: 1234: command not found



basically, its not letting me answering the password.... or im doing something wrong
 
Old 04-08-2008, 08:44 PM   #13
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
when i start the server i type this and heres what happens...



> cd /home/ts/tss2_rc2
> ./teamspeak2-server_startscript start
WARNING ! For security reasons we advise: DO NOT RUN THE SERVER AS ROOT
!!!!!!!!!!!
starting the teamspeak2 server
Error starting daemon. Aborted
 
Old 04-08-2008, 10:14 PM   #14
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
it's odd that it repeats "New UNIX Password" three times like that... but it's VERY odd that you don't have an /etc/passwd file. if that file doesn't exist you should not be able to log in to the system at all. can you copy and paste the following commands please? and then post the output.


ls -al /etc/passwd

ls -al /etc

id

which adduser

which passwd
 
Old 04-08-2008, 11:14 PM   #15
beantier
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
> ls -al /etc/passwd
-rw-r--r-- 1 root root 988 Apr 6 20:05 /etc/passwd


> ls -al /etc
total 816
...theres a lot of stuff here, it all says "root root" in it, theres not "ts" anywhere... do you need each of these things?


> id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)



> which adduser
/usr/sbin/adduser



> which passwd
/usr/bin/passwd



Thanks.
 
  


Reply

Tags
create, password, user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set password when creating user accounts correro Linux - Newbie 3 02-08-2007 02:32 AM
trouble creating a user MrSako Linux - Newbie 2 10-08-2006 04:06 PM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
changing the password of a user sadiboyz Linux - Newbie 2 04-21-2003 02:22 PM
Creating a User with No Password? OldNewUser Linux - Networking 1 08-26-2002 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration