Modify /etc/group without restarting

SWEEEEEET
Recently found nice thing, look:

sudo sed -i '/vboxusers/s/$/kaldown/g' /etc/group && exec su -l kaldown

1 part: will modify /etc/group by adding $USER in the
2 part: occasionally will ‘refresh’ shell without restarting

thanks to Source

Actually it’s for linux-based systems, because for *NIX it would be slightly different. a little bit more patience my friend :D

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s