HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to get the sudo file back.
Operating System - HP-UX
1827807
Members
2998
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-05-2011 08:34 AM
02-05-2011 08:34 AM
how to get the sudo file back.
HI,
Unfotunetely /usr/local/bin/sudo ,sudoedit permissions has changed. Due to this we are unable to get the "sudo" permissions. we have the 3 weeks o/s tape backup. we are tried to restore the file, same location. but it throughing the error "permissions denied".
I request to all , please give the solution , regarding this issue.
Unfotunetely /usr/local/bin/sudo ,sudoedit permissions has changed. Due to this we are unable to get the "sudo" permissions. we have the 3 weeks o/s tape backup. we are tried to restore the file, same location. but it throughing the error "permissions denied".
I request to all , please give the solution , regarding this issue.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2011 08:42 AM
02-05-2011 08:42 AM
Re: how to get the sudo file back.
What are the current permissions and ownership of the two files? It has to have the SUID bit set and be owned by root.
If you restore it off of the tape as root, that should have fixed it.
Unless you use pax(1) without -p e, that refuses to restore those bits.
If you restore it off of the tape as root, that should have fixed it.
Unless you use pax(1) without -p e, that refuses to restore those bits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2011 09:41 AM
02-05-2011 09:41 AM
Re: how to get the sudo file back.
The two files permissions is 777,777.Owned by root.
we restore at first time it is overwrite the same location. instated of sudo file it is usr(directort)inside local (directory) inside sudo file is prasented. This permissions also 777. And it is prasented in the binary format.we are able to see through strings sudo the out put is showing in zeros only.
we restore at first time it is overwrite the same location. instated of sudo file it is usr(directort)inside local (directory) inside sudo file is prasented. This permissions also 777. And it is prasented in the binary format.we are able to see through strings sudo the out put is showing in zeros only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2011 09:52 AM
02-05-2011 09:52 AM
Re: how to get the sudo file back.
>The two files permissions is 777,777, owned by root.
This is NOT good enough. They should not be writable at all and they need to have the SUID bit set:
chmod a-w,u+s
What tool(s) are you using to backup and restore?
What does this show:
ll -d /usr /usr/local /usr/local/bin /usr/local/bin/sudo /usr/local/bin/sudoedit
This is NOT good enough. They should not be writable at all and they need to have the SUID bit set:
chmod a-w,u+s
What tool(s) are you using to backup and restore?
What does this show:
ll -d /usr /usr/local /usr/local/bin /usr/local/bin/sudo /usr/local/bin/sudoedit
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP