From 7c1880fc88fdca65aea41b5cf3d674f3e6f1cf1a Mon Sep 17 00:00:00 2001 From: martinsikwueze Date: Tue, 23 Jun 2026 21:02:20 +0100 Subject: [PATCH 1/2] FIx sudoers permission issue --- Documentation/chroot/arch_chroot.md | 2 +- Documentation/chroot/debian_chroot.md | 2 +- Documentation/proot/alpine_proot.md | 2 +- Documentation/proot/arch_proot.md | 4 ++-- Documentation/proot/debian_proot.md | 2 +- Documentation/proot/voidlinux.md | 2 +- README_old.md | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/chroot/arch_chroot.md b/Documentation/chroot/arch_chroot.md index a5c24c0..e5e9636 100644 --- a/Documentation/chroot/arch_chroot.md +++ b/Documentation/chroot/arch_chroot.md @@ -159,7 +159,7 @@ passwd droidmaster - Add the user to `sudoers` file so you can execute `sudo` commands ``` -nano /etc/sudoers +sudo visudo ``` ``` # Paste this diff --git a/Documentation/chroot/debian_chroot.md b/Documentation/chroot/debian_chroot.md index dda3bc4..6bce7b4 100644 --- a/Documentation/chroot/debian_chroot.md +++ b/Documentation/chroot/debian_chroot.md @@ -192,7 +192,7 @@ passwd droidmaster 9. Add the created user to sudoers file to have superuser privileges: ``` -nano /etc/sudoers +sudo visudo ``` Add this line: ``` diff --git a/Documentation/proot/alpine_proot.md b/Documentation/proot/alpine_proot.md index 7626a33..4ad07fe 100644 --- a/Documentation/proot/alpine_proot.md +++ b/Documentation/proot/alpine_proot.md @@ -45,7 +45,7 @@ apk add sudo nano dbus-x11 xfce4 * Create a new user and give it sudo privileges: ``` adduser droidmaster -nano /etc/sudoers +sudo visudo # Add the following line to the sudoers file droidmaster All=(ALL:ALL) ALL diff --git a/Documentation/proot/arch_proot.md b/Documentation/proot/arch_proot.md index a67b680..37da2fa 100644 --- a/Documentation/proot/arch_proot.md +++ b/Documentation/proot/arch_proot.md @@ -67,7 +67,7 @@ passwd droidmaster ``` * Give sudo permissions to the user ``` -nano /etc/sudoers +sudo visudo ``` ``` # Paste the following line @@ -107,7 +107,7 @@ passwd droidmaster ``` * Give sudo permissions to the user ``` -nano /etc/sudoers +sudo visudo ``` ``` # Paste the following line diff --git a/Documentation/proot/debian_proot.md b/Documentation/proot/debian_proot.md index 2fae72b..85c3984 100644 --- a/Documentation/proot/debian_proot.md +++ b/Documentation/proot/debian_proot.md @@ -60,7 +60,7 @@ adduser droidmaster ``` 3. Give the user sudo privileges ``` -nano /etc/sudoers +sudo visudo # Add the following line to the file droidmaster ALL=(ALL:ALL) ALL diff --git a/Documentation/proot/voidlinux.md b/Documentation/proot/voidlinux.md index 223a6cb..68f5c55 100644 --- a/Documentation/proot/voidlinux.md +++ b/Documentation/proot/voidlinux.md @@ -52,7 +52,7 @@ xbps-install lxde xfce4 xfce4-terminal useradd droidmaster passwd droidmaster -nano /etc/sudoers +sudo visudo # Add the following line to the sudoers file droidmaster All=(ALL:ALL) ALL diff --git a/README_old.md b/README_old.md index f82c783..ba1645e 100644 --- a/README_old.md +++ b/README_old.md @@ -98,7 +98,7 @@ adduser droidmaster ``` 3. Give the user sudo privileges ``` -nano /etc/sudoers +sudo visudo # Add the following line to the file droidmaster ALL=(ALL:ALL) ALL @@ -686,7 +686,7 @@ passwd droidmaster 10. Add the created user to sudoers file to have superuser privileges: ``` -nano /etc/sudoers +sudo visudo ``` Add this line: ``` From 997ff582de62f1c271dd44088e1a8056cc71d671 Mon Sep 17 00:00:00 2001 From: martinsikwueze Date: Tue, 23 Jun 2026 21:16:19 +0100 Subject: [PATCH 2/2] Remove sudo Since the user is already root --- Documentation/chroot/arch_chroot.md | 2 +- Documentation/chroot/debian_chroot.md | 2 +- Documentation/proot/alpine_proot.md | 2 +- Documentation/proot/arch_proot.md | 4 ++-- Documentation/proot/debian_proot.md | 2 +- Documentation/proot/voidlinux.md | 2 +- README_old.md | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/chroot/arch_chroot.md b/Documentation/chroot/arch_chroot.md index e5e9636..985a70a 100644 --- a/Documentation/chroot/arch_chroot.md +++ b/Documentation/chroot/arch_chroot.md @@ -159,7 +159,7 @@ passwd droidmaster - Add the user to `sudoers` file so you can execute `sudo` commands ``` -sudo visudo +visudo ``` ``` # Paste this diff --git a/Documentation/chroot/debian_chroot.md b/Documentation/chroot/debian_chroot.md index 6bce7b4..0e7c295 100644 --- a/Documentation/chroot/debian_chroot.md +++ b/Documentation/chroot/debian_chroot.md @@ -192,7 +192,7 @@ passwd droidmaster 9. Add the created user to sudoers file to have superuser privileges: ``` -sudo visudo +visudo ``` Add this line: ``` diff --git a/Documentation/proot/alpine_proot.md b/Documentation/proot/alpine_proot.md index 4ad07fe..a6af747 100644 --- a/Documentation/proot/alpine_proot.md +++ b/Documentation/proot/alpine_proot.md @@ -45,7 +45,7 @@ apk add sudo nano dbus-x11 xfce4 * Create a new user and give it sudo privileges: ``` adduser droidmaster -sudo visudo +visudo # Add the following line to the sudoers file droidmaster All=(ALL:ALL) ALL diff --git a/Documentation/proot/arch_proot.md b/Documentation/proot/arch_proot.md index 37da2fa..e20cff6 100644 --- a/Documentation/proot/arch_proot.md +++ b/Documentation/proot/arch_proot.md @@ -67,7 +67,7 @@ passwd droidmaster ``` * Give sudo permissions to the user ``` -sudo visudo +visudo ``` ``` # Paste the following line @@ -107,7 +107,7 @@ passwd droidmaster ``` * Give sudo permissions to the user ``` -sudo visudo +visudo ``` ``` # Paste the following line diff --git a/Documentation/proot/debian_proot.md b/Documentation/proot/debian_proot.md index 85c3984..97ef3a1 100644 --- a/Documentation/proot/debian_proot.md +++ b/Documentation/proot/debian_proot.md @@ -60,7 +60,7 @@ adduser droidmaster ``` 3. Give the user sudo privileges ``` -sudo visudo +visudo # Add the following line to the file droidmaster ALL=(ALL:ALL) ALL diff --git a/Documentation/proot/voidlinux.md b/Documentation/proot/voidlinux.md index 68f5c55..db574bc 100644 --- a/Documentation/proot/voidlinux.md +++ b/Documentation/proot/voidlinux.md @@ -52,7 +52,7 @@ xbps-install lxde xfce4 xfce4-terminal useradd droidmaster passwd droidmaster -sudo visudo +visudo # Add the following line to the sudoers file droidmaster All=(ALL:ALL) ALL diff --git a/README_old.md b/README_old.md index ba1645e..47daba6 100644 --- a/README_old.md +++ b/README_old.md @@ -98,7 +98,7 @@ adduser droidmaster ``` 3. Give the user sudo privileges ``` -sudo visudo +visudo # Add the following line to the file droidmaster ALL=(ALL:ALL) ALL @@ -686,7 +686,7 @@ passwd droidmaster 10. Add the created user to sudoers file to have superuser privileges: ``` -sudo visudo +visudo ``` Add this line: ```