QUESTION 1 Perhaps you are an administrator of a Unix system with multiple users
ID: 3851014 • Letter: Q
Question
QUESTION 1
Perhaps you are an administrator of a Unix system with multiple users, and you log in as different users from time to time. Which command could you type to see your current user identity?
ident
me
pwd
id
QUESTION 2
In traditional Unix systems, which file contains the list of user accounts?
/var/db/users
/etc/accounts
/etc/group
/etc/passwd
QUESTION 3
When you type "ls -l" to view the details of the contents of your current working directory, one of the items has the following permissions:
drwxr-xr-x
What does the d at the beginning mean?
It is a directory
It is dynamically linked
.It has been deleted and is in the trashcan
It is a duplicate file
QUESTION 4
On traditional Unix systems, which file contains the list of user groups and their members?
/var/db/grps
/etc/ugps
/etc/shadow
/etc/group
QUESTION 5
What is the numeric or Octal version of the following permissions for a file? -rwx r-- r--
Or, put a different way: u=rwx,g=r,o=r
744
655
755
311
QUESTION 6
You want to change the permissions on a directory named public_files so that everyone else (the "other" category of users) has the ability to go into the directory and read files, but not write to the directory.
Which command would do that for you?
chmod o=rx public_files
chmod ugo+ public_files
chmod go=r public_files
chmod 777 public_files
QUESTION 7
You want to remove write permissions for everyone including yourself on a file named "my-homework.txt"
Which command would do that for you?
chmod a-w my-homework.txt
umask 755 my-homework.txt
chmod o-w my-homework.txt
rm -w my-homework.txt
QUESTION 8
What piece of information do you need to know in order to use the su command?
a.The username of one of the administrator accounts
The password for the root account
The password for the user you are trying to become
The index number for an administrative user in the user account database
QUESTION 9
A file named "homework" had the following permissions: -rwxr--r--
Which command could have been typed to change the permissions to this: --wx-w---x
chmod 465 homework
chmod 321 homework
chomd g-r homework
chmod a-r homework
QUESTION 10
Why migh you use sudo instead of su?
Because sudo always asks for confirmation before executing a command, while su does not.
Because sudo allows you to use your own password to quickly run a task with administrative privilges, you are less tempted to endanger your system by running as root all the time.
Because sudo can make you a sandwich.
Because su is old and usually not present on Unix.
a.ident
b.me
c.pwd
d.id
Explanation / Answer
QUESTION 1
Perhaps you are an administrator of a Unix system with multiple users, and you log in as different users from time to time. Which command could you type to see your current user identity?
ident
me
pwd
id
Ans:d
id command will help to find current user with UID and GID
==================================================================================
QUESTION 2
In traditional Unix systems, which file contains the list of user accounts?
/var/db/users
/etc/accounts
/etc/group
/etc/passwd
Ans:d.
/etc/passwd
It contains list of users and it is also used to changing password of user
=======================================================================================
QUESTION 3
When you type "ls -l" to view the details of the contents of your current working directory, one of the items has the following permissions:
drwxr-xr-x
What does the d at the beginning mean?
It is a directory
It is dynamically linked
.It has been deleted and is in the trashcan
It is a duplicate file
Ans:
It is a directory
drwxr-xr-x in this d stands for directoty and next is permission of directory
============================================================================
QUESTION 4
On traditional Unix systems, which file contains the list of user groups and their members?
/var/db/grps
/etc/ugps
/etc/shadow
/etc/group
Ans:
/etc/group
/etc/group stores the definitive list of the users groups and their members.
a.ident
b.me
c.pwd
d.id
Ans:d
id command will help to find current user with UID and GID
==================================================================================
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.