Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If cellarlight's advice works, then you need not read this.
I'm using SuSE 9, so it may be different.
However, I think that whereis should find newusers regardless of who you are logged as. When I ran that original whereis, I was not root.
I'm thinking that newusers is not installed on your system. That might be because you used a very basic install, or perhaps newusers is called something different on newer SuSEs. It's possible that you might not have manpages installed, but the command should still be there.
The description of newusers on my system is:
> whatis newusers
newusers (8) - update and create new users in batch
I have looked in all of these directories and couldn't find newusers
whatis newusers doesnt return an answer
whereis newusers returns "newusers:"
I've gone thru man -k etc like I have been advised but have been unable to find anything relevant that may work
In short, I need a way of adding users on batch to the system, this will be a crontab style job. I figured that having the usernames, passwords etc in a text file, and then calling an expect script that would log in as root, add them all using "newusers" would be the most appropriate way...
'newuser' does not exist on 9.1 Pro.
So it may be missing from that and later versions. If it is missing, I find it unusual that it would not have had a replacement.
Unless someone has a more definitive answer, you may need to create a script and process the items one-by-one with useradd. The man page will have some details. I think you can easily practice by combining that with userdel.
Some distributions are set to disallow remote logins by root, but I haven't checked that on SuSE ... cheers, makyo