Addgroup: command not found
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I'm following this tutorial to setup a new sftp user on a webserver running on debian, but when I get to step 3
sudo addgroup filetransfer
I can't go on because the terminal gives me the following error
Addgroup: command not found
I installed the adduser package with apt-get install
and the server says it's already installed. I also tried to use the command groupadd
but nothing changes.
What am I doing wrong?
Thanks everyone!
EDIT: the result of sudo bash -c 'echo $PATH'
as asked in the questions below
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
sudo path
 |Â
show 3 more comments
up vote
1
down vote
favorite
I'm following this tutorial to setup a new sftp user on a webserver running on debian, but when I get to step 3
sudo addgroup filetransfer
I can't go on because the terminal gives me the following error
Addgroup: command not found
I installed the adduser package with apt-get install
and the server says it's already installed. I also tried to use the command groupadd
but nothing changes.
What am I doing wrong?
Thanks everyone!
EDIT: the result of sudo bash -c 'echo $PATH'
as asked in the questions below
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
sudo path
What happens when you trysudo groupadd filetransfer
a second time? Thegroupadd
utility does not provide verbose output, but does when the group already exists.
â Lambert
Apr 5 '17 at 11:57
Please run the following command and include it and its result in your question.sudo bash -c 'echo $PATH'
â roaima
Apr 5 '17 at 11:57
Also the result of runningsudo grep -i secure_path /etc/sudoers
â roaima
Apr 5 '17 at 12:00
roaima, I added the result of the first command in the question, the second command didn't give any result. thanks!
â Ada
Apr 5 '17 at 12:05
Lambert, if I run it a second time it gives the same output: command not found.
â Ada
Apr 5 '17 at 12:05
 |Â
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm following this tutorial to setup a new sftp user on a webserver running on debian, but when I get to step 3
sudo addgroup filetransfer
I can't go on because the terminal gives me the following error
Addgroup: command not found
I installed the adduser package with apt-get install
and the server says it's already installed. I also tried to use the command groupadd
but nothing changes.
What am I doing wrong?
Thanks everyone!
EDIT: the result of sudo bash -c 'echo $PATH'
as asked in the questions below
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
sudo path
I'm following this tutorial to setup a new sftp user on a webserver running on debian, but when I get to step 3
sudo addgroup filetransfer
I can't go on because the terminal gives me the following error
Addgroup: command not found
I installed the adduser package with apt-get install
and the server says it's already installed. I also tried to use the command groupadd
but nothing changes.
What am I doing wrong?
Thanks everyone!
EDIT: the result of sudo bash -c 'echo $PATH'
as asked in the questions below
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
sudo path
sudo path
edited Apr 7 '17 at 21:57
Gilles
518k12410351564
518k12410351564
asked Apr 5 '17 at 11:49
Ada
814
814
What happens when you trysudo groupadd filetransfer
a second time? Thegroupadd
utility does not provide verbose output, but does when the group already exists.
â Lambert
Apr 5 '17 at 11:57
Please run the following command and include it and its result in your question.sudo bash -c 'echo $PATH'
â roaima
Apr 5 '17 at 11:57
Also the result of runningsudo grep -i secure_path /etc/sudoers
â roaima
Apr 5 '17 at 12:00
roaima, I added the result of the first command in the question, the second command didn't give any result. thanks!
â Ada
Apr 5 '17 at 12:05
Lambert, if I run it a second time it gives the same output: command not found.
â Ada
Apr 5 '17 at 12:05
 |Â
show 3 more comments
What happens when you trysudo groupadd filetransfer
a second time? Thegroupadd
utility does not provide verbose output, but does when the group already exists.
â Lambert
Apr 5 '17 at 11:57
Please run the following command and include it and its result in your question.sudo bash -c 'echo $PATH'
â roaima
Apr 5 '17 at 11:57
Also the result of runningsudo grep -i secure_path /etc/sudoers
â roaima
Apr 5 '17 at 12:00
roaima, I added the result of the first command in the question, the second command didn't give any result. thanks!
â Ada
Apr 5 '17 at 12:05
Lambert, if I run it a second time it gives the same output: command not found.
â Ada
Apr 5 '17 at 12:05
What happens when you try
sudo groupadd filetransfer
a second time? The groupadd
utility does not provide verbose output, but does when the group already exists.â Lambert
Apr 5 '17 at 11:57
What happens when you try
sudo groupadd filetransfer
a second time? The groupadd
utility does not provide verbose output, but does when the group already exists.â Lambert
Apr 5 '17 at 11:57
Please run the following command and include it and its result in your question.
sudo bash -c 'echo $PATH'
â roaima
Apr 5 '17 at 11:57
Please run the following command and include it and its result in your question.
sudo bash -c 'echo $PATH'
â roaima
Apr 5 '17 at 11:57
Also the result of running
sudo grep -i secure_path /etc/sudoers
â roaima
Apr 5 '17 at 12:00
Also the result of running
sudo grep -i secure_path /etc/sudoers
â roaima
Apr 5 '17 at 12:00
roaima, I added the result of the first command in the question, the second command didn't give any result. thanks!
â Ada
Apr 5 '17 at 12:05
roaima, I added the result of the first command in the question, the second command didn't give any result. thanks!
â Ada
Apr 5 '17 at 12:05
Lambert, if I run it a second time it gives the same output: command not found.
â Ada
Apr 5 '17 at 12:05
Lambert, if I run it a second time it gives the same output: command not found.
â Ada
Apr 5 '17 at 12:05
 |Â
show 3 more comments
2 Answers
2
active
oldest
votes
up vote
5
down vote
accepted
It looks like your environment doesn't include the /usr/sbin
directory that holds such system programs.
The quick fix should be to use /usr/sbin/adduser
instead of just adduser
.
Two alternative solutions are:
Change the
PATH
in.bashrc
and/or.bash_profile
so that/usr/sbin
is included in the list. For example, here is my setting:export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/games:/usr/games"
Edit the
sudoers
configuration (withsudo visudo -f /etc/sudoers.d/securepath
) and add this line to the empty file:# Extend the PATH for sudo commands
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Either would be sufficient.
@Ada which solution (of the three) did you use?
â roaima
Apr 5 '17 at 15:32
add a comment |Â
up vote
0
down vote
It solely depends on OS to OS, you are using ubuntu OS, u need to use groupadd instead of addgroup
New contributor
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
It looks like your environment doesn't include the /usr/sbin
directory that holds such system programs.
The quick fix should be to use /usr/sbin/adduser
instead of just adduser
.
Two alternative solutions are:
Change the
PATH
in.bashrc
and/or.bash_profile
so that/usr/sbin
is included in the list. For example, here is my setting:export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/games:/usr/games"
Edit the
sudoers
configuration (withsudo visudo -f /etc/sudoers.d/securepath
) and add this line to the empty file:# Extend the PATH for sudo commands
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Either would be sufficient.
@Ada which solution (of the three) did you use?
â roaima
Apr 5 '17 at 15:32
add a comment |Â
up vote
5
down vote
accepted
It looks like your environment doesn't include the /usr/sbin
directory that holds such system programs.
The quick fix should be to use /usr/sbin/adduser
instead of just adduser
.
Two alternative solutions are:
Change the
PATH
in.bashrc
and/or.bash_profile
so that/usr/sbin
is included in the list. For example, here is my setting:export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/games:/usr/games"
Edit the
sudoers
configuration (withsudo visudo -f /etc/sudoers.d/securepath
) and add this line to the empty file:# Extend the PATH for sudo commands
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Either would be sufficient.
@Ada which solution (of the three) did you use?
â roaima
Apr 5 '17 at 15:32
add a comment |Â
up vote
5
down vote
accepted
up vote
5
down vote
accepted
It looks like your environment doesn't include the /usr/sbin
directory that holds such system programs.
The quick fix should be to use /usr/sbin/adduser
instead of just adduser
.
Two alternative solutions are:
Change the
PATH
in.bashrc
and/or.bash_profile
so that/usr/sbin
is included in the list. For example, here is my setting:export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/games:/usr/games"
Edit the
sudoers
configuration (withsudo visudo -f /etc/sudoers.d/securepath
) and add this line to the empty file:# Extend the PATH for sudo commands
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Either would be sufficient.
It looks like your environment doesn't include the /usr/sbin
directory that holds such system programs.
The quick fix should be to use /usr/sbin/adduser
instead of just adduser
.
Two alternative solutions are:
Change the
PATH
in.bashrc
and/or.bash_profile
so that/usr/sbin
is included in the list. For example, here is my setting:export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/games:/usr/games"
Edit the
sudoers
configuration (withsudo visudo -f /etc/sudoers.d/securepath
) and add this line to the empty file:# Extend the PATH for sudo commands
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Either would be sufficient.
answered Apr 5 '17 at 12:11
roaima
41.7k550114
41.7k550114
@Ada which solution (of the three) did you use?
â roaima
Apr 5 '17 at 15:32
add a comment |Â
@Ada which solution (of the three) did you use?
â roaima
Apr 5 '17 at 15:32
@Ada which solution (of the three) did you use?
â roaima
Apr 5 '17 at 15:32
@Ada which solution (of the three) did you use?
â roaima
Apr 5 '17 at 15:32
add a comment |Â
up vote
0
down vote
It solely depends on OS to OS, you are using ubuntu OS, u need to use groupadd instead of addgroup
New contributor
add a comment |Â
up vote
0
down vote
It solely depends on OS to OS, you are using ubuntu OS, u need to use groupadd instead of addgroup
New contributor
add a comment |Â
up vote
0
down vote
up vote
0
down vote
It solely depends on OS to OS, you are using ubuntu OS, u need to use groupadd instead of addgroup
New contributor
It solely depends on OS to OS, you are using ubuntu OS, u need to use groupadd instead of addgroup
New contributor
New contributor
answered 10 mins ago
Vinod Kumar
11
11
New contributor
New contributor
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f356105%2faddgroup-command-not-found%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What happens when you try
sudo groupadd filetransfer
a second time? Thegroupadd
utility does not provide verbose output, but does when the group already exists.â Lambert
Apr 5 '17 at 11:57
Please run the following command and include it and its result in your question.
sudo bash -c 'echo $PATH'
â roaima
Apr 5 '17 at 11:57
Also the result of running
sudo grep -i secure_path /etc/sudoers
â roaima
Apr 5 '17 at 12:00
roaima, I added the result of the first command in the question, the second command didn't give any result. thanks!
â Ada
Apr 5 '17 at 12:05
Lambert, if I run it a second time it gives the same output: command not found.
â Ada
Apr 5 '17 at 12:05