Sponsored Content
Full Discussion: New User Login Exam Question
Operating Systems Solaris New User Login Exam Question Post 302983950 by Ravneet_Pal on Tuesday 18th of October 2016 09:31:25 PM
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
 

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
All times are GMT -4. The time now is 08:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy