LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-05-2019, 01:31 AM   #1
SeBa1
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Rep: Reputation: Disabled
su root - Authentification failed


Hello,
im new and im bad in English so sorry for translation mistakes :x

I have an Linux Server with Proxmox running. Yesterday i tried to install a Virtual Windows Machine and changed to download the iso file the directory Permissions.
I switched into the folder to download the file and stupidly executed the command 'chown -R seba /' to change the permission of the Directory i'm inside but the command done some stupid things :x

Since i disconnected i didn't get into the Proxmox Interface and cant switch into the Root account. SUDO Commands are not usable '-bash: sudo: command not found'

The User Seba where i still can get in should be inside the SUDO Group. Maybe it helps. I've redone the command upper with 'chown -R root /' But recieve only 'not permitted...'

The Directorys i've already checked are all owned by root.

I hope someone here can help me. On this Core are 3 Containers with GameServers running.

Last edited by SeBa1; 01-05-2019 at 01:32 AM.
 
Old 01-05-2019, 02:26 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
chown -R root / won’t help you, since there are many files and directories that should not be owned by root.

Your situation doesn’t make sense to me. You changed ownership of the entire filesystem, yet the directories you checked are owned by root? How this is related to not finding sudo is not clear to me either.

A bit more clarification, please:

What Linux distro is this?
Which directories have you checked?
What are the permissions and ownership of the top directories right under /?
sudo should be /usr/bin/sudo. Does it exist? If yes, what are its permissions, and what is the content of your PATH variable?
Have you tried running su instead of sudo?
 
Old 01-05-2019, 03:02 AM   #3
SeBa1
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
chown -R root / won’t help you, since there are many files and directories that should not be owned by root.

Your situation doesn’t make sense to me. You changed ownership of the entire filesystem, yet the directories you checked are owned by root? How this is related to not finding sudo is not clear to me either.

A bit more clarification, please:

What Linux distro is this?
Which directories have you checked?
What are the permissions and ownership of the top directories right under /?
sudo should be /usr/bin/sudo. Does it exist? If yes, what are its permissions, and what is the content of your PATH variable?
Have you tried running su instead of sudo?

Linux: Debian GNU/Linux 9 (stretch) - SMP PVE 4.15.18-27 (Wed, 10 Oct 2018)
Checked Directories: Bin, Boot, dev => all owned by root, some directories onwed by another group like /dev/kvm => group: disk
Permissions for alle Folders in TOP-Directories /: root:root
Sudo in /usr/bin/sudo doesn't exists.
'su root' to switch user doesnt work with the error 'Authentification failed' after entering a password. The password is right. Its saved in a DataTable and directly copied into the terminal. Still worked everytime.

Commands like 'su apt-get update' says: no user with apt-get


The Server can be started inside the rescue mode, if it helps.

Last edited by SeBa1; 01-05-2019 at 03:04 AM.
 
Old 01-05-2019, 03:29 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by SeBa1 View Post
Linux: Debian GNU/Linux 9 (stretch) - SMP PVE 4.15.18-27 (Wed, 10 Oct 2018)
Checked Directories: Bin, Boot, dev => all owned by root, some directories onwed by another group like /dev/kvm => group: disk
Permissions for alle Folders in TOP-Directories /: root:root
Sudo in /usr/bin/sudo doesn't exists.
'su root' to switch user doesnt work with the error 'Authentification failed' after entering a password. The password is right. Its saved in a DataTable and directly copied into the terminal. Still worked everytime.

Commands like 'su apt-get update' says: no user with apt-get
Your chown command did not change groups.

If /usr/bin/sudo doesn’t exist, search the entire filesystem for it.

I do have the feeling that other things than chown -R seba / happened if the root password doesn’t work and sudo has disappeared.

su apt-get wants to switch to a user named apt-get, which obviously doesn’t exist. This command reacts normally.
Quote:
The Server can be started inside the rescue mode, if it helps.
I don’t know what went wrong here, so I am at a loss to tell you what to do. Perhaps changing the root password and reinstalling sudo, but I fear there are other problems.

Last edited by berndbausch; 01-05-2019 at 03:31 AM.
 
Old 01-05-2019, 06:04 AM   #5
SeBa1
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
We solved the Problem. We startet the Server in the Rescue System.

Now we Mounted the md2 into mnt.
Here we changed the Folder Permissions and the Folder Owners to root.
We also changed the root password to the same again and restartet the server. It was tricky to change the Permissions back again because we also most became the Answer "Operation not permitted" but after many tries we still found a way inside the rescue to repair it. After a successfull restart all Systems are running again.

Thanks for your try and sorry for losing your options to answer :x

Switch state to solved.
 
  


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
authentification failed no machine barhoumti Linux - Software 1 03-09-2015 02:48 AM
Authentification as root fails in GDM shn_ Linux - Desktop 5 01-15-2007 01:47 PM
CUPS authentification failed Jajamd Linux - Software 0 08-05-2004 05:20 AM
Pam authentification failed, cannot start x Server Final Linux - Newbie 4 11-21-2003 08:26 PM
problems with dial-out authentification Dan Angelescu Linux - Networking 1 10-22-2001 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:36 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