ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using the newusers command to add multiple users to a linux machine. Only problem is when it creates the user it doesnt create a home directory or any of the folders i want it to, but it does create the accounts. Can anyone tell me what code i need so that is creates folders where i want them to, here is the code i got so far:
______________________________...
#!/bin/sh
for i in `cat /home/student/public_html/WebD...
do
I already have a the publi_html folder created in the skel directory but it still wont add the directories when the users are being added to the system, they have accounts but no folders or directories
let me explain more i a have a text file containing (example):
jimBob:vyxwoczw:::jimmy@hotmail.com:home/jimBob
this is one entry that newusers will add, but i cant get the newusers to run successfully now and it wont add anyone to the system
Last edited by hipchatterbug; 11-28-2006 at 08:31 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.