Changing the gid and perms on a device