Linux - NewbieThis 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.
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..
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 !
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.
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.)
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.
"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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.