COMP 325 Study Guide - Quiz Guide: Ibm Aix
1.1. What would happen if the last field of the line in the /etc/passwd file were replaced with
/usr/bin/date? Why?
The last field, login_shell, contains the absolute pathname for the user’s login shell.
The command corresponding to the pathname specified in this field is executed by the
system when the user logs on. Back-to-back colons mean that the field value is missing,
which is sometimes done with the user_info field.
In AIX user account is created using smitty and/or command line. This process is influenced by contents of files
located in directories /etc, /etc/security and /usr/lib/security.
The /usr/lib/security/mkuser.default defines the basics defaults like group membership, home
directory and shell. If you do not supply this information during user creation, it will be resolved using the contents of
this file. So for
example, if your users “home” directories will not be located in the /home but in /ClusterHome, and they belong
to the group called myGroup then you should modify the “user” stanza in
the/usr/lib/security/mkuser.default as follows:
user:
pgrp = myGroup
groups = staff
shell = /usr/bin/ksh
home = /CluserHome/$USER
/usr/lib/security/mkuser.sys sets attributes of user home directory and the contents of its startup script
(~/.profile in the case of ksh/sh). This file also creates the users “.profile” using the
file /etc/security/.profile as the template.
find more resources at oneclass.com
find more resources at oneclass.com
Document Summary
What would happen if the last field of the line in the /etc/passwd file were replaced with. The last field, login_shell, contains the absolute pathname for the user"s login shell. The command corresponding to the pathname specified in this field is executed by the system when the user logs on. Back-to-back colons mean that the field value is missing, which is sometimes done with the user_info field. In aix user account is created using smitty and/or command line. This process is influenced by contents of files located in directories /etc, /etc/security and /usr/lib/security. The /usr/lib/security/mkuser. default defines the basics defaults like group membership, home directory and shell. If you do not supply this information during user creation, it will be resolved using the contents of this file. /usr/lib/security/mkuser. sys sets attributes of user home directory and the contents of its startup script (~/. profile in the case of ksh/sh).