Forgot directory owner password

Hi

I forgot my directory owner password unfortunately :frowning:

I’ve seen a few about resetting password but they are going into MySQL but I’m looking for the one about the directory user, related to su - (username)
Any idea?
Thanks~

to reset a user’s password you need root access or a user with root privilege.

to reset password login to your terminal with a root user or SUDO privileged user

& then type the following command (I am assuming you are running a Debian based os such as Ubuntu)

sudo passwd username # the directory owner username

it will ask you to enter a new password

1 Like

oh thanks man that worked perfectly.

You are welcome!