Issues with scripting users


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Issues with scripting users
# 1  
Old 07-13-2013
Issues with scripting users

Hello everyone, I am new to the forum community and need help with some scripts. First off let me put that this is “NOT” a homework assignment as I have been given this information where I work (IUPUI-UITS) and need help on this since I have no experience in this area. The only reason I am turning to forum posting is the person that ran the system is no longer available and now it is on me to run this so I am trying to find out whatever information I can. I just want to see what people may suggest about the code posted and good sites that may relate to what I am asking.


I have attached what I have been given so far and these are scripts that have been passed on to me. To tell the truth I have never really worked with scripts and have no clue how these even work (so any information or help that is dumbed down would be beneficial). The person that passed this on to me is no longer is available to be reached and they did not provide any documentation on this information.



I know the scripts are supposed to create new users to be used with mysql and phpmyadmin on a server. My questions are how do these even work and what do they do? Also if anyone has suggestions on how to make these more effective and secure feel free to try and help out or point me in the right direction. Another thing that I was wondering with these is how would I go about making changes to allow tracking of the accounts created and to create a script to remove all files associated with a specific user and have it stored in an archive. Thanks everyone and I appreciate you help.
# 2  
Old 07-13-2013
Just a few comments on the scripts:
create_accts.sh does not do what its name promises, it rather loops through all files in the directory given, prints each file's name and its contents, word by word. To put it better, it would do that, weren't there some errors in the script that make it unuseable. Please give a warm hearted thank you to your predecessor!
new.sh seems to set up a user account after checking if already present or not. The only flaw I see is that it encrypts the password before passing it to useradd which would encrypt it again, making the whole thing unuseable again.
undoscript.pl is the most useless compilation of perl commands I've ever seen.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issues with awk scripting for HTML tags

Below is the data file(results) contents- 13450708,13470474,US,15 24954,24845,JPN,44 14258992,14365059,US,4 24954,24845,IND,44 I want to send above data sets to email in a tabular format. For that I am using below awk script. Now the challenge I am facing here is - I want to make the... (2 Replies)
Discussion started by: Roseline
2 Replies

2. Homework & Coursework Questions

Having issues finishing up a few scripting problems. A little help would be awesome

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: 4. Recall that the env command provides a list of various environment variables available to you. Two of those... (5 Replies)
Discussion started by: megachuk
5 Replies

3. Shell Programming and Scripting

Scripting users issues...

Hello everyone, I am new to the forum community and need help with some scripts. I have attached what I have so far and these are scripts that have been passed on to me for a project that I have been assigned. To tell the truth I have never really worked with scripts and have no clue how these even... (3 Replies)
Discussion started by: wingzero89
3 Replies

4. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

5. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

6. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

7. Shell Programming and Scripting

bash/awk scripting help (creating OLD new users)

I need some help making this script... I guess I'm having trouble even interpretating what to even get started on... I need to create a script that will search a given directory (typically a user's home directory, but not necessarily) as provided on the command line and any sub-directors for... (2 Replies)
Discussion started by: Jukai
2 Replies

8. UNIX for Dummies Questions & Answers

scripting issues...

Hi guys, I am thanks in advance for any posts and for reading. I am trying to run this script, under solaris: echo "****************************************" echo "The host is: " echo "****************************************" <<EOF find /etc/default -name login -exec ls -l {} \; find... (5 Replies)
Discussion started by: B14speedfreak
5 Replies

9. Shell Programming and Scripting

How to add users using Shell Scripting

I am on Fedora 4 and using VI. I need to add users from a text file. ANYONE? plz help me out here. I am already going bald, dont need anymore hair to fall out. Joshua (2 Replies)
Discussion started by: Neece29
2 Replies

10. Shell Programming and Scripting

Shell scripting issues

hi, I am stuck in a shell script where in i need to extract the specific users from \etc\passwd file. Once this is done, i need to assign Roles to these users which are different for different users. What could be the optimum solution. If i hard code the Roles values in a text file, how would i... (1 Reply)
Discussion started by: ashutosh101
1 Replies
Login or Register to Ask a Question