1 |
Rainer, |
2 |
|
3 |
using sudo does not makes you a root user. To become a root user you have to |
4 |
switch with "su -" (and login with root password). |
5 |
|
6 |
Sudo has its own configuration file. If you can do something with sudo on other |
7 |
systems means there is a different configuration for sudo. |
8 |
|
9 |
Check "man sudo" |
10 |
|
11 |
Cheers, |
12 |
Peter |
13 |
|
14 |
|
15 |
Am Mittwoch, 9. März 2022, 19:28:49 CET schrieb Dr Rainer Woitok: |
16 |
> Greetings, |
17 |
> |
18 |
> until recently my system behaves sort of strangely: |
19 |
> |
20 |
> $ touch /tmp/file |
21 |
> $ ls -l /tmp/file |
22 |
> -rw------- 1 rainer rainer 0 2022-03-09 19:06 /tmp/file |
23 |
> $ echo x | sudo tee /tmp/file |
24 |
> Password: |
25 |
> tee: /tmp/file: Permission denied |
26 |
> x |
27 |
> $ chmod a+w /tmp/file |
28 |
> $ ls -l /tmp/file |
29 |
> -rw--w--w- 1 rainer rainer 0 2022-03-09 19:06 /tmp/file |
30 |
> $ echo x | sudo tee /tmp/file |
31 |
> tee: /tmp/file: Permission denied |
32 |
> x |
33 |
> $ |
34 |
> |
35 |
> Since when can't root write to files it doesn't own? And not even, if |
36 |
> the file has write permission for everybody? |
37 |
> |
38 |
> This worked as long as I can think of. My last routine upgrade install- |
39 |
> ed new kernel package "sys-kernel/gentoo-sources-5.15.26", so I built |
40 |
> the new kernel and booted from it. May this be the reason? |
41 |
> |
42 |
> When I'll have time to reboot, I'll test the above commands on my old |
43 |
> kernel, 5.15.19. But perhaps there's another reason? |
44 |
> |
45 |
> Slightly puzzled |
46 |
> Rainer |