FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Xubuntu User

 
 
LinkBack Thread Tools
 
Old 09-30-2012, 09:54 AM
 
Default Permissions ,log in as root

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


http://www.garryricketsonartworks.org
--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 09-30-2012, 04:13 PM
 
Default Permissions ,log in as root

On 09/30/2012 04:54 AM,
Garry@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


http://www.garryricketsonartworks.org









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 root/sudo access.



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.



--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 

Thread Tools




All times are GMT. The time now is 08:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org