- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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
- 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
- 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
- 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.