You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Need help sudoers file

Author (Read 9949 times)

0 Members and 2 Guests are viewing this topic.

Re: Need help sudoers file
« Reply #17 on: February 17, 2016, 08:49:59 PM »
 

rokytnji

  • Friganeer
  • Platinum Level Poster
  • **********
  • 1255
    Posts
  • Reputation: 139
    • View Profile

  • CPU: Intel Core2 Duo U9600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Mobile 4
Re read my post and you will see sudo -i is how I get root access in terminal in Linux Lite. Glad you got it sorted. I am busy with garage remodeling.
Hence why I am not on a computer during the day.
« Last Edit: February 17, 2016, 08:51:30 PM by rokytnji »
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
 

Re: Need help sudoers file
« Reply #16 on: February 17, 2016, 07:20:40 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
Thanks shaggytwodope & jerry & rokytnji  ;D
I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #15 on: February 17, 2016, 07:17:34 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
OK never mind

i did
Code: [Select]
sudo grub-mkconfig -o /boot/grub/grub.cfg

and it worked so i guess i don't need su. no point in going into root and messing stuff up  ;D

I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #14 on: February 17, 2016, 07:13:14 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
OK so i fixed it i think.

did sudo leafpad /etc/sudoers. this came up

I did however get this
Code: [Select]
(leafpad:3674): IBUS-WARNING **: The owner of /home/chicknfangz/.config/ibus/bus is not root!

Code: [Select]
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

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

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

I still can't go into root with su says su: Authentication failure
I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #13 on: February 17, 2016, 06:54:08 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
Indeed, the two lines that provide the error message. If you can share them we can fix it.

In general for security or other reasons, error messages like that one do not provide much details. This can not be debugged without more detailed info in alot of cases. The pkexec command uses a different means to access the stuff sudo can be used for. But it's not a replacement in the future.  So keep that in mind.
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Need help sudoers file
« Reply #12 on: February 17, 2016, 06:46:03 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
Understand this, the output of your original post means nothing to me. As I can not see any modifications you've made. Now if you use the command I posted and copy the lines mentioned in your original post and share them... (line 19 and 25) we can FIX them for you. Otherwise you can simply use the default shared.


With no modifcations this is the default sudoers file:
Code: [Select]
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

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

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo    ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


Using the command
Code: [Select]
pkexec visudo

Will allow you to edit the sudoers file properly, and you can resume using sudo after this is solved.


I thought you wanted the error output i posted. sorry i think i get you now.

you want me to do that command. And show you what i have in my sudoers so you see what i did wrong to help me fix it
I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #11 on: February 17, 2016, 06:30:51 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
« Last Edit: February 17, 2016, 06:41:36 PM by chicknfangz »
I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #10 on: February 17, 2016, 06:13:45 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x

I did share them above. If you can read?

...I never said i needed to touch grub. READE THE ABOVE!!


Try to be respectful to those offering their time to help you, that kind of response will put people off wanting to help you.
The tone of the Forum here is friendly, and we will jealously defend that image.
 

Re: Need help sudoers file
« Reply #9 on: February 17, 2016, 06:06:21 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
Understand this, the output of your original post means nothing to me. As I can not see any modifications you've made. Now if you use the command I posted and copy the lines mentioned in your original post and share them... (line 19 and 25) we can FIX them for you. Otherwise you can simply use the default shared.


With no modifcations this is the default sudoers file:
Code: [Select]
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

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

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo    ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


Using the command
Code: [Select]
pkexec visudo

Will allow you to edit the sudoers file properly, and you can resume using sudo after this is solved.
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Need help sudoers file
« Reply #8 on: February 17, 2016, 05:30:42 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
Carefully enter this command:

Code: [Select]
pkexec visudo
Enter your password, and your editor will open with the sudoers file. You can now do one of many things, use the default example posted above, or share the offending lines in the error message you had with us to figure out for you.


That aside, why do you need to touch grub? Show caution with that command.

Do not ever use any other means to modify sudoers, outside of the normal visudo command. It will notify you of errors before saving it, and even offer prompt to edit the file again.

 use the default example posted above, or share the offending lines in the error message you had with us to figure out for you.

I did share them above.

How do i use that example. It has hes username in it. So what do i do and how do i do this?


I was trying to go into SU root. But it said su: Authentication failure. And i was typing my password correctly. SO thats not an issue



« Last Edit: February 17, 2016, 06:47:48 PM by chicknfangz »
I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #7 on: February 17, 2016, 03:45:11 PM »
 

shaggytwodope

  • Forum Regular
  • ***
  • 222
    Posts
  • Reputation: 44
  • Linux Lite Member
    • View Profile
    • Shaggy's Blog

  • CPU: Intel i5 4440

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD Graphics 4600
Carefully enter this command:

Code: [Select]
pkexec visudo
Enter your password, and your editor will open with the sudoers file. You can now do one of many things, use the default example posted above, or share the offending lines in the error message you had with us to figure out for you.


That aside, why do you need to touch grub? Show caution with that command.

Do not ever use any other means to modify sudoers, outside of the normal visudo command. It will notify you of errors before saving it, and even offer prompt to edit the file again.
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
 

Re: Need help sudoers file
« Reply #6 on: February 17, 2016, 03:16:51 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
OK thank you Wirezfree. Thats what i will be doing  ;D
I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #5 on: February 17, 2016, 02:53:20 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi,

The forum is really, really good, the best in my opinion.
It relies on the goodwill and knowledge of folks on here.
You may have to wait a little for the right person to come along...
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Need help sudoers file
« Reply #4 on: February 17, 2016, 02:42:14 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
Waiting........ :(
I love my chicken and my popcorn and movies like i like Linux
 

Re: Need help sudoers file
« Reply #3 on: February 16, 2016, 11:44:26 PM »
 

chicknfangz

  • New to Forums
  • *
  • 30
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: i7 2600k 3.4ghz

  • MEMORY: 16Gb

  • VIDEO CARD: EVGA GTX 760
How do i do this  :(
I love my chicken and my popcorn and movies like i like Linux
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section