0

I am very new to Ubuntu.

But I have a problem with my files/folders in my wordpress VPS (Nginx, Ubuntu).

  • I check the permission of file.
  • The permission of folders is 755 => That's good.
  • The permission of Files is 644 = That's good.
  • But the owner ID is 0 => I must change it to 113.
  • And Group ID is 0 => I must change it to 117.

I can change one by one. But there are thousands of files and folders.

Is there anyway to do this in batch mode, using terminal, command line or something...???

Please help me!

Image: https://upanhtocdo.com/image/HGhDZ

Thomas Ward
  • 74,764

1 Answers1

0

It looks like you are using SFTP to edit the files. Login with your SFTP credentials to your server over ssh

Than you can use the chown option -R to handle files and directories recursive.

sudo chown -R user:goup folder

You can use the names of groups and owner or the UID and GID. I would recommend to use the names in order to avoid typos.

pa4080
  • 29,831
trietend
  • 190