New User Login Exam Question


 
Thread Tools Search this Thread
Operating Systems Solaris New User Login Exam Question
# 1  
Old 10-18-2016
New User Login Exam Question

Hi Folks,

I am studying for my 1z0-821 exam and I would like to clarify an answer to the following question :

You have a ticket from a new user on the system, indicating that he cannot log in to his account.
The information in the ticket gives you both the username and password. The ticket also shows
that the account was set up three days ago.

As root, you switch users to this account with the following command:

Code:
su - newuser


You do not get an error message.

You then run 1s -1a and see the following files:


Code:
local1.cshrc local1.login local1.profile .bash_history .bashrc .profile

As root, you grep the /etc/passwd file and the /etc/shadow file for this username, with these
results:

Code:
/etc/passwd contains newuser:x:60012:10:/home/newuser:/usr/bin/bash

/etc/shadow contains newuser:UP: : : : :10: :

As root, what is your next logical step?

  1. Usermod -f 0
  2. passwd newuser
  3. mkdir /home/newuser
  4. useradd -D

According to my research, the /etc/shadow with the UP: : : means that the user Account has not been activated by administrator. So, I guess the answer might be C Usermod -f 0 ? as this will set invalidity to none?

PS : I am new to Unix... using windows for my whole life and time for a change. Smilie


Moderator's Comments:
Mod Comment Use code tags, thanks.

Last edited by rbatte1; 10-19-2016 at 04:56 AM.. Reason: Converted to formatted number-list using alphabetic
# 2  
Old 10-19-2016
I think usermod -f 0 changes the inactive *field* (not status). I.e. will change the 10 to 0.
You must change the password field by means of the password command.
# 3  
Old 10-19-2016
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

My Exam Question

Hello My friends, This is my new Thread and i am so newbie about Bash/shell code. My first exam question is : there is a file (name is also File) and this file has 2 letters and 1 number. And number is in the middle. like this a 2 c I have to show only number on screen. And i did like... (1 Reply)
Discussion started by: Darthy
1 Replies

2. Solaris

Question about exam

Hello guys I hope you well and in great health, i wonder if i want to get Solaris 11 (1z0-821) exam i've to talk a course in oracle or i can just register for the exam and take it. thanks. (1 Reply)
Discussion started by: mohamed91
1 Replies

3. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

4. Shell Programming and Scripting

How to Login as another user through Shell script from current user[Not Root]

Hi Every body, I would need a shell script program to login as different user and perform some copy commands in the script. example: Supppose ora_toms is the active user ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands ... (9 Replies)
Discussion started by: ujjwal27
9 Replies

5. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

6. UNIX for Dummies Questions & Answers

user login script question

hi all, what file(s) needs to be changed and in what way in order to do the following: when user A logs onto freebsd 4.8 automaticaly he needs to start up a script a made that executes: sets ltp0 in polling mode, executes tn5250 keyboard mapping starts tn5250 with the correct parameters. ... (2 Replies)
Discussion started by: termiEEE
2 Replies
Login or Register to Ask a Question