Unix - Users And Groups

10 Questions | Total Attempts: 231

SettingsSettingsSettings
Please wait...
Unix Quizzes & Trivia

Test your UNIX (Solaris) skills. Good Luck !


Questions and Answers
  • 1. 
    Which of the following statements are correct with relations to Oracle Solaris? (2 correct answers)
    • A. 

      SunOS 5.10 and Oracle Solaris 10 are the same

    • B. 

      Command uname –n shows the host name

    • C. 

      Command hostname does not show host name

    • D. 

      Command logins shows users logged in

  • 2. 
    Users must be created only in Bash shell.
    • A. 

      True

    • B. 

      False

  • 3. 
    Which of the following commands create a user named tom with home directory /export/home/tom and default Korn shell in Oracle Solaris10?
    • A. 

      Adduser –d /export/home/tom –m tom –s /bin/ksh

    • B. 

      Useradd –d /export/home/tom –m tom –s /bin/ksh

    • C. 

      Useradd –d /export/home/tom –m –s /bin/ksh tom

    • D. 

      Useradd tom

  • 4. 
    Which of the following commands can be used to add an existing user to a group?
    • A. 

      Groupmod

    • B. 

      Usermod

    • C. 

      Groupadd

    • D. 

      Useradd

  • 5. 
    Which of the following command lines will change the group owner of the file apple to uwinpro?
    • A. 

      Groupmod uwinpro apple

    • B. 

      Chown uwinpro apple

    • C. 

      Chgrp –g uwinpro apple

    • D. 

      Chgrp uwinpro apple

  • 6. 
    The command used to change the name of a group from uwinpro is,
    • A. 

      Groupname uwinpro newgrp

    • B. 

      Groupchange –n newgrp uwinpro

    • C. 

      Groupmod –n newgrp uwinpro

    • D. 

      Groupmod –n uwinpro newgrp

  • 7. 
    Which of the following commands will take the user to his or her home directory?
    • A. 

      Cd /export/home

    • B. 

      Cd (ENTER)

    • C. 

      Cd /home

    • D. 

      CD (ENTER)

  • 8. 
    The following commands assign a user tom to a secondary group wpgrp. (2 correct answers)
    • A. 

      Useradd –g wpgrp tom

    • B. 

      Useradd –d /export/home/tom –m –G wpgrp tom

    • C. 

      Usermod –g wpgrp tom

    • D. 

      Usermod –G wpgrp tom

  • 9. 
    Which of the following statements are correct? (3 correct answers)
    • A. 

      Groups are saved in a file /etc/group

    • B. 

      Only primary group members are recorded in /etc/group

    • C. 

      A user can be a member of 15 secondary groups

    • D. 

      Users get file system permissions from secondary group memberships

  • 10. 
    Which of the following are Oracle Solaris commands? (3 correct answers)
    • A. 

      Id

    • B. 

      Groups

    • C. 

      Chgrp

    • D. 

      Addusers