If you want to edit linux files remotely on suiblime and editplus, you need to log in with a root user, right?

I log in with ubuntu, and I don"t have the permission to modify files in some directories, so I can"t modify some configuration files, but I can"t log in with root. Find a solution

Mar.18,2021

configure sublime with environment variables so that he can open it with the command line,
then sudo sublime filename opens the file to edit


root for security reasons, the user's password is random, you can't use root casually.
there are several ways to solve this problem:
1. To modify the permissions of the directory you want to modify, chmod-R xxxx, will downgrade the permissions of the directory you want to modify
2. Increase the permissions of your own operations, sudo

Menu