LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo password (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-password-877965/)

tweetle_dee 04-30-2011 02:26 AM

sudo password
 
I just installed linux for the first time today. Linux Mint 10 x64. Trying to find out how to install google chrome, a thread mentioned its .deb file. GREAT! Now that I've downloaded the .deb file, I found out that I have to use the terminal.. so far so good.. i searched here in the forums how to write the code.. "dpkg -i filename.deb" it was wrong.. then i searched some more and it said to write "sudo" in front.. i did.. now its asking me for a sudo password.. but i can't find a guide on where to locate "admin" so i can add myself to the admin list so that it doesn't ask me for the sudo password..

Lil help here plz.

neonsignal 04-30-2011 02:31 AM

The sudo command is to allow the user to act as the admin user (typically called 'root'), so you put in your user password, not the admin one (at least in the default setup).

tweetle_dee 04-30-2011 02:36 AM

HAH! never mind.. i got it.. heres what i did..

went to the downloads folder
right click the item i want to install
selected "open with gdebi package installer"

then it brought me to another screen and all i hit was "install package".. all done (~.^)

alan_ri 04-30-2011 03:26 AM

I believe that Google Chrome is available from the package manager in Mint, meaning that you don't have to download .deb package for it and that is the recommended way to install packages. It boils down to that you need to learn about your distro.

znerom 04-30-2011 11:53 AM

The default in mint is that you can't sudo. To change this you need to add the acount to the "sudo" group which can be done by Menu -> Administration -> Users and Groups -> Manage Groups -> sudo -> Preferences -> Check user names you want to be able to sudo. This allows the user to sudo using the users password so it is a security (and uninformed user) risk on shared acounts. A different way to do this is to add the following lines to /etc/sudoers
Code:

Defaults        runaspw
ALL        ALL=(ALL) ALL

Which will allow any user to use sudo but will require them to have the password for the user they are sudoing into (default is root).

MTK358 04-30-2011 01:47 PM

@znerom

I'd recommend enabling sudo only for your account, not for all accounts (some programs create their own account). Like this:

Code:

your-username-goes-here ALL=(ALL) ALL

jefro 04-30-2011 05:15 PM

Wonder why chrome isn't in the package manager or software manager? Did you try doing that first?

Each disto tries to help you out. They offer a pretty easy way to install software. Since I am pretty sure I did load chrome from the manager I believe you should try it. It is the best way to install software.


All times are GMT -5. The time now is 04:58 AM.