NetNumber interview question

Was asked to write fairly simple Unix-like permission program in Java. Permissions on Unix-like systems are managed in three distinct scopes or classes. These scopes are known as user, group, and others. Program was already in place but I had to introduce some changes in order to make it work.