![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Whenever I type sudo and a command, it gives me insulting error messages (there are a few humorous ones that are randomly given) saying I have the wrong password but if I type su and enter the root password it works fine. I have tried it several times so I know I didn't just happen to misspell the root password only on sudo. This is on OpenBSD 4.7. Any ideas? I appreciate it if so.
|
|
|||
![]()
Your question is unclear, but it appears you are assuming that the root password is required for both su(1) & sudo(8). This isn't necessarily true.
The problem with su(1) is that one either knows the root password or one doesn't, & if one knows the root password, they have complete control over the system. The privilege separation implemented by the system is absolutely defeated. The purpose of sudo(8) is to implement a configurable privilege policy which can be partial. su(1) cannot do this. sudo(8) roles can be established which may grant some privileges of root, but not necessarily all. sudo(8) can also grant root privileges by command. Likewise, the root password doesn't have to be shared since sudo(8) expects the user to enter their own non-privileged account password. In this manner, sudo(8) has finer control & granularity over sharing root's control all without sharing root's password. Note that sudo(8) is not configured by default. visudo(8) is used to edit the local sudo(8) policy. The default policy will not grant any root privileges to non-privileged users irregardless of whether the root password or non-privileged password(s) are used. If you are looking for more information on sudo(8), study the manpage & the project's Webpage: http://www.gratisoft.us/sudo/ Also note that sudo(8)'s current author is also an OpenBSD developer. |
|
|||
![]()
Yes. Thank you for your detailed explanation. I'll study more about sudo and try configuring it.
|
|
|||
![]() Quote:
|
|
|||
![]()
No, that is not the reason. For sudo you have to use your own password, and not the root password
![]()
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
LOL, thanks for that one, burrito brains.
![]() |
|
|||
![]()
The insults motivate me not to mash keys at 3am in the morning and go to bed, not that they always succeed.. I like a challenge.
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vulnerabilities in sudo closed | J65nko | News | 0 | 1st March 2010 05:16 PM |
Possible SMP Issue? | MetalHead | OpenBSD General | 1 | 25th November 2008 03:52 AM |
Installing sudo | rex | FreeBSD General | 4 | 24th October 2008 12:40 AM |
SUDO Wildcards | jcatrysse | FreeBSD Security | 2 | 30th June 2008 07:18 AM |
RAM issue | nikkon | FreeBSD General | 5 | 7th May 2008 04:26 AM |