Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
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..
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...
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.
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.