🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

Linux User and Group Management
5 Questions
0 Views

Linux User and Group Management

Created by
@AccessibleOwl

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What command is used to change the shell for user1 to /bin/nologin?

  • usermod -sh /bin/nologin user1
  • usermod -s /bin/bash user1
  • usermod -s /bin/nologin user1 (correct)
  • usermod --shell /bin/nologin user1
  • Which command is used to create a new group with GID 599?

  • groupadd -g 599 group1 (correct)
  • addgroup --gid 599 group1
  • groupmod -g 599 group1
  • groupadd -G 599 group1
  • Which tput command is used to clear the screen?

  • tput cls
  • tput erase
  • tput clrscr
  • tput clear (correct)
  • What is the command to add a secondary membership of user1 to groupname?

    <p>#usermod -G groupname username</p> Signup and view all the answers

    Which command is used to change the UID of an existing user to 599?

    <p>#usermod -u 599 user1</p> Signup and view all the answers

    More Quizzes Like This

    CS131 - Week 3 (Hard)
    19 questions

    CS131 - Week 3 (Hard)

    RefinedBowenite avatar
    RefinedBowenite
    Comandos GNU/Linux
    24 questions

    Comandos GNU/Linux

    FeistyAltoSaxophone avatar
    FeistyAltoSaxophone
    Linux系統管理:用戶管理
    16 questions
    Use Quizgecko on...
    Browser
    Browser