1 |
pk wrote: |
2 |
> ubiquitous1980 wrote: |
3 |
> |
4 |
> |
5 |
>>> http://lists.debian.org/debian-security/2006/07/msg00059.html |
6 |
>>> |
7 |
> |
8 |
> |
9 |
>> With "sudo su - " the man pages do not have ESC throughout. I have |
10 |
>> learned sudo su from my ubuntu days and I am only guessing that this is |
11 |
>> bad practice and that the correct command is $ sudo su - |
12 |
>> |
13 |
> |
14 |
> No need to guess. Messing with superuser privileges without a proper |
15 |
> superuser environment (paths etc.) is considered bad from a security |
16 |
> point of view; for instance, an malicious application could be installed |
17 |
> in your user home dir, prepend the path to this to your local user $PATH |
18 |
> and whenever you do "su" (without -) you could invoke this app with |
19 |
> superuser privileges... |
20 |
> So to summarize: The link above (debian.org) explains it quite well and |
21 |
> yes, I would say it's a bad habit to omit -. :-) |
22 |
> |
23 |
> Best regards |
24 |
> |
25 |
> Peter K |
26 |
> |
27 |
> |
28 |
Thanks for your explanation and I will remember this lesson.] |
29 |
|
30 |
Thanks, |
31 |
|
32 |
Damien |