User Tools

Site Tools


linux:sudo:sudoers:lecture_sudo_users

Linux - Sudo - Sudoers - Lecture Sudo Users

To lecture sudo users about password usage on the system, use the lecture parameter as below.

It has 3 possible values:

  • always – always lecture a user.
  • once – only lecture a user the first time they execute sudo command (this is used when no value is specified)
  • never – never lecture the user.
Defaults  lecture="always"

Additionally, a custom lecture file can be set with the lecture_file parameter.

Defaults  lecture_file="/path/to/file"
linux/sudo/sudoers/lecture_sudo_users.txt · Last modified: 2023/07/17 20:14 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki