LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-12-2009, 09:45 AM   #1
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
account expiration


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
 
Old 02-12-2009, 10:30 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
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 !
 
Old 02-12-2009, 10:34 AM   #3
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
so I've got no choice But to format the system.
 
Old 02-12-2009, 10:39 AM   #4
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
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.
 
Old 02-12-2009, 10:43 AM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.
 
Old 02-12-2009, 11:08 AM   #6
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
And better still install a recent distro like Fedora 10 or Ubuntu-8.10 or the LTS version (for long term support)
 
Old 02-12-2009, 11:14 AM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
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.)
 
Old 02-13-2009, 04:47 AM   #8
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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 ...?
 
Old 02-13-2009, 06:25 AM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.
 
Old 02-13-2009, 12:33 PM   #10
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I ve re-install the LINUX now everything is under control

Thnax guys
 
Old 02-14-2009, 10:07 AM   #11
atee
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
guys what about samba

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

need yur help again
 
Old 02-15-2009, 11:39 AM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
"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.
 
  


Reply


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
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 12:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration