Search Results

Search: Posts Made By: JONATHAN0919
14,282
Posted By rbatte1
Can you generate and exchange SSH keys? It will...
Can you generate and exchange SSH keys? It will make the whole thing much simpler. Eventually, you probably need a three step process:-
SFTP list all the relevant remote files
Determine the...
7,379
Posted By SriniShoo
#!/bin/bash clear add_user() { ## write...
#!/bin/bash
clear
add_user() {
## write your statements here
echo "Created user"
}
PS3="Enter your choice> "
select i in "Current Logins" "Last Logins" "Generate List of Users" "Create User...
7,379
Posted By rajubollas
Can you try this i am not root user to test this...
Can you try this i am not root user to test this on my environment
#!/bin/bash

clear
add_user() {
PS3="Enter your choice> "
select i in "Current Logins" "Last Logins" "Generate List of Users"...
7,379
Posted By SriniShoo
You need to mention user creation steps in the...
You need to mention user creation steps in the below function
add_user() {
## User creation steps / whatever you think are relevant
}
7,379
Posted By Scrutinizer
Your return key appears to malfunction ;) ...
Your return key appears to malfunction ;)

You should first define you own add_user function:
add_user() {
....
}

And then you can call that inside your case statement:
"Create User...
7,379
Posted By Scrutinizer
You could just add the code there, but a more...
You could just add the code there, but a more structured way would be if you turn you add_user part in to a function and call that in the case statement:

add_user() {
....
}

and later on...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy