<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 09/30/2012 04:54 AM,
<a class="moz-txt-link-abbreviated" href="mailto:Garry@garryricketsonartworks.org">Garry@garryricketsonartworks.org</a> wrote:<br>
</div>
<blockquote
cite="mid:20120930025419.B695B79A@resin05.mta.everyone.net"
type="cite">
<div style="font-family:Arial, sans-serif; font-size:10pt;"><font
size="2">Hello all,<br>
I am having trouble getting a .sh file to run, it is called
setup.sh, and should run ok, but dose not, I did set the
permission as executable, to no avail.<br>
So I decided maybe if I log in as root, I could run it, how
ever when I logged out, and then selected "other", for the
login, and in "other" I typed in root as the user name, and
got the password option, I used the same password, (the only
password I used when I installed xubuntu, alteranate
version),. Ok well I get "invalid" password, or password not
correct, ???, on the computer that I use Linux Mint, I do log
in as root, using the same password, as when I loggin as
me,..(admin).<br>
Ok, now if I use the terminal, and sudo (command), I get
prompted for the password, and it dose accept the password I
use ,... One thing that may work, is if I try to run the file
from the terminal, but I am not sure how to write the command,
corectly IE: sudo (???,run or?) setup.sh , hope this makes
sense, if any one tell me what the I should say, following
sudo ?<br>
Thanks from Garry<br>
</font><br>
From Garry
<p>
<a moz-do-not-send="true"
href="http://www.garryricketsonartworks.org">http://www.garryricketsonartworks.org
</a></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
By default, Ubuntu and it's variants do not set a password for root
which has the the affect of preventing anyone from logging in as
root. If you don't need root then don't enable it as there are
plenty of ways around this and thus prevents people from
brute-forcing the root password.<br>
<br>
To run a command with root privileges, you are correct that sudo is
the way to do it and then append the command; sudo ./setup.sh<br>
Before you do that, you may want to try; bash -v ./setup.sh<br>
that should spit out some information about why the script is
failing. I suspect it is trying to copy something to a location
that needs root/sudo access.<br>
<br>
Just to be curious, what is this script supposed to be installing?
Is it form a source you trust? I usually open a script from a
source I am not familiar with and read through it so see if it is
going to do something stupid.<br>
</body>
</html>