(solved) sudo problem

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
DIONISIS_POLITIS

(solved) sudo problem

Post by DIONISIS_POLITIS »

Suddenly I faced a sudo problem. I get the message :

Code: Select all

sudo must be a setuid root
l read the TROUBLESHOOTING article and I did what it writes : chmod 4111 to the /etc/bin/sudo file, but it didn't work. the /etc/sudoers file includes the lines needed as %admin ALL=(ALL) ALL etc.

I run mint isadora. I 've done a lot of reading about the subject, but I could not find a solution
Any help?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JasonLG

Re: sudo problem

Post by JasonLG »

DIONISIS_POLITIS wrote:Suddenly I faced a sudo problem. I get the message :

Code: Select all

sudo must be a setuid root
l read the TROUBLESHOOTING article and I did what it writes : chmod 4111 to the /etc/bin/sudo file, but it didn't work. the /etc/sudoers file includes the lines needed as %admin ALL=(ALL) ALL etc.

I run mint isadora. I 've done a lot of reading about the subject, but I could not find a solution
Any help?
It's an old post but here's the 1st result when I Googled it.(http://www.google.com/search?8&q=sudo+m ... etuid+root) I've never had the problem myself but others seemed to be helped by the solutions presented in the thread.
http://ubuntuforums.org/showthread.php?t=219767
DrHu

Re: sudo problem

Post by DrHu »

http://ubuntuforums.org/showthread.php?t=219767

A little better explanation
http://www.psychocats.net/ubuntu/sudo
  • After you boot into recovery mode, you should be logged in as root. Or, if you set a root password in your installation, you'll be prompted for your root password. Either way--password or not--you'll end up logged in as root.
Ubuntu/Mint use sudo in preference to root accounts..
The problem for Ubuntu and Mint is that the root account is disabled with the default installation, so that sudo is the only way in for root or a limited root (the admin group account, created for the first installer/user)
DIONISIS_POLITIS

Re: sudo problem

Post by DIONISIS_POLITIS »

DrHu wrote:http://ubuntuforums.org/showthread.php?t=219767

A little better explanation
http://www.psychocats.net/ubuntu/sudo
  • After you boot into recovery mode, you should be logged in as root. Or, if you set a root password in your installation, you'll be prompted for your root password. Either way--password or not--you'll end up logged in as root.
Ubuntu/Mint use sudo in preference to root accounts..
The problem for Ubuntu and Mint is that the root account is disabled with the default installation, so that sudo is the only way in for root or a limited root (the admin group account, created for the first installer/user)
Thank you very much, looking to http://ubuntuforums.org/showthread.php?t=219767 I solved it!
I needed not to boot to recovery mode. Just

Code: Select all

chmod 4755 /usr/bin/sudo
and sudo came back! I was misleeded by the official sudo site!! there it says to do 4111 and not 4755.
Thanks again, I was impressed from yours instant reply!
JasonLG

Re: sudo problem

Post by JasonLG »

DrHu wrote:http://ubuntuforums.org/showthread.php?t=219767

The problem for Ubuntu and Mint is that the root account is disabled with the default installation, so that sudo is the only way in for root or a limited root (the admin group account, created for the first installer/user)
Not true. That is one way that Mint differs from Ubuntu. Mint actually creates a root account with the same password you set as the first user.
DrHu

Re: (solved) sudo problem

Post by DrHu »

JasonLG wrote:Not true. That is one way that Mint differs from Ubuntu. Mint actually creates a root account with the same password you set as the first user.
Which version of Mint, which desktop (maybe they differ)
--anytime I have checked the root account, it has been disabled on install, and even if I enabled the root account, I would probably change the password
  • Since the standard way of using Linux is for a root account to have a different password than a user account
    --so I would, if root was enabled by myself, be forgoing the convenience of having the same root and user password. Especially since, apart from hard drive management the sudo or gksudo kdsudo user account options for system administration are almost identical to root
Oh, I seem to remember that I could sun su -
  • In a terminal to get root access
    --but that could just be my memory playing tricks on me, not at the Linux workstation to check for sure..
JasonLG

Re: (solved) sudo problem

Post by JasonLG »

DrHu wrote:
JasonLG wrote:Not true. That is one way that Mint differs from Ubuntu. Mint actually creates a root account with the same password you set as the first user.
Which version of Mint, which desktop (maybe they differ)
--anytime I have checked the root account, it has been disabled on install, and even if I enabled the root account, I would probably change the password
  • Since the standard way of using Linux is for a root account to have a different password than a user account
    --so I would, if root was enabled by myself, be forgoing the convenience of having the same root and user password. Especially since, apart from hard drive management the sudo or gksudo kdsudo user account options for system administration are almost identical to root
Oh, I seem to remember that I could sun su -
  • In a terminal to get root access
    --but that could just be my memory playing tricks on me, not at the Linux workstation to check for sure..
In at least Mint 8,9 and 10 GNOME 32 and 64 bit versions root is enabled by default at install. You can test it by selecting other for user at login and entering root as your user name and entering the password of the first account you'll end up in a root desktop.
Locked

Return to “Software & Applications”