I can sudo to a use and it exists however when trying to sudo to that user in a shell script it says user does not exist [closed]
Clash Royale CLAN TAG#URR8PPP
I can sudo to a user and it exists. However, when trying to sudo to that user in a shell script it says user does not exist.
The command in the shell script is
su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
In this command as soon as it reaches the su siebel
it gives the error user does not exist
. However when I do su siebel
at command prompt I am able to su
to siebel. I can also sudo su siebel
with no password from command prompt.
What is going on here?
I have tried with different users and I get messages like, su: user xxxxx does not exist
. However the user is in /etc/passwd
and has a group in /etc/group
. I periodically also see su: command not found
and sudo: command not found
.
What is causing this issue?
WHen i tired sudo -u siebel it gives me this error: /config/setup.sh: line 6: sudo: command not found
but from command line I can sudo:
[root@ build]# sudo su siebel
OS and Patch Information:
System uptime:
11:32:54 up 22 days, 9:14, 1 user, load average: 0.54, 0.87, 0.78
This server was built using VRA
[siebel@ build]$
I only get the commands failing in the script from command line they work as expected.
I am executing shell script from command line as follows: ./build-all 17.0 registry.local.com:5000
sudo su
closed as unclear what you're asking by Ipor Sircer, Jeff Schaller, G-Man, RalfFriedl, Stephen Harris Dec 11 at 2:16
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.
|
show 6 more comments
I can sudo to a user and it exists. However, when trying to sudo to that user in a shell script it says user does not exist.
The command in the shell script is
su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
In this command as soon as it reaches the su siebel
it gives the error user does not exist
. However when I do su siebel
at command prompt I am able to su
to siebel. I can also sudo su siebel
with no password from command prompt.
What is going on here?
I have tried with different users and I get messages like, su: user xxxxx does not exist
. However the user is in /etc/passwd
and has a group in /etc/group
. I periodically also see su: command not found
and sudo: command not found
.
What is causing this issue?
WHen i tired sudo -u siebel it gives me this error: /config/setup.sh: line 6: sudo: command not found
but from command line I can sudo:
[root@ build]# sudo su siebel
OS and Patch Information:
System uptime:
11:32:54 up 22 days, 9:14, 1 user, load average: 0.54, 0.87, 0.78
This server was built using VRA
[siebel@ build]$
I only get the commands failing in the script from command line they work as expected.
I am executing shell script from command line as follows: ./build-all 17.0 registry.local.com:5000
sudo su
closed as unclear what you're asking by Ipor Sircer, Jeff Schaller, G-Man, RalfFriedl, Stephen Harris Dec 11 at 2:16
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.
2
Please provide the command in question. And some code context. Ideally a small working example that demonstrates the problem. Don't leave us to assume what you might have entered.
– roaima
Dec 10 at 19:58
3
You're referring to bothsudo
andsu
. Which one are you really using?
– roaima
Dec 10 at 20:00
Ok the command in the shell script is: su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
– edciting
Dec 10 at 20:34
In this command as soon as it hit the su to siebel user it gives the error user does not exist. However when I do su siebel at command prompt I am able to su to siebel. I can alos sudo su siebel with no password form command prompt
– edciting
Dec 10 at 20:35
If you are randomly getting "su: command not found" and "sudo: command not found" errors, it could just be that your computer is broken (e.g., your disk is failing).
– G-Man
Dec 10 at 20:49
|
show 6 more comments
I can sudo to a user and it exists. However, when trying to sudo to that user in a shell script it says user does not exist.
The command in the shell script is
su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
In this command as soon as it reaches the su siebel
it gives the error user does not exist
. However when I do su siebel
at command prompt I am able to su
to siebel. I can also sudo su siebel
with no password from command prompt.
What is going on here?
I have tried with different users and I get messages like, su: user xxxxx does not exist
. However the user is in /etc/passwd
and has a group in /etc/group
. I periodically also see su: command not found
and sudo: command not found
.
What is causing this issue?
WHen i tired sudo -u siebel it gives me this error: /config/setup.sh: line 6: sudo: command not found
but from command line I can sudo:
[root@ build]# sudo su siebel
OS and Patch Information:
System uptime:
11:32:54 up 22 days, 9:14, 1 user, load average: 0.54, 0.87, 0.78
This server was built using VRA
[siebel@ build]$
I only get the commands failing in the script from command line they work as expected.
I am executing shell script from command line as follows: ./build-all 17.0 registry.local.com:5000
sudo su
I can sudo to a user and it exists. However, when trying to sudo to that user in a shell script it says user does not exist.
The command in the shell script is
su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
In this command as soon as it reaches the su siebel
it gives the error user does not exist
. However when I do su siebel
at command prompt I am able to su
to siebel. I can also sudo su siebel
with no password from command prompt.
What is going on here?
I have tried with different users and I get messages like, su: user xxxxx does not exist
. However the user is in /etc/passwd
and has a group in /etc/group
. I periodically also see su: command not found
and sudo: command not found
.
What is causing this issue?
WHen i tired sudo -u siebel it gives me this error: /config/setup.sh: line 6: sudo: command not found
but from command line I can sudo:
[root@ build]# sudo su siebel
OS and Patch Information:
System uptime:
11:32:54 up 22 days, 9:14, 1 user, load average: 0.54, 0.87, 0.78
This server was built using VRA
[siebel@ build]$
I only get the commands failing in the script from command line they work as expected.
I am executing shell script from command line as follows: ./build-all 17.0 registry.local.com:5000
sudo su
sudo su
edited Dec 11 at 20:57
asked Dec 10 at 19:45
edciting
11
11
closed as unclear what you're asking by Ipor Sircer, Jeff Schaller, G-Man, RalfFriedl, Stephen Harris Dec 11 at 2:16
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.
closed as unclear what you're asking by Ipor Sircer, Jeff Schaller, G-Man, RalfFriedl, Stephen Harris Dec 11 at 2:16
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.
2
Please provide the command in question. And some code context. Ideally a small working example that demonstrates the problem. Don't leave us to assume what you might have entered.
– roaima
Dec 10 at 19:58
3
You're referring to bothsudo
andsu
. Which one are you really using?
– roaima
Dec 10 at 20:00
Ok the command in the shell script is: su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
– edciting
Dec 10 at 20:34
In this command as soon as it hit the su to siebel user it gives the error user does not exist. However when I do su siebel at command prompt I am able to su to siebel. I can alos sudo su siebel with no password form command prompt
– edciting
Dec 10 at 20:35
If you are randomly getting "su: command not found" and "sudo: command not found" errors, it could just be that your computer is broken (e.g., your disk is failing).
– G-Man
Dec 10 at 20:49
|
show 6 more comments
2
Please provide the command in question. And some code context. Ideally a small working example that demonstrates the problem. Don't leave us to assume what you might have entered.
– roaima
Dec 10 at 19:58
3
You're referring to bothsudo
andsu
. Which one are you really using?
– roaima
Dec 10 at 20:00
Ok the command in the shell script is: su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
– edciting
Dec 10 at 20:34
In this command as soon as it hit the su to siebel user it gives the error user does not exist. However when I do su siebel at command prompt I am able to su to siebel. I can alos sudo su siebel with no password form command prompt
– edciting
Dec 10 at 20:35
If you are randomly getting "su: command not found" and "sudo: command not found" errors, it could just be that your computer is broken (e.g., your disk is failing).
– G-Man
Dec 10 at 20:49
2
2
Please provide the command in question. And some code context. Ideally a small working example that demonstrates the problem. Don't leave us to assume what you might have entered.
– roaima
Dec 10 at 19:58
Please provide the command in question. And some code context. Ideally a small working example that demonstrates the problem. Don't leave us to assume what you might have entered.
– roaima
Dec 10 at 19:58
3
3
You're referring to both
sudo
and su
. Which one are you really using?– roaima
Dec 10 at 20:00
You're referring to both
sudo
and su
. Which one are you really using?– roaima
Dec 10 at 20:00
Ok the command in the shell script is: su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
– edciting
Dec 10 at 20:34
Ok the command in the shell script is: su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
– edciting
Dec 10 at 20:34
In this command as soon as it hit the su to siebel user it gives the error user does not exist. However when I do su siebel at command prompt I am able to su to siebel. I can alos sudo su siebel with no password form command prompt
– edciting
Dec 10 at 20:35
In this command as soon as it hit the su to siebel user it gives the error user does not exist. However when I do su siebel at command prompt I am able to su to siebel. I can alos sudo su siebel with no password form command prompt
– edciting
Dec 10 at 20:35
If you are randomly getting "su: command not found" and "sudo: command not found" errors, it could just be that your computer is broken (e.g., your disk is failing).
– G-Man
Dec 10 at 20:49
If you are randomly getting "su: command not found" and "sudo: command not found" errors, it could just be that your computer is broken (e.g., your disk is failing).
– G-Man
Dec 10 at 20:49
|
show 6 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
2
Please provide the command in question. And some code context. Ideally a small working example that demonstrates the problem. Don't leave us to assume what you might have entered.
– roaima
Dec 10 at 19:58
3
You're referring to both
sudo
andsu
. Which one are you really using?– roaima
Dec 10 at 20:00
Ok the command in the shell script is: su siebel -c "/siebel/Siebel_Enterprise_Server/Disk1/install/runInstaller.sh -silent -responseFile /config/sai.rsp -invPtrLoc /config/oraInst.loc -waitforcompletion -showProgress -oneclick"
– edciting
Dec 10 at 20:34
In this command as soon as it hit the su to siebel user it gives the error user does not exist. However when I do su siebel at command prompt I am able to su to siebel. I can alos sudo su siebel with no password form command prompt
– edciting
Dec 10 at 20:35
If you are randomly getting "su: command not found" and "sudo: command not found" errors, it could just be that your computer is broken (e.g., your disk is failing).
– G-Man
Dec 10 at 20:49