LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2016, 07:22 AM   #1
GreenEars
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Rep: Reputation: Disabled
Linux /bin/sh permissions


Hello guys

I just started working with linux ( 2 months ) and I have a problem.

When I want to run a script ( /bin/sh OneAgent script dynatrace ) It says
" Please restart the installer as root to complete the installation "

I tried it with sudo and it didn't work. I disabled selinux and it still doesnt work.. I always get the same output. I'm also logged in as user root and did the chmod command +x. I use Mac OS X and I ssh into the node where i want to run the script from /tmp


I've been searching for a while now and cant find anything usefull.

Am I missing something or can you put me in the right direction ?

Thanks!

Last edited by GreenEars; 09-26-2016 at 07:42 AM.
 
Old 09-26-2016, 08:01 AM   #2
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

try

sh ./script.sh
 
Old 09-26-2016, 08:28 AM   #3
GreenEars
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by end View Post
try

sh ./script.sh
Hey thanks for your answer. I tried it but it doesnt work with a different shell either.
 
Old 09-26-2016, 08:31 AM   #4
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

try

sudo /bin/sh Dynatrace-Agent-Linux-1.0.0.sh

su -c '/bin/sh Dynatrace-Agent-Linux-1.0.0.sh'
 
1 members found this post helpful.
Old 09-26-2016, 08:36 AM   #5
GreenEars
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by end View Post
try

sudo /bin/sh Dynatrace-Agent-Linux-1.0.0.sh

su -c '/bin/sh Dynatrace-Agent-Linux-1.0.0.sh'

I already tried this , same output.
 
Old 09-26-2016, 08:41 AM   #6
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

chown root:root /script and run script again

on what os you installing
 
Old 09-26-2016, 08:48 AM   #7
GreenEars
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by end View Post
chown root:root /script and run script again

on what os you installing

Yes the owner is root. CentOS Linux release 7.2.1511 (Core)
 
Old 09-26-2016, 08:54 AM   #8
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

i have the same problem installing graphic driver script long time ago but "su -c" command solve to me. im sorry i didnt help you.

what would i do:

try download script again with wget command from centos.
try run it in /opt dir rater the /tmp.
and try run it directly on centos rater than ssh. (maybe is something with that)

i will try now installit on my centos7

Last edited by end; 09-26-2016 at 08:59 AM.
 
1 members found this post helpful.
Old 09-26-2016, 09:15 AM   #9
GreenEars
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by end View Post
i have the same problem installing graphic driver script long time ago but "su -c" command solve to me. im sorry i didnt help you.

what would i do:

try download script again with wget command from centos.
try run it in /opt dir rater the /tmp.
and try run it directly on centos rater than ssh. (maybe is something with that)

i will try now installit on my centos7
Thanks for the effort! I did what you said and it still gives me the same output.. What really strange is , when my friend does the same steps as me it works.. But he is using windows. Would that make any difference ? I would say not.
 
Old 09-26-2016, 09:18 AM   #10
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

did you try with this commands

wget -O Dynatrace-OneAgent-Linux-1.101.170.sh https://kdf67676.live.dynatrace.com/...Fv6LqZvt53DuVC this may be different when you log in on dintrace site

and

bin/sh Dynatrace-OneAgent-Linux-1.101.170.sh APP_LOG_CONTENT_ACCESS=1
 
Old 09-26-2016, 09:25 AM   #11
GreenEars
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by end View Post
did you try with this commands

wget -O Dynatrace-OneAgent-Linux-1.101.170.sh https://kdf67676.live.dynatrace.com/...Fv6LqZvt53DuVC this may be different when you log in on dintrace site

and

bin/sh Dynatrace-OneAgent-Linux-1.101.170.sh APP_LOG_CONTENT_ACCESS=1
Yes I used the same commands , from the dynatrace deploy agent site. I asked my question in the dynatrace help forum. I hope that they find it If so I will post it here so you know too!

Thanks anyway!
 
Old 09-27-2016, 07:17 AM   #12
GreenEars
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by end View Post
i have the same problem installing graphic driver script long time ago but "su -c" command solve to me. im sorry i didnt help you.

what would i do:

try download script again with wget command from centos.
try run it in /opt dir rater the /tmp.
and try run it directly on centos rater than ssh. (maybe is something with that)

i will try now installit on my centos7

Hey man! When I tried this yesterday it didnt work. Logging in directly into my server instead of using ssh. I tried it today and it works. I still don't understand why ssh is the problem.
 
Old 09-27-2016, 09:11 AM   #13
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

hey glad to help you.

i realy dont know way, is this aplication display in graphic than try login as ssh -XY user@server

XY is for run xserver over ssh.
 
Old 09-27-2016, 06:39 PM   #14
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,005
Blog Entries: 13

Rep: Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025
Quote:
/bin/sh OneAgent script dynatrace
Does the name of the script actually have spaces in it?

If so, try renaming the script to replace the spaces with hyphens or underscores. Otherwise you need to place and escape character before each space, like this:

Code:
/bin/sh OneAgent\ script\ dynatrace
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/bin & /usr/bind permissions JJX Linux - Security 2 05-18-2015 02:59 PM
/bin/sh - bad interperator, permissions denied perry Linux - Software 5 11-28-2003 10:14 AM
/usr/bin file permissions enlight1 Linux - Newbie 2 07-31-2003 08:16 PM
/usr/bin permissions in Mandrake 8.0 pr0digy Linux - Newbie 3 10-20-2002 06:06 PM
Can't change permissions on /bin/ls caldron Linux - General 1 06-20-2002 12:57 PM


All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration