Hi All,
I am working on a Solaris 10 machine and now working with a user creation script.
Hi All,
I have one shell script and like to convert into GUI for user creation..Any way to convert shell script into php?
Please find the below for my script.
Code:
$ more user.sh
#!/bin/ksh
set -x
pwfile="/etc/passwd" shadowfile="/etc/shadow"
gfile="/etc/group"
######Want to check user account already exist###############
echo &qu
I came across this script a while back that i found. What i want to do is edit the script to create a default web page in /var/www/html when a new user is added through the script. What the script does now is adds a user and sets a password for the user.
What possible way (either through a combination of python or c or some other language) could i add to the shell script to do this?
hello folks, i have this shell script, just messing around with shell scripts for fun. how would i edit this file so that if the username is wrong it will display the proper message "sorry wrong username exiting in 5 seconds" and then wait 5 seconds and apply the exit command? Im just not sure how to add it properly into the else field.
how to write a shell script for useradd ?
My problem with shell script is that it is not prompting for password.
"passwd $username" is not working. Please help me if anyone could.
Regards,
Hi All,
Currently our application is running on the server having AIX 5.3 OS.
What we intend to do is to run a shell script owned by another user and needs to be run as that particular user.
I was trying to create a shell script using the su command before running the actual script (which will be executed from the new script). The su command always prompt for a password.
I have done some searching for this topic and find some things that are similar; however i really don't know enough about scriping to pull together what i need.
What i need is a small script to take a username and password from the command line, create a new user, with alternate shell, add an additional group then copy some files around.
for example:
# newuser username password
create
By finger tim on the server, I learned that my default shell is some script /usr/local/bin/bash-wrapper whose content is:
#!/bin/bash
USERNAME=`whoami`
if !
Hello All,
I am writing an Expect Script to execute some commands over ssh then exit the script.
The script works just fine if I automate everything and assuming the correct password was entered.
So this Expect Script gets executed from a Bash script...