Remove SU password
This commit is contained in:
parent
598d19ba46
commit
f9da3edb77
2 changed files with 5 additions and 8 deletions
|
@ -45,14 +45,7 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu
|
||||||
|
|
||||||
- Désactive le mot de passe SU si nécessaire
|
- Désactive le mot de passe SU si nécessaire
|
||||||
```bash
|
```bash
|
||||||
# Édition du fichier qui gère ça
|
sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers
|
||||||
sudo visudo
|
|
||||||
|
|
||||||
# Trouve cette ligne :
|
|
||||||
%sudo ALL=(ALL) ALL
|
|
||||||
|
|
||||||
# Remplace la par celle-ci :
|
|
||||||
%sudo ALL=(ALL) NOPASSWD: ALL
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- Installe Spotify et le patch
|
- Installe Spotify et le patch
|
||||||
|
|
|
@ -67,6 +67,10 @@ then
|
||||||
# Create Z and Y mount folders for my WSL custom configuration
|
# Create Z and Y mount folders for my WSL custom configuration
|
||||||
sudo mkdir /mnt/z && sudo mkdir /mnt/y
|
sudo mkdir /mnt/z && sudo mkdir /mnt/y
|
||||||
|
|
||||||
|
# Remove SU password because anyways if someone have access to your computer he will have access to windows
|
||||||
|
# And WSL isn't a daily drive OS who you store sensible things, comment this line if you wanna keep your SU pass
|
||||||
|
sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Take care, by default the fish configuration is set for Ubuntu, you may need to uncomment"
|
echo "Take care, by default the fish configuration is set for Ubuntu, you may need to uncomment"
|
||||||
|
|
Reference in a new issue