[xubuntu-users] Permissions ,log in as root
theuteck at gmail.com
theuteck at gmail.com
Sun Sep 30 16:13:37 UTC 2012
On 09/30/2012 04:54 AM, Garry at garryricketsonartworks.org wrote:
> Hello all,
> 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.
> 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).
> 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 ?
> Thanks from Garry
> From Garry
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.
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
Before you do that, you may want to try; bash -v ./setup.sh
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xubuntu-users