This question is an exact duplicate of:
I've los the access to my root login so I've changed my password from
grub. I still cant logg on and I need to use the
chown -R command that I cant type in terminal.
I have access to my server through WINSCP where I can browse through my files.
Can i make a script that will run
sudo chown -R root /home/ngomm
and paste under the already executable scripts in
If yes what type of script will run this command and what script is already executable with I could paste my script under it.