Mailinglist Archive: opensuse-edu (72 mails)
| < Previous | Next > |
Re: [suse-linux-uk-schools] addins users to groups....... 500+
- From: Alastair Duncan <aduncan@xxxxxxxxxxxxxxxx>
- Date: Fri, 8 Aug 2003 08:49:12 +0000 (UTC)
- Message-id: <200308080950.22765.aduncan@xxxxxxxxxxxxxxxx>
On Friday 08 August 2003 09:23, Andrew Nix wrote:
> > Yes, I think that I am confusing the issue by a factor of X^Y. Unlike
> > Debian's 'useradd', SuSE doesn't offer the same functionality.
> > Therefore, still using the same command as you have been using, change
> > "useradd" for "usermod" and then try it.
>
> I changed the it to usermod. But I get the reply user Students doesnt
> exsist. Below is the exact command issued. Is there something wrong with
> it? Or is theresomething else i need to add to it?
>
> for i in $(cat ./KS3_20023_PUPILS.csv | awk -F, '{print $1}'); do usermod
> $1 -G @Students; done
>
> I also tried it with a text file and the command is this:
>
> for i in $(cat ./Group\ Adding); do usermod $i -G Students; done
I get the same error message with the above code. However, it does work fine
on SuSE8.2 if you use useradd instead of usermod :-)
for i in $(cat ./newusers); do useradd $i -G students; done
Alastair
>
> But each time I get the same response. Any idea anyone?
> Cheers
>
> --
> Andrew Nix
>
> St Pauls Catholic High School
> Firbank Road
> Newall Green
> Wythenshawe
> Manchester
> M23 2YS
> tel: 0161 4375841 ext 168
> fax: 0161 4982030
> > Yes, I think that I am confusing the issue by a factor of X^Y. Unlike
> > Debian's 'useradd', SuSE doesn't offer the same functionality.
> > Therefore, still using the same command as you have been using, change
> > "useradd" for "usermod" and then try it.
>
> I changed the it to usermod. But I get the reply user Students doesnt
> exsist. Below is the exact command issued. Is there something wrong with
> it? Or is theresomething else i need to add to it?
>
> for i in $(cat ./KS3_20023_PUPILS.csv | awk -F, '{print $1}'); do usermod
> $1 -G @Students; done
>
> I also tried it with a text file and the command is this:
>
> for i in $(cat ./Group\ Adding); do usermod $i -G Students; done
I get the same error message with the above code. However, it does work fine
on SuSE8.2 if you use useradd instead of usermod :-)
for i in $(cat ./newusers); do useradd $i -G students; done
Alastair
>
> But each time I get the same response. Any idea anyone?
> Cheers
>
> --
> Andrew Nix
>
> St Pauls Catholic High School
> Firbank Road
> Newall Green
> Wythenshawe
> Manchester
> M23 2YS
> tel: 0161 4375841 ext 168
> fax: 0161 4982030
| < Previous | Next > |