LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 02-12-2009, 09:45 AM   #1
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5
Thanked: 0
account expiration


[Log in to get rid of this advertisement]
hi guys

its my first day with the linux and iam stucked in a critical situation here in the office

i've installed linux Red Hat Linux 9 and faced a problem of expiry of the password i've seen in the forum abt go to root and type password -u but how to enter in the root All i can see only the login window there is no option given to move any where..

pls help me out on urgent basis

Atif
atee is offline     Reply With Quote
Old 02-12-2009, 10:30 AM   #2
raju.mopidevi
Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: SUSE 11.0, Ubuntu 9.0.4
Posts: 86
Thanked: 0
hii atee,
some linux distributions like fedora, ubuntu, red hat doesn't provide to login as a root user.
if you want to perform administrative tasks you need to run as root by using "su" command. Some distributios like SUSE provides to login as root. so you are not able to login as root !
raju.mopidevi is offline     Reply With Quote
Old 02-12-2009, 10:34 AM   #3
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5
Thanked: 0

Original Poster
so I've got no choice But to format the system.
atee is offline     Reply With Quote
Old 02-12-2009, 10:39 AM   #4
raju.mopidevi
Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: SUSE 11.0, Ubuntu 9.0.4
Posts: 86
Thanked: 0
Quote:
Originally Posted by atee View Post
so I've got no choice But to format the system.
DO you want to format the system ?? You have to remember one thing, some enterprise editions doen't allow to run new softwares until registered.
raju.mopidevi is offline     Reply With Quote
Old 02-12-2009, 10:43 AM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Rijeka, Croatia
Distribution: Debian, blackPanther
Posts: 1,432
Blog Entries: 2
Thanked: 85
RH9 is old distro,but you should've been prompted for entering the root password during installation,so when you're in the terminal type su - and enter password,you want see what you type but when you're done press enter.Now you're root.Then you can use command;
Code:
chage -M 30 username
to specifie the maximum number of days the password is valid,so in this example the password will be valid for 30 days for the user that you have to specifie.
You can folow this guide to change the root password.
alan_ri is offline     Reply With Quote
Old 02-12-2009, 11:08 AM   #6
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit Source, Kubuntu64, Slamd64. Fedora QA
Posts: 1,684
Thanked: 55
And better still install a recent distro like Fedora 10 or Ubuntu-8.10 or the LTS version (for long term support)
amani is offline     Reply With Quote
Old 02-12-2009, 11:14 AM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 2,847
Thanked: 78
First, by default, an user's password is set to "expire" after first use by the user. That allows the administrator to create the user's account with a known password, but forces the user to change the password after they first use the password. This works well if the user logs on via a console connection, since the message that the password need to be reset is displayed there, with, IIRC, the requirement to make the change before proceeding. I suspect that the older GUI interface you're using may not handle this so gracefully, leaving you with an expired password and no message that the password had expired so you didn't know to change it.

One approach to solving the problem is to boot the system in maintenance mode, log on as "root" and reset the user's password. Then log on as the user, and re-set the password to whatever will work. (There are "rules" for "good" passwords that are enforced when a password is changed.)

To log on in "maintenance" mode (assuming you know the "root" password), just press the <Escape> key as soon as the GRUB boot splash screen is displayed (before the system starts to boot), and follow the on-screen instructions to edit the line that starts with kernel to have a " 3" (no quotes, of course) at the end of the the line, and then boot from the altered commands. (Note: Changes made to the GRUB boot instructions in this way are only temporary.)
PTrenholme is offline     Reply With Quote
Old 02-13-2009, 04:47 AM   #8
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5
Thanked: 0

Original Poster
Thanx guys it really works but as i 've created new user at shell prompt set its name and password but still its no accepting on GRUB login screen.

Even i have change the expiry date duration by the command chage -M 30 username it showed the message at login screen "no authentication"

wats going on ...?
atee is offline     Reply With Quote
Old 02-13-2009, 06:25 AM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Rijeka, Croatia
Distribution: Debian, blackPanther
Posts: 1,432
Blog Entries: 2
Thanked: 85
Then this is a PAM issue.I don't know where on RH9 PAM is,but you can search for something like /etc/pam.d or /etc/pam.conf and change the configuration file.If you try to do so keep this in mind;
Quote:
  • account The account interface checks to see if an account is authorized to use the system, which could mean checking to see if it exists, has expired, or is allowed access at a particular time or via a particular service.
  • auth The auth interface authenticates a user. That can be by prompting for and then checking a password, a database, or another mechanism. auth modules are also allowed to set credentials such as group memberships or Kerberos tickets.
  • password The password interface is for checking and setting password authentication.
  • session The session interface configures and manages a user's session. This may include housekeeping tasks like mounting directories, creating files, and so on.
alan_ri is offline     Reply With Quote
Old 02-13-2009, 12:33 PM   #10
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5
Thanked: 0

Original Poster
I ve re-install the LINUX now everything is under control

Thnax guys
atee is offline     Reply With Quote
Old 02-14-2009, 10:07 AM   #11
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5
Thanked: 0

Original Poster
guys what about samba

i couldnt find samba on my computer Although i hve installed from add remove task.

need yur help again
atee is offline     Reply With Quote
Old 02-15-2009, 11:39 AM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 2,847
Thanked: 78
"Samba" is a new topic, so you should start a new thread on that issue. In any case, please read the samba tutorial so you know what you're talking about before posting.
PTrenholme is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
way to set user account expiration Drasylera Linux - Newbie 1 02-05-2009 10:18 AM
Password Expiration Policy bspicer Linux - General 7 05-12-2007 04:26 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 11:02 AM
Password expiration - help klmn1 Linux - General 1 12-31-2002 12:04 AM
Password expiration klmn1 Linux - Networking 1 12-26-2002 01:08 PM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration