<div dir="ltr">thanks Hans.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">:-)~MIKE~(-:</div></div>
<br><div class="gmail_quote">On Mon, Mar 16, 2015 at 3:00 PM, der.hans <span dir="ltr"><<a href="mailto:PLUGd@lufthans.com" target="_blank">PLUGd@lufthans.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 16. Mär, 2015 schwätzte Michael Havens so:<br>
<br>
moin moin Mike,<br>
<br>
useradd has an option for adding multiple groups, but you probably need to<br>
specify to make a home directory and bash for the default shell.<br>
<br>
sudo useradd -m -s /bin/bash -Gaudio,video,input,dialout,<u></u>plugdev,tty pi<br>
<br>
Looks like adduser might be able to do it in one go if you use<br>
--add_extra_groups.<br>
<br>
Or, you can add the user, then use usermod to add the extra groups. This<br>
probably works best for you based on what you were doing.<br>
<br>
sudo adduser pi<br>
sudo usermod -a -Gaudio,video,input,dialout,<u></u>plugdev,tty pi<br>
<br>
In all cases, check syntax as I didn't verify the command lines I wrote up<br>
work as is :).<br>
<br>
ciao,<br>
<br>
der.hans<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I wrote something and was wondering if I could shorten it. I wrote:<br>
<br>
sudo adduser pi audio<br>
sudo adduser pi video<br>
sudo adduser pi input<br>
sudo adduser pi dialout<br>
sudo adduser pi plugdev<br>
sudo adduser pi tty<br>
<br>
And was thinking I could shorten it to:<br>
<br>
sudo adduser pi{ audio video input dialout plugdev tty}<br>
<br>
Would that work? If not how should I do it?<br>
:-)~MIKE~(-:<br>
<br>
</blockquote>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
# <a href="http://www.LuftHans.com/" target="_blank">http://www.LuftHans.com/</a> <a href="http://www.PhxLinux.org/" target="_blank">http://www.PhxLinux.org/</a><br>
# Whenever I hear anyone arguing for slavery, I feel a strong impulse to<br>
# see it tried on him personally. -- Abraham Lincoln</font></span><br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>