Re: sudo problem on restore from archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Dec 30, 2023 at 11:48:31PM -0500, Robert McBroom via users wrote:

On 12/30/23 18:18, Mike Wright wrote:
On 12/30/23 15:13, Robert McBroom via users wrote:
On a system restore from a tar archive sudo won't work. Says
/usr/bin/sudo  needs to be owned by 0 with the suid bit set. Root
owns the file and is 0. Looking at a working system directory list shows

   -rwsr-xr-x.  1 root root       57456 Aug 16 20:00 su
   ---s--x--x.  1 root root      202872 Jul 24 20:00 sudo

How does that s bit get set?

man chmod, paragraph 2

The error message is about an suid bit while the man page talks about
setuid, trying it works. Not a clear extension over the old 777.

# chmod 4755 /bin/su
# chmod 4111 /bin/sudo

The suid (setuid), sgid (setgid), and sticky bit are an additional
3 binary bits above the owners permissions.  4=suid, 2=sgid, 1=sticky

--
Jon H. LaBadie                  jonfu@xxxxxxxxxx
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux