--- Alastair Duncan
Its a syntax problem - usermod requires the login name after the group
for i in $(cat ./newusers); do usermod -G students $i; done
this works fine
This is a classic case of me not reading the man page before pasting the code in, and for not remembering the syntax of the command -- I really do apologise lately for my lack of concentration -- it is unacceptbable. I am assuming from Andrew that the users do actually exist, and thus "usermod" is the correct program to use in this instance. Sorry, -- Thomas Adam ===== Thomas Adam "The Linux Weekend Mechanic" -- www.linuxgazette.com ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/