1 |
On Sun, Feb 28, 2010 at 11:55 AM, Mike Auty <ikelos@g.o> wrote: |
2 |
> -----BEGIN PGP SIGNED MESSAGE----- |
3 |
> Hash: SHA1 |
4 |
> |
5 |
> Hiya William, |
6 |
> Sudo can be used to restrict access, so that only certain programs can |
7 |
> be run using it. It asks for your password rather than the user you're |
8 |
> trying to login to (unlike su). It also helps maintain a more accurate |
9 |
> audit trail (although I don't have details on exactly how it does that). |
10 |
> Also su I believe only allows access to people in the wheel group. |
11 |
> Therefore, you'll see people using them in conjunction (particularly |
12 |
> with systems like ubuntu that don't give you a root user), so that a |
13 |
> user can enter their own password and be restricted to a particular |
14 |
> program in this case su, and keep better audit logs all thanks to sudo. |
15 |
> Whilst at the same time it still gives you complete access to the |
16 |
> system/login shell through su (a simpler and therefore presumably easier |
17 |
> to secure program). So they can achieve the same results, but it is the |
18 |
> differences in the programs and the way they work that makes people |
19 |
> choose one over the other (or try and combine their best qualities). |
20 |
|
21 |
I think William's question is specific to invocations of 'sudo su -' |
22 |
and that 'sudo -s' and 'sudo -i' provide similar results with 1 less |
23 |
exec. The security of sudo does not help here; both leave you with a |
24 |
root shell and 0 auditing of commands in that shell by default (unless |
25 |
root's shell is a audited shell; some places use them). I think the |
26 |
answer to William's question is 'not everyone knows about sudo -s or |
27 |
sudo -i.' I used Linux for years before sudo -s became normal usage |
28 |
for me (sudo bash and sudo su before that) and I assume a number of |
29 |
users are in a similar position. They found something that works so |
30 |
they used that to get root with their password. |
31 |
|
32 |
> That's the best of my understanding, hope it helps? |
33 |
> Mike 5:) |
34 |
> -----BEGIN PGP SIGNATURE----- |
35 |
> Version: GnuPG v2.0.14 (GNU/Linux) |
36 |
> |
37 |
> iEYEARECAAYFAkuKyisACgkQu7rWomwgFXp6KQCfRGn4b10R8onUVIXlaMgGJ/1o |
38 |
> gpQAn1wiKNrFzlHZLKozCgaJujSUkKH4 |
39 |
> =55Bj |
40 |
> -----END PGP SIGNATURE----- |
41 |
> |
42 |
> |