shell script adduser [on hold] The 2019 Stack Overflow Developer Survey Results Are InShell Script Size 57MTPS Based Shell ScriptShell Script Help - Automatically assign users to groupBash function assign value to passed parameterProblem with adduser over SSH script depending on OS distroShell script not foundshell script giving errorShell script: split lineShell script renameadduser Firstname.Lastname
How do you keep chess fun when your opponent constantly beats you?
Short story: child made less intelligent and less attractive
Kerning for subscripts of sigma?
What information about me do stores get via my credit card?
Why not take a picture of a closer black hole?
Can a flute soloist sit?
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
Likelihood that a superbug or lethal virus could come from a landfill
writing variables above the numbers in tikz picture
How to notate time signature switching consistently every measure
Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?
I am an eight letter word. What am I?
How to support a colleague who finds meetings extremely tiring?
Why are there uneven bright areas in this photo of black hole?
How do I free up internal storage if I don't have any apps downloaded?
Why “相同意思的词” is called “同义词” instead of "同意词"?
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
Is bread bad for ducks?
Getting crown tickets for Statue of Liberty
Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?
Why can't devices on different VLANs, but on the same subnet, communicate?
The difference between dialogue marks
RequirePermission not working
shell script adduser [on hold]
The 2019 Stack Overflow Developer Survey Results Are InShell Script Size 57MTPS Based Shell ScriptShell Script Help - Automatically assign users to groupBash function assign value to passed parameterProblem with adduser over SSH script depending on OS distroShell script not foundshell script giving errorShell script: split lineShell script renameadduser Firstname.Lastname
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am unable to adapt use the adduser in the script below.
Does anyone have any suggestions for using the adduser in the script below?
useradd does not enable everything needed for remote access
#!/bin/bash
####
# This script automatically creates user accounts with random passwords.
#
# Author: Russ Sanderlin
# Date: 01/21/15
#
###
if [ $# -lt 1 ]; then
echo "Please supply a user name"
echo "Example: " $0 "jsmith"
exit
fi
# Declare local variables, generate random password.
newuser=$1
randompw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
# Create new user and assign random password.
useradd -m $newuser
#adduser $newuser
echo $newuser:$randompw | chpasswd
echo "Login:" $newuser "has been created with the following password:" $randompw
#mkdir /home/$newuser
echo "email:"
read emailuser
echo "Login:" $newuser". password:" $randompw | mail -v -s "mensagem" -r " " $emailuser
shell-script
put on hold as unclear what you're asking by Rui F Ribeiro, msp9011, nwildner, sourcejedi, teppic 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I am unable to adapt use the adduser in the script below.
Does anyone have any suggestions for using the adduser in the script below?
useradd does not enable everything needed for remote access
#!/bin/bash
####
# This script automatically creates user accounts with random passwords.
#
# Author: Russ Sanderlin
# Date: 01/21/15
#
###
if [ $# -lt 1 ]; then
echo "Please supply a user name"
echo "Example: " $0 "jsmith"
exit
fi
# Declare local variables, generate random password.
newuser=$1
randompw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
# Create new user and assign random password.
useradd -m $newuser
#adduser $newuser
echo $newuser:$randompw | chpasswd
echo "Login:" $newuser "has been created with the following password:" $randompw
#mkdir /home/$newuser
echo "email:"
read emailuser
echo "Login:" $newuser". password:" $randompw | mail -v -s "mensagem" -r " " $emailuser
shell-script
put on hold as unclear what you're asking by Rui F Ribeiro, msp9011, nwildner, sourcejedi, teppic 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Until know the question mentions emailing and shows a script for adding a user. What was already done and where can we assist with Unix enlightenment? I would advise editing and improving the question, it is not clear what is the purpose of the question
– Rui F Ribeiro
Apr 8 at 12:13
@Kusalananda useradd does not enable everything needed for remote access. I have already tried adding /home/user among other things that it does not automatically create as adduser, but I still have problems with full desktop remote access. If I can use the adduser I think it would solve this.
– Rafael
Apr 8 at 13:04
2
adduser is not about creating "users with remote access" per se and it is not yet clear what the question is about.
– Rui F Ribeiro
Apr 8 at 13:07
I'm trying to make a shell script that uses adduser and radompw
– Rafael
Apr 8 at 13:09
I think you're trying to write a shell script that creates user accounts with a randomly generated password, including some sort of unspecified remote access.
– roaima
Apr 8 at 13:14
add a comment |
I am unable to adapt use the adduser in the script below.
Does anyone have any suggestions for using the adduser in the script below?
useradd does not enable everything needed for remote access
#!/bin/bash
####
# This script automatically creates user accounts with random passwords.
#
# Author: Russ Sanderlin
# Date: 01/21/15
#
###
if [ $# -lt 1 ]; then
echo "Please supply a user name"
echo "Example: " $0 "jsmith"
exit
fi
# Declare local variables, generate random password.
newuser=$1
randompw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
# Create new user and assign random password.
useradd -m $newuser
#adduser $newuser
echo $newuser:$randompw | chpasswd
echo "Login:" $newuser "has been created with the following password:" $randompw
#mkdir /home/$newuser
echo "email:"
read emailuser
echo "Login:" $newuser". password:" $randompw | mail -v -s "mensagem" -r " " $emailuser
shell-script
I am unable to adapt use the adduser in the script below.
Does anyone have any suggestions for using the adduser in the script below?
useradd does not enable everything needed for remote access
#!/bin/bash
####
# This script automatically creates user accounts with random passwords.
#
# Author: Russ Sanderlin
# Date: 01/21/15
#
###
if [ $# -lt 1 ]; then
echo "Please supply a user name"
echo "Example: " $0 "jsmith"
exit
fi
# Declare local variables, generate random password.
newuser=$1
randompw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
# Create new user and assign random password.
useradd -m $newuser
#adduser $newuser
echo $newuser:$randompw | chpasswd
echo "Login:" $newuser "has been created with the following password:" $randompw
#mkdir /home/$newuser
echo "email:"
read emailuser
echo "Login:" $newuser". password:" $randompw | mail -v -s "mensagem" -r " " $emailuser
shell-script
shell-script
edited Apr 8 at 13:00
Rafael
asked Apr 8 at 12:08
RafaelRafael
12
12
put on hold as unclear what you're asking by Rui F Ribeiro, msp9011, nwildner, sourcejedi, teppic 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Rui F Ribeiro, msp9011, nwildner, sourcejedi, teppic 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Until know the question mentions emailing and shows a script for adding a user. What was already done and where can we assist with Unix enlightenment? I would advise editing and improving the question, it is not clear what is the purpose of the question
– Rui F Ribeiro
Apr 8 at 12:13
@Kusalananda useradd does not enable everything needed for remote access. I have already tried adding /home/user among other things that it does not automatically create as adduser, but I still have problems with full desktop remote access. If I can use the adduser I think it would solve this.
– Rafael
Apr 8 at 13:04
2
adduser is not about creating "users with remote access" per se and it is not yet clear what the question is about.
– Rui F Ribeiro
Apr 8 at 13:07
I'm trying to make a shell script that uses adduser and radompw
– Rafael
Apr 8 at 13:09
I think you're trying to write a shell script that creates user accounts with a randomly generated password, including some sort of unspecified remote access.
– roaima
Apr 8 at 13:14
add a comment |
Until know the question mentions emailing and shows a script for adding a user. What was already done and where can we assist with Unix enlightenment? I would advise editing and improving the question, it is not clear what is the purpose of the question
– Rui F Ribeiro
Apr 8 at 12:13
@Kusalananda useradd does not enable everything needed for remote access. I have already tried adding /home/user among other things that it does not automatically create as adduser, but I still have problems with full desktop remote access. If I can use the adduser I think it would solve this.
– Rafael
Apr 8 at 13:04
2
adduser is not about creating "users with remote access" per se and it is not yet clear what the question is about.
– Rui F Ribeiro
Apr 8 at 13:07
I'm trying to make a shell script that uses adduser and radompw
– Rafael
Apr 8 at 13:09
I think you're trying to write a shell script that creates user accounts with a randomly generated password, including some sort of unspecified remote access.
– roaima
Apr 8 at 13:14
Until know the question mentions emailing and shows a script for adding a user. What was already done and where can we assist with Unix enlightenment? I would advise editing and improving the question, it is not clear what is the purpose of the question
– Rui F Ribeiro
Apr 8 at 12:13
Until know the question mentions emailing and shows a script for adding a user. What was already done and where can we assist with Unix enlightenment? I would advise editing and improving the question, it is not clear what is the purpose of the question
– Rui F Ribeiro
Apr 8 at 12:13
@Kusalananda useradd does not enable everything needed for remote access. I have already tried adding /home/user among other things that it does not automatically create as adduser, but I still have problems with full desktop remote access. If I can use the adduser I think it would solve this.
– Rafael
Apr 8 at 13:04
@Kusalananda useradd does not enable everything needed for remote access. I have already tried adding /home/user among other things that it does not automatically create as adduser, but I still have problems with full desktop remote access. If I can use the adduser I think it would solve this.
– Rafael
Apr 8 at 13:04
2
2
adduser is not about creating "users with remote access" per se and it is not yet clear what the question is about.
– Rui F Ribeiro
Apr 8 at 13:07
adduser is not about creating "users with remote access" per se and it is not yet clear what the question is about.
– Rui F Ribeiro
Apr 8 at 13:07
I'm trying to make a shell script that uses adduser and radompw
– Rafael
Apr 8 at 13:09
I'm trying to make a shell script that uses adduser and radompw
– Rafael
Apr 8 at 13:09
I think you're trying to write a shell script that creates user accounts with a randomly generated password, including some sort of unspecified remote access.
– roaima
Apr 8 at 13:14
I think you're trying to write a shell script that creates user accounts with a randomly generated password, including some sort of unspecified remote access.
– roaima
Apr 8 at 13:14
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Until know the question mentions emailing and shows a script for adding a user. What was already done and where can we assist with Unix enlightenment? I would advise editing and improving the question, it is not clear what is the purpose of the question
– Rui F Ribeiro
Apr 8 at 12:13
@Kusalananda useradd does not enable everything needed for remote access. I have already tried adding /home/user among other things that it does not automatically create as adduser, but I still have problems with full desktop remote access. If I can use the adduser I think it would solve this.
– Rafael
Apr 8 at 13:04
2
adduser is not about creating "users with remote access" per se and it is not yet clear what the question is about.
– Rui F Ribeiro
Apr 8 at 13:07
I'm trying to make a shell script that uses adduser and radompw
– Rafael
Apr 8 at 13:09
I think you're trying to write a shell script that creates user accounts with a randomly generated password, including some sort of unspecified remote access.
– roaima
Apr 8 at 13:14