Skip to content

Instantly share code, notes, and snippets.

# How to add user into group, and make changes take effect *without logout/login*: the *newgrp* command
#
# Do note that this method will only update the groups, in the current shell session (and its child-processes).
# New shell sessions will not have the groups updated - either use this method to update the groups in each shell
# session, or logout/login to make the group update permanent by default
#
# In short:
# $ sudo adduser user_x my_grp
# $ newgrp my_grp && newgrp
#
@dash17291
dash17291 / ddns
Created March 8, 2013 15:55 — forked from Elbandi/ddns
KEY=/etc/bind/Kize.domain.hu.+111+11111
SERVER=1.2.3.4
ZONE=domain.hu
HOSTNAME=ize
ddns_setup_set() {
if [ "$interface" != "eth0" ] && [ "$new_ip_address" = "$old_ip_address" ]; then
return
fi
(