Linux User and Group Management
5 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

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 Like This

    Use Quizgecko on...
    Browser
    Browser