User brian changes the permissions for db_data this command:
chmod 4755 db_data
What is true?
A.
db_data now has permissions rwsr-xr-x and can be deleted only by user brian.
B.
db_data now has permissions rwsr-xr-x and, if executed, will inn with the permissions of user
brian.
C.
db_data now has permissions rwxr-sr-x and can be deleted only by members of the group
owning it.
D.
The permissions for db_data cannot be determined, because the permissions prior to the
change have not been specified.
E.
db_data must be an ordinary file, because special permissions cannot be set on a directory.
Explanation:
Use the chmod command to change permissions for a file or directory. You must be
the owner of a file or directory, or have root access, to change its permissions.
Here we do not know if brian owns db_data.
Note:
Permission
7full
6read and write
5read and execute
4read only
3write and execute
2write only
1execute only
0none
0 — no permission
1 –x execute
2 -w- write
3 -wx write and execute
4 r– read
5 r-x read and execute
6 rw- read and write
7 rwx read, write and execut
Solaris: Solaris Advanced User’s Guide
Answer C is incorrect, because 4000 set suid bit not sgid bit. See below:
ls -l dba_data
-rwsr-xr-x 1 root root 0 Nov 5 00:00 dba_data
We don’t know that brian is the owner of the file, so we answer D is correct.
User brian changes the permissions for db_data [mean he is the owner]
I tested other user in the group even if they have full permissions 777 cant delete this file
so I will go with A
b
A and E are not true.
C is also false answer as described.
chmod changes the permissions and the permissions can be determined regardless of who is the owner. So D is also wrong.
Correct answer is B.
B looks correct in this scenario. SETUID bit is set against the file.
B quietly correct for this scenario…
i think D correct because brain(user) first need permission then it will run this command,
or
if file is in his home directory then it will run this command successfully and in that case answer B is correct.
D
#ls -l
total 2053
-rwxr-xr-x 1 user staff 1048576 Oct 27 21:32 db_data
#chmod 4755 db_data
#chmod: WARNING: can’t change db_data
So it should tell the permission prior to the change.
B is correct.
B is the correct answer.
4755 == setuid == set user id permission for the user alone
B
with reel test A and B are true
Hi! All!
Passed Oracle Solaris 11 Administration 1Z0-821 exam with a good score of 90% (the passing line is 64% now)!
Got 70 questions in total, and questions were on:
1. Installing Oracle Solaris 11 using an Interactive Installer
2. Administering Services
3. Setting Up and Administering Data Storage
4. Administering Oracle Solaris Zones
5. Setting Up and Administering User Accounts
6. Controlling Access to Systems and Files
(New) 7. Managing the SYSLOG facilityManaging the CRON facility
(New) 8. Managing the SYSLOG facility
Pay close attention to the up 7 & 8 topics when preparing for the 1Z0-821 exam. Questions on those two topics are not available on this site.
And, you can refer to the most valid 1Z0-821 dumps (2017 version) here:
http://www.oraclebraindump.com/?s=1Z0-821
(Those questions are part of PassLeader 1Z0-821 dumps, recommend to get its full version 1Z0-821 dumps with VCE and PDF.)
Good Luck!
BTW, part of PassLeader 1Z0-822 dumps are also available here for your reference:
http://www.oraclebraindump.com/?s=1Z0-822
Best Regards!!!