LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-30-2010, 09:38 AM   #1
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Rep: Reputation: 15
request password


hello
I do building new distrobution .
when system running. User can not login ; because my new distro do not request password for users ! , and reply login ... !

shadow is installed and passwd,pwconv,pwunconv,useradd,userdel commands with chroot working ... .
user authentication working with shadow file .

nsswitch.conf is true :
passwd: files
group: files
shadow: files

passwd and shadow files is true .
Example :
root:x:1:1:Super User:/root:/bin/bash

where is problem ... ?
excuse me for bad Englishing .

Last edited by mah454; 05-30-2010 at 09:39 AM.
 
Old 05-30-2010, 10:20 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Use the command

Code:
passwd username
to set the password for a user.

This is what it does:

Code:
$ passwd username
Changing password for username.
(current) UNIX password: 
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
 
Old 05-30-2010, 10:22 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Did you already create user(s) using useradd or adduser command?

Kind regards,

Eric
 
Old 05-30-2010, 10:23 AM   #4
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
no no no !
this is not problem ... !
system do not request password to user for login .
All user have password .
 
Old 05-30-2010, 10:24 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Please try to run:

Code:
passwd username
And afterwards see it it will prompt for the password.
 
Old 05-30-2010, 10:24 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

You're not making sense here. How can it be that your system doesn't request passwords yet your users have one?

Can you elaborate on that one a bit because it's not clear to me what you mean.

Kind regards,

Eric
 
Old 05-30-2010, 10:26 AM   #7
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by EricTRA View Post
Hi,
Did you already create user(s) using useradd or adduser command?
Eric
Yes ...
when I use chroot command .
useradd,userdel,passwd do working .
 
Old 05-30-2010, 10:34 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Since you're working in a chroot environment your users cannot connect to that one. You'll need to boot into your OS instead. Then if all is set up correctly your users will be able to login. At least that's what I think is wrong. Are you trying to have your users login to a 'chrooted' environment?

Kind regards,

Eric
 
Old 05-30-2010, 10:41 AM   #9
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
I do turn on my computer and switch to new distribution .
runlevel is 2 and System request username for login .
I write username and Enter . now system most request password but do not this job and tray to write username ...

NOTE : I do building new distribution .

Last edited by mah454; 05-30-2010 at 10:43 AM.
 
Old 05-30-2010, 10:46 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What do you mean by 'switch to new distribution'? Do you mean that you boot into for example Debian and then 'switch' to the distro you're building with chroot?

Kind regards,

Eric
 
Old 05-30-2010, 10:52 AM   #11
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
no .
I building new distro with Ubuntu-9.04 .
when use ubuntu and chroot to new root , commands working . (useradd,userdel,passwd,...)
 
Old 05-30-2010, 11:09 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

That's what I was mentioning before, you'll need to boot into the new distro in order to be able to authenticate your users; not into Ubuntu.

Are you building an LFS system?

Kind regards,

Eric
 
Old 05-31-2010, 12:35 AM   #13
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
alike LFS .
LFS + Linux Pocket Guid ...
 
Old 05-31-2010, 12:39 AM   #14
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

So then like the LFS distro, as mentioned in the LFS book, you need to boot into your distro and not continue using the host system and chroot. Once you booted in the LFS system you should be able to authenticate your users correctly if they are created and passwords are set for them.

Kind regards,

Eric
 
Old 05-31-2010, 12:58 AM   #15
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
excuse me , My English language not good .
=============================================
Ok , After logout , User can not login ; Because system do not request password !
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption of password request in Squid roberbizimhatemo Linux - Server 1 02-09-2010 04:27 AM
stop password request MrUmunhum Linux - General 6 07-26-2009 02:15 PM
Keyring password request SChipS SUSE / openSUSE 0 02-09-2008 11:00 AM
removing the request for password ryan00davis Linux - General 3 02-25-2007 05:47 PM
script detecting ssh password request jp9999 Linux - Software 1 05-02-2006 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:05 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