Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Feisty Upgrade, USB issues and other oddities



On 04/04/07, Arwyn Hainsworth <arwyn@example.com> wrote:

Um no, it isn't the right command. useradd creates users, use usermod to
modify them. Also the command 'groups' will show what groups you are in. So
to add yourself to plugdev you would need to do:
#:  user="dave";sudo usermod -G `groups |sed "s/^$user //;s/ /,/g"` $user

I think you're missing a ",plugdev" on the end there, aren't you? And why set $user manually, when the shell sets $USER for you? This command should read:

sudo usermod -G `groups |sed "s/^$USER //;s/ /,/g"`",plugdev" $USER

-Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links