i am new to scripting i was wondering could you help me? ihave to create a script to set up accounts for new users im giving a new list of users names and a list of files in/hers home directory (folder). for each new user the home folder needs to be created if it does not already exsist. the files on the list need to be copied there and their permissions need to be set to read, write and excute for the user only.
it will need to have four run time arguements
1. a path to a file listing the new user names
2.a path to a file listing the files to be copied
3.a path to a folder where master copiesof the files are stored
4.a path to a folder where the new home folders will be created
if the file listing the new user names is not the path provided then it should display an error meassage and halts without further processing.
the script also checks the master copies of all the files and if any are missing then it displays an error message
the script checks if any of the user names already have home folders in the home folder path. if so the user is asked wheather to delete or keep the contents.
thanks

Reply With Quote