Hi Somendra,
sam4u_tforever <[EMAIL PROTECTED]> wrote:
>> recently i faced my rhce exam
>> but due to to a commen problem my complete batch fail this paper
>> the problem is like
>> examiner put a attribute of i on shadow file, and made the root
>> account expired
>> due to attribute we could not change login duration
>> when we used chattr command the error comes like operation not
>> permitted : operation denied
>> and at the same time we could not use chage -E -1 root command.
I don't know from where u got my email id but I am glad that u consulted me
and I will help you to the best of my knowledge and effort.
The first thing as per my knowledge is that the concept of attribute is not
used in RHCE Exams and that u were simply confused by that perception. Even if
the attribute concept was used it won't restrict root login, also as you said u
tried chattr command and it gave u a operation denied error. It simply states
that the permission of the shadow or passwd file must had been changed.
The most simple step that u should had taken in the exam was to login in
single user mode. From there u should had checked the permissions of passwd
file (which is rw-r--r--) and shadow file (which is r--------). If the
permission was right then u should had created a normal user and then reboot
and login from the newly created user. If the login is successfull then compare
the two lines of new user and root from the passwd and shadow file from single
user mode. If there is a difference than make changes accordingly to the root
line.
You should have also changed the root's password from single user. One more
file to look at was /etc/securetty and check whether all the line was commented
or not, if it was then uncomment all lines, save it and check again.
Last but not least u should have read the log file /var/log/messages for
recent logs which gives a clear idea why root couldn't login.
Though there are a number of ways through which we can restrict root login
but the ones asked in RHCE exams are limited as discussed above.
I'll also be more helpful if you can mail me ur whereabouts like where u live
and where u had appeared for the RHCE Exam.
Regards,
Muzaffar Ansari
[EMAIL PROTECTED]
---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business.
[Non-text portions of this message have been removed]
***Archives:
http://groups.yahoo.com/group/linuxvadapav/messages
***Group Usage Guidelines (Please Read):
http://groups.yahoo.com/group/linuxvadapav/files/mailing_rules
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/linuxvadapav/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/