LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-03-2016, 09:20 AM   #1
manian
LQ Newbie
 
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
problem in installing any inbuilt programme


I recently installed bunsenlabs in my pc. I am able to login to the system. But when attempted to install chrome browser I was prompted to type sudo password. I do not know how to create account in sudo. Even when I download a software from firefox it does not get installed. Please guide me as to how to create sudo password.

Thanking in advance.


K.N.Subramanian
 
Old 12-03-2016, 09:59 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Which linux distro are you using?
The sudo password is setup during installation.
 
Old 12-03-2016, 10:05 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
The "sudo password" is often just your own password on many Ubuntu-type (and possibly others I've not seen) distributions.
To expand: During install you will be either asked for a root password and to retype that password then to create a user account with password or you will just be asked to create a user account with password. In the former case it may be either the root password or the user account password you are being asked for and in the latter case it is the user account password you are being asked for.
 
Old 12-03-2016, 03:55 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by manian View Post
I recently installed bunsenlabs in my pc. I am able to login to the system. But when attempted to install chrome browser I was prompted to type sudo password. I do not know how to create account in sudo. Even when I download a software from firefox it does not get installed. Please guide me as to how to create sudo password.

Thanking in advance.


K.N.Subramanian
bunsenlabs huh?

when it is asking you for a sudo password . you eiter created a sudo user upon install which would have been you, or because it needs root privlages it asks you for sudo password. Looks like you need more experience in Linux,

how to create a sudo user account. that would / could be you if you want it to be.


add user to the sudo group, most common groups are sudo, wheel. then modify the sudoers file to allow anyone belonging to that group root rights via that file.

first find out what group your system uses for sudo

Code:
cat /etc/group
look at output to see which one it is, sudo or wheel.
then add user to that group.
Code:
su
password
#usermod -aG wheel userName
now edit the sudoers file.
Code:
nano /etc/sudoers
now look for something like this in your file
Code:
##
## Runas alias specification
##

##
## User privilege specification
##
root ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command
#%wheel ALL=(ALL) ALL

## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command
# %sudo	ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'

## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
anon  ALL=(ALL) NOPASSWD: ALL
comment whichever group you want to use, picking either one, passwd or nopasswd.
save the file, exit nano.

logout , login . the sudo password is the users password.

this all has to be done in root, besides the fist command.

Last edited by BW-userx; 12-03-2016 at 04:03 PM.
 
  


Reply



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
Laptop inbuilt mic problem with Ubuntu 10.4 santaji Linux - Laptop and Netbook 2 03-26-2012 06:57 PM
[SOLVED] can any one help me in solving my problem with c programme badriinvenkat Linux Mint 20 08-13-2010 04:28 AM
Inbuilt CPU speaker problem sajipkuttan Linux - Newbie 5 02-26-2008 07:04 AM
installing inbuilt webcam in hp dv6314tx laptop in fedora 7 champaneriatushar Linux - Hardware 1 08-25-2007 09:06 AM
Problems installing and executing programme, lwbeng Linux - Software 5 07-24-2005 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 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
Open Source Consulting | Domain Registration