- 713
- 234
- NAS
- DS918+
- Operating system
- macOS
- Mobile operating system
- iOS
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...
hosts
is owned by user and group root
with permissions -rw-r—r— (that’s 644 decimal for binary 110,100,100 for owner, group, others). This is mine on DSM 7.2.2:$ ls -al /etc/hosts
-rw-r--r-- 1 root root 157 Sep 13 2021 /etc/hosts
hosts.default
, with the same permissions.sudo cp /etc/hosts /etc/hosts.default
sudo chmod 644 /etc/hosts.default
hosts
in situ using a command line editor utility (I still prefer vi
but it’s a bit of a learning curve). You could, as already said, make a copy to a file system location that is editable using the DSM Test Editor. You also will have to change it’s permissions so your non-root user can work on it. This will make a copy in fredbert’s DSM /home and make the file read+writeable by any user, provided they can access the user’s /home (which they mostly should not be able to do). The chown
command could be used to change owner and group instead.sudo /etc/hosts /volume1/homes/fredbert/hosts
sudo chmod 666 /volume1/homes/fredbert/hosts
sudo chmod 644 /volume1/homes/fredbert/hosts
sudo cp /volume1/homes/fredbert/hosts /etc/hosts
hosts.default
in case of any problems. Then to tidy up, delete the working file in /homesudo rm /volume1/homes/fredbert/hosts
<command> --help
to get information on the command. That's instead of the more usual man <command>
. I'm sure I saw that they are using BB.We use essential cookies to make this site work, and optional cookies to enhance your experience.