What's new

Correct Permissions for Config Files?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

HarryMuscle

Senior Member
What are the correct permissions for configuration files like for example inadyn.conf.add? According to the wiki, scripts should have read and execute permissions for all users. Does that mean that configuration files should have read set for all users? Or should it be just for the owner? Also, who should the owner be? I'm assuming root but it's not mentioned for scripts or config files in the wiki.

Thanks,
Harry
 
The router doesn't really follow the traditional concept of different users and groups as it's designed as an embedded system where almost everything runs as the root user. So unless there's a specific requirement the owner is usually the root user. Generally speaking scripts should have 755 permissions and config files either 666 or 644.
 
The user should be your admin user which is basically root, but renamed to be your admin login username.
The permissions on all my /config/ files is 666 -rw-rw-rw-

Stuff in /scripts/ that gets executed is all set to 755 -rwxr-xr-x
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top