You must create a script using "bash" to allow the creation of multiple user accounts on the system. To do this, you will read a text file that contains the account name, password, group name and the shell used. The file is named [login to view URL] and has the following format:
Account_name:Password:Group:shell
Account_name:Password:Group:
We would like each user belonging to a common group to have their home directory in the /home/Group_name/Account_name directory.
Example:
if I have the user "stef" to create in the group "devel", then his home directory will be: /home/devel/stef
Also, your script should make use of at least one function that you have created.
Remember the useradd, groupadd, passwd commands
Attention, it is possible that the 4th column does not have shell, in which case, one will use the bash.
Little trick:
To automate password entry so you do not have to enter the password twice as the system does, use the chpasswd command. The syntax is as follows: chpasswd user: password
The user and password must follow the syntax as shown above chpasswd must receive the data from the keyboard. So, if I want to change the password of the user stone for "123qwe", I will make the following command:
echo "stone: 123qwe" | chpasswd
You must manage the possible cases of errors. (insufficient parameters, already created group, directory nonexistent ...)
hello I can create the shell script for you quick and easy. Please message me so we can talk more about this, also what OS is this for, different OS'ES can use different methods for managing accounts
Hello! I have good experience with shell scripting. I worked on something similar before. I can write you clean and efficient code meeting all your requirements.
Regards,
Taras
Good day! Nice to meet you.
Thank you for posting this proposal.
I am an expert just what you need for bash/sh/csh/etc with much years expirience.
Check my portfolio. I will be glad to work on with you.
Best Regards.
Ok, I can write that kind a bash script, but it's far a way from the popper way with LDAP integration to solve that problem. But maybe is your project just too small for LDAP integration. Feel free to ask anything on chat ;)
I read with interest your posting for System Administration. I believe I possess the necessary skills and experience you are seeking and would make a valuable addition to your company.
As my resume indicates, I possess more than five years of progressive experience in Linux and Unix Systems Administration field. My professional history includes positions such as Senior System Engineer at Vodafone as well as Oracle.