Skip to content

Commit 2c8e0f7

Browse files
authored
Merge pull request #4052 from masselmello/secure-your-pi-require-sudo-fix
Fixing file name in 'Secure your raspberry Pi' doc
2 parents 73972ca + 71e66f1 commit 2c8e0f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/asciidoc/computers/configuration/securing-the-raspberry-pi.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Here, we describe some common ways to improve the security of your Raspberry Pi.
66

77
Prefixing a command with `sudo` runs it as a superuser. By default, that does not need a password. However, you can make your Raspberry Pi more secure by requiring a password for all commands run with `sudo`.
88

9-
To force `sudo` to require a password, edit the `nopasswd` sudoers file for your user account, replacing the `<username>` placeholder in the file name with your username:
9+
To force `sudo` to require a password, edit the `010_pi-nopasswd` sudoers file:
1010

1111
[source,console]
1212
----
13-
$ sudo visudo /etc/sudoers.d/010_<username>-nopasswd
13+
$ sudo visudo /etc/sudoers.d/010_pi-nopasswd
1414
----
1515

1616
Change the `<username>` entry to the following, replacing `<username>` with your username:

0 commit comments

Comments
 (0)