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:
You do not get an error message.
You then run 1s -1a and see the following files:
As root, you grep the /etc/passwd file and the /etc/shadow file for this username, with these
results:
As root, what is your next logical step?
Usermod -f 0
passwd newuser
mkdir /home/newuser
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.
Moderator's Comments:
Use code tags, thanks.
Last edited by rbatte1; 10-19-2016 at 04:56 AM..
Reason: Converted to formatted number-list using alphabetic
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.
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.
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)
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)
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)
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)
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)
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)