You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update security.md
I was going using the documentation myself and noticed some of the commands didn't have the intended effect, you'll see why.
* Update security.md
* Update security.md
Copy file name to clipboardExpand all lines: configuration/security.md
+13-7
Original file line number
Diff line number
Diff line change
@@ -40,21 +40,27 @@ You will be prompted to create a password for the new user.
40
40
41
41
The new user will have a home directory at `/home/alice/`.
42
42
43
-
To add them to the `sudo` group to give them `sudo` permissions:
43
+
To add them to the `sudo` group to give them `sudo` permissions as well as all of the other necessary permissions:
44
44
45
45
```bash
46
-
sudo adduser alice sudo
46
+
sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi alice
47
47
```
48
48
49
49
You can check your permissions are in place (i.e. you can use `sudo`) by trying the following:
50
50
51
51
```bash
52
-
sudo su
52
+
sudo su - alice
53
53
```
54
54
55
55
If it runs successfully, then you can be sure that the new account is in the `sudo` group.
56
56
57
-
Once you have confirmed that the new account is working, you can delete the `pi` user. Please note, though, that with the current Raspbian distribution, there are some aspects that require the `pi` user to be present. If you are unsure whether you will be affected by this, then leave the `pi` user in place. Work is being done to reduce the dependency on the `pi` user.
57
+
Once you have confirmed that the new account is working, you can delete the `pi` user. In order to do this, you'll need to first close its process with the following:
58
+
59
+
```bash
60
+
sudo pkill -u pi
61
+
```
62
+
63
+
Please note that with the current Raspbian distribution, there are some aspects that require the `pi` user to be present. If you are unsure whether you will be affected by this, then leave the `pi` user in place. Work is being done to reduce the dependency on the `pi` user.
0 commit comments