310 - 011
Leading the way in IT testing and certification tools, www.testking.com
- 1 -
310-011
System Administrator
Solaris 8.
Version 1.1
310 - 011
Leading the way in IT testing and certification tools, www.testking.com
- 2 -
Important Note
Please Read Carefully
Study Tips
This product will provide you questions and answers along with detailed explanations
carefully compiled and written by our experts. Try to understand the concepts behind the
questions instead of cramming the questions. Go through the entire document at least twice so
that you make sure that you are not missing anything.
Latest Version
We are constantly reviewing our products. New material is added and old material is revised.
Free updates are available for 90 days after the purchase. You should check for an update 3-4
days before the scheduled exam date.
Here is the procedure to get the latest version:
1. Go to www.testking.com
2. Click on Login (upper right corner)
3. Enter e-mail and password
4. The latest versions of all purchased products are downloadable from here. Just click
the links.
Note: If you have network connectivity problems it could be better to right-click on
the link and choose Save target as. You would then be able to watch the download
progress.
For most updates it enough just to print the new questions at the end of the new version, not
the whole document.
Feedback
Feedback on specific questions should be send to feedback@testking.com. You should state
1. Exam number and version.
2. Question number.
3. Order number and login ID.
We will answer your mail promptly.
Copyright
Each pdf file contains a unique serial number associated with your particular name and
contact information for security purposes. So if you find out that particular pdf file being
distributed by you. Testking will reserve the right to take legal action against you according to
the International Copyright Law. So don’t distribute this PDF file.
310 - 011
Leading the way in IT testing and certification tools, www.testking.com
- 3 -
Question No: 1
Given that permfile has its permissions set as follows:
Chmod 2666 permfile
Which three statements about the permfile permissions are true? (Choose three)
A. The sticky bit is set.
B. The file has the SUID bit set.
C. Mandatory locking is enabled.
D. The file is not executable by any user.
E. The associated group has read and write permissions.
F. The associated group has read, write, and execute permissions.
Answer: C,D, E.
Explanation: chmod 20#0 – if the # is 7,5,3, or 1 then Set group id on execution. If the #
is 6,4,2 then Mandatory locking is set. And 0666 means rw- for owner, group and
others. (Sticky bit is set by 1000. Set userid on execution is 4000)*
Question No: 2
Which single character is a Regular Expression denotes “zero or more occurrences of
the previous”.
Answer: *
Explanation: Three metacharacter –
1. ? - matches any single character.
2. * - matches zero or more (0-N) occurrences of any character.
3. [..] - represents a set of characters of which any one can match. Ex. [a-z], [A-Z], [0-9].
Question No: 3
Which command displays an Access Control List for a file?
A. 1sac1
B. getac1
C. aclget
D. faclget
E. getfacl
Answer: E – getfacl. setfacl is to set ACL list. Other commands do not exist.
Explanation: The following example sets the file owner permissions to
read/write/execute, file group permissions to read only, other permissions
310 - 011
Leading the way in IT testing and certification tools, www.testking.com
- 4 -
to none, and the ACL mask permissions to read on the ch2.doc file. In
addition, the user george is given read/write permissions; however, due to
the ACL mask, the effective permissions for george are read only.
$ setfacl -s u::7,g::4,o:0,m:4,u:george:7 ch2.doc
$ getfacl ch2.doc
# file: ch2.doc
# owner: nathan
# group: sysadmin
user::rwx
user:george:rwx #effective:r--
group::r-- #effective:r--
mask:r--
other:---
Question No: 4
Given:
$ 1s –1d telephone
drwxrwsrwx 2 lesley sp 512 Aug 3 17:28 telephone
Which command clears the SGID-bit causing this behavior?
A. chmod g-1 telephone
B. chmod g-s telephone
C. chmod 767 telephone
D. chmod 0777 telephone
E. chmod 0767 telephone
Answer: B
Explanation: chmod “+” is to add permissions; “-“ is to take away, and “=” is to assign
permissions.
Question No: 5
Your umask value is set to 022 and you create a file. Which set of permissions are
associated with this file?
A. rw-r--r--
B. rwxr--r--
C. ----w--w-
D. rw-rw-rw-
E. rwxrwxrwx
310 - 011
Leading the way in IT testing and certification tools, www.testking.com
- 5 -
Answer: A.
Explanation: Remember that the permissions for created files will always be the numeric
value 666 minus the umask value. (666 – 022 = 644)
Important Points: to make permanent change, change the umask value in user’s
.profile or .cshrc. If you just change it on the current shell session, the effect is only
temporary! (Next time, you log in, it will be lost!)
Question No: 6
Which command string displays the file and directory names that begin with the
characters a, b, or c and that end with number 1?
A. ls –d abc*1
B. ls [a-c*1]
C. ls –ld [abc]*1
D. ls {a,b,c}/*
Answer: C. Please refer to Question 2.
Question No: 7
Your current working directory is the /export/home_a/user1 directory. Which two
command strings put you into the /export/home_b/user20 directory? (Choose two)
A. cd ../user20
B. cd../home_b/user20
C. cd../../home_b/user20
D. cd /export/home_b/user20
Answer: C and D. C is correct, because it use relative path. D is correct, it use absolute
path. cd ../ once, will go up to home_a dir. another cd ../ will go up to export directory.
Explanation: the directory structure is like this:
/export----/home_a/user1 you are here (working dir- “pwd”)
----/home_b/user20
评论0