LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-08-2022, 10:23 AM   #16
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102

Quote:
Originally Posted by handshake92 View Post
Where did I go wrong? Kindly advise.Thanks for helping.
Where you went wrong is that you are not reading the replies to your post. As others have told you (See post #12) Debian doesn't include /user/sbin in a regular user's path when running su. You need to run 'su - ' (without the quotes), so that root's env paths are enforced.

Switch to root using su - and then run the commands.
 
Old 04-08-2022, 12:42 PM   #17
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Also, as the name suggests, visudo is owned by sudo - no sudo, no visudo.
 
Old 04-09-2022, 11:49 AM   #18
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Quote:
Originally Posted by frankbell View Post
Unless something has changed recently, Debian does not come with sudo configured for use.
When you install debian, if you assign a password for root, then it won't configure sudo. If you don't create password for root, then it will configure sudo for you.

https://imgur.com/mVY8thC
 
Old 04-10-2022, 01:23 AM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by enigma9o7 View Post
When you install debian, if you assign a password for root, then it won't configure sudo. If you don't create password for root, then it will configure sudo for you.

https://imgur.com/mVY8thC
As I said in post #7.
But thanks for the screenshot!
 
1 members found this post helpful.
Old 04-10-2022, 08:09 AM   #20
handshake92
Member
 
Registered: Mar 2022
Location: Asia
Distribution: Debian 11
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suramya View Post
Yup, it was very annoying till I got used to always running su - instead of plain su.



Try adding the user to the sudoers file:

Switch to root user and then:
  • Run 'visudo' (without the quotes)
  • Scroll down to the User Privilege section and add the following line:

Code:
handshake92 ALL=(ALL:ALL) ALL
Save and exit. You should now be able to sudo
>>>>>>>> Thanks to everyone who is kind to help out, the recent tip from "suramya" may have help me to correct the problem.
Now I am able to root it. No more "authentication failure" or "not in the sudoer list".
Another pleasant surprise is now my Debian desktop -Grub boot loader is able to detect my Window 10 partition and able to boot to windows.
Thanks to everyone and kindly treat this topic as settled
 
Old 04-10-2022, 07:38 PM   #21
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
You get to mark it solved. See my sig for how.
 
  


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
LXer: How to Create Sudo User and Change Sudo Password Timeout in Ubuntu LXer Syndicated Linux News 0 04-26-2021 03:46 PM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
[SOLVED] sudo password different from non-sudo password edrom Linux - Newbie 2 04-20-2012 03:00 PM
"X11 connection rejected because of wrong authentication." and sudo DennisC31 AIX 1 08-24-2011 09:27 AM
SuSE93 Root password rejected from normal user mode (No Sudo, No YaST) Peacepunk SUSE / openSUSE 2 02-11-2007 06:34 PM

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

All times are GMT -5. The time now is 05:54 AM.

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