$ for i in $(grep :boss /etc/group | cut -f1 -d:); do adduser wife $i; done ExplanationIn Ubuntu the first user (created during installation) has special privileges. The privileges come from the fact that the user was automatically added to various system groups. To make another user have the same privileges, all you need to do is add the user to the same groups.
|