- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- problem with root
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-03-2022 11:43 AM - last edited on 05-03-2022 09:08 PM by support_s
05-03-2022 11:43 AM - last edited on 05-03-2022 09:08 PM by support_s
I got this problem:
etc $ sudo chmod root:root /etc/sudoers
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
And I remember running this command:
sudo chown -R cdrlinux83 /etc/hosts/
Is it related?
Solved! Go to Solution.
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-03-2022 02:54 PM
05-03-2022 02:54 PM
Solution> I got this problem:
On _what_?
uname -a
> etc $ sudo chmod root:root /etc/sudoers
"chmod" or "chown"?
> sudo: /etc/sudoers is owned by uid 1000, should be 0
That seems pretty clear. If you can't use "sudo" because the owner
is wrong on "/etc/sudoers", then you might need a real "root" login so
that you can set the proper owner(+group(+permissions)) on that file.
> sudo chown -R cdrlinux83 /etc/hosts/
>
> Is it related?
I don't see how it could be. But I also don't know why you'd want to
change the owner/group/permissions on "/etc/hosts". (Or "/etc/hosts/".
Is it a plain file or a directory?)
ls -ld /etc/hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-04-2022 08:44 AM - edited 05-04-2022 08:45 AM
05-04-2022 08:44 AM - edited 05-04-2022 08:45 AM
Re: problem with root
I agree with Steven.
The sudoers file will have to have its ownership changed by logging in as root. Otherwise, you won't be able to use sudo.
Also changing /etc/hosts to be owned by anyone other than root is not good. /etc/hosts should typically be owned by root and permissions shold be -r--r--r--.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-04-2022 11:12 AM
05-04-2022 11:12 AM
Re: problem with root
Thanks!!
the problem solved!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-04-2022 11:29 AM
05-04-2022 11:29 AM
Re: problem with root
> the problem solved!
Perhaps some future reader will be able to squeeze some useful
information from that nearly information-free report, but I doubt it.
"solved!" _how_?
> /etc/hosts should typically be owned by root and permissions shold be
> -r--r--r--.
"owned by root" sounds good to me, but, if so, then "-rw-r--r--"
should be just as good. It's not as if "-r--r--r--" would actually stop
user "root" from doing anything.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP