Re: Block URLs in browser? [SOLVED]
That's pretty close to what I suggested, except that by having a script called in /etc/bash.bashrc which identifies the user and copies the correct hosts.xblock file to hosts, and perhaps as a default copies hosts.block to hosts, then the only remaining thing to do would be to put in YOUR ~/.bashrc file the command to copy hosts.noblock to hosts. This to specifically avoid putting anything into the noarist .bashrc file, which he could edit.
Another option is to change the permissions of the noarist ~/.bashrc file so that only root has edit permission but all groups and world has execute permission. For noarist this might include adding /home/noarist/.bashrc in the sudouser file as executable by noarist.
That's pretty close to what I suggested, except that by having a script called in /etc/bash.bashrc which identifies the user and copies the correct hosts.xblock file to hosts, and perhaps as a default copies hosts.block to hosts, then the only remaining thing to do would be to put in YOUR ~/.bashrc file the command to copy hosts.noblock to hosts. This to specifically avoid putting anything into the noarist .bashrc file, which he could edit.
Another option is to change the permissions of the noarist ~/.bashrc file so that only root has edit permission but all groups and world has execute permission. For noarist this might include adding /home/noarist/.bashrc in the sudouser file as executable by noarist.
Comment