Quote:
Originally Posted by manian
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
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.
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.