LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-02-2018, 08:46 PM   #1
HLoD_ON-
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Rep: Reputation: Disabled
Cinnamon 19 how do I create a new user with a different password?


I set up my main persona, and have created 2 extra users [one is 'test']
I cannot figure out what password to put in for either. It's not the same as the prime user.
How do I go about putting passwords that I create?

Last edited by HLoD_ON-; 08-02-2018 at 09:59 PM.
 
Old 08-02-2018, 09:04 PM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
When new users are created, you must enter a password. Whatever interface you used (gui or cli), would have prompted for account passwords.
 
Old 08-02-2018, 09:07 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
If you have a user without a password, as root type
Code:
passwd username
and it will let you set a password
 
2 members found this post helpful.
Old 08-02-2018, 10:00 PM   #4
HLoD_ON-
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Unhappy Not quite

Quote:
Originally Posted by TheEzekielProject View Post
If you have a user without a password, as root type
Code:
passwd username
and it will let you set a password
Unfortunately, it's trying to reset the prime user's password
 
Old 08-02-2018, 10:07 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,400
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
Let me make sure I understand this. You created the users, but did not create passwords for them? How did you add them? Did you create home directories for them or not?

In any event, try, as root

Code:
passwd [username]
That should prompt you to enter a new password.

Meanwhile, check out the adduser command; it's superior to useradd: https://linux.die.net/man/8/adduser
 
Old 08-02-2018, 10:12 PM   #6
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by HLoD_ON- View Post
Unfortunately, it's trying to reset the prime user's password
Interesting. How did you go about creating the users?
 
Old 08-03-2018, 08:35 PM   #7
HLoD_ON-
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
[QUOTE=frankbell;5887123]Let me make sure I understand this. You created the users, but did not create passwords for them? How did you add them? Did you create home directories for them or not?


Nope, I was careless and created the user, and then didn't look at the prompt before hitting it.

Thanks for the MAN page

Let's see what I can screw up next 8D
 
Old 08-03-2018, 09:22 PM   #8
HLoD_ON-
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
I know I'm old, and not very savvy with this stuff, but I'm just not having any luck.

I created a new account GUEST. At no time was I asked for a password.
I then deleted [-d] the password [in case there was one].
I added -n for a minimum time before renewal.

When I passwd -S, I got the name, the date, the minimum time, 0, 99999, 7, -1.

But when I try to add a password, I just get the HELP response.
I used passwd GUEST ****** and passwd ****** GUEST.

What am I doing wrong?
 
Old 08-03-2018, 09:34 PM   #9
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
You still have not answered the question of how you created the users in the first place.

The proper way from the terminal would be to, as root
Code:
adduser username
. Then closely read, follow, and fill in all the questions.

When setting or changing a password, type
Code:
passwd username
and then WAIT for the prompt to tell you to enter the password. And then it will have you verify the password.
 
1 members found this post helpful.
Old 08-03-2018, 09:39 PM   #10
HLoD_ON-
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
I know I'm old, and not very savvy with this stuff, but I'm just not having any luck.

I created a new account GUEST. At no time was I asked for a password.
I then deleted [-d] the password [in case there was one].
I added -n for a minimum time before renewal.

When I passwd -S, I got the name, the date, the minimum time, 0, 99999, 7, -1.

But when I try to add a password, I just get the HELP response.
I used passwd GUEST ****** and passwd ****** GUEST.

What am I doing wrong?
 
Old 08-03-2018, 09:41 PM   #11
HLoD_ON-
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks TheEzekielProject

I'll try again
 
Old 08-03-2018, 09:44 PM   #12
HLoD_ON-
LQ Newbie
 
Registered: Aug 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Worked like a charm

Thanks again

SOLVED
 
Old 08-03-2018, 09:46 PM   #13
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Glad you got it sorted out. You can mark the thread as solved with Thread Tools at the top of the thread.

Enjoy your working users
 
  


Reply



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
Create user add file with default password and force user to change it? Morgandy Linux - Newbie 3 02-02-2010 05:06 PM
Create User with Expired Password cmschube Red Hat 6 10-14-2007 09:01 PM
how i create user without password lion_heart_300 Fedora 4 03-29-2007 07:24 AM
Is it possible to create a user with no password paul.nel Linux - General 11 02-28-2005 04:54 PM
How do I Create User w/o password?? Ruth Linux - General 6 03-02-2001 09:51 AM

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

All times are GMT -5. The time now is 03:07 PM.

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