|
|
#1 (permalink) |
|
TestMagic Guru
![]() ![]() ![]() ![]() Join Date: Jul 2003
Location: Brazil
Posts: 1,360
![]() |
This is an easy one... However, since it looked like a GRE CS questions, I wanted to share with you. I'll post the answer after a few posts.
6.23 On Unix, each file is associated with one user and one group. A limited access list is implemented by assigning a set of permissions for the owner of the file, those in the same group as the file but who are not the owner, and for everyone else. The operations controlled are read, write, and execute access. Assume the system may have up to 2^16 users and 2^8 groups. How many bits are needed to store each file's access data? |
|
|
|
|
|
#2 (permalink) |
|
Within my grasp!
![]() ![]() Join Date: Jun 2003
Location: Israel
Posts: 111
![]() |
Not sure what exactly access data contains... I assume it must contain the owner, and the operations for the owner, the group and the others.
I guess the group of the owner is stored elsewhere. So: 16 bits (Owner) + 9bits (3*3 for operations) total of 25bits. |
|
|
|
|
|
#3 (permalink) |
|
TestMagic Guru
![]() ![]() ![]() ![]() Join Date: Jul 2003
Location: Brazil
Posts: 1,360
![]() |
Answer:
The number of users and groups is irrelevant. Each set of three permissions requires three bits to indicate whether or not the permission is granted. There are three sets of permissions. Nine bits total are needed per file. |
|
|
|
|
|
#4 (permalink) |
|
TestMagic Guru-in-Training
![]() ![]() ![]() Join Date: Jan 2003
Location: India
Posts: 766
![]() |
i thought 9 bits but never though it wud b so easy, got confused in users.
rwx rwx rwx themselves denote permissions for owner,group and others. seems like i have to buy schaum's OS. but is UNix thr in GRE CS? |
|
|
|
|
|
#7 (permalink) |
|
TestMagic Guru
![]() ![]() ![]() ![]() Join Date: Jul 2003
Location: Brazil
Posts: 1,360
![]() |
I didn't say that users and groups are irrelevant. I said that the number of user/groups is irrelevant. That's a big difference. The question says "assigning a set of permissions for the owner of the file (just one can be the owner of course), those in the same group as the file but who are not the owner (everyone else in the group except me! doesn't matter how much in the group there are), and for everyone else.", which pretty much tells you that the number of them is irrelevant.
Wood |
|
|
|
Contact TestMagic TestMagic Forums Archive
Link to TestMagic
TestMagic Locations
Legal
Privacy
Partner Sites:
GMAT Sentence Correction
SAT 2400
Content Relevant URLs by vBSEO 3.0.0
Copyright © 1998-2008 TestMagic
Ad Management by RedTyger