Linux User and Group Management

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

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 (A)</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 (D)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Use Quizgecko on...
Browser
Browser