| Summary: | midnight commander root save to user config | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Mészáros Csaba <csablak> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | minor | ||
| Priority: | Normal | CC: | davidwhodgins, ouaurelien |
| Version: | 8 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | mc-4.8.26-1.mga8.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Mészáros Csaba
2021-02-16 00:13:12 CET
Hi, sorry to read this. This is a missuse of the su command. You should run su with a dash like this: $ su - The dash is mandatory. This resets properly the user environment within the current shell. root user should not have the same variable environment than the real user. So, the described above steps are wrong way. This is not a bug. Closing. Status:
NEW =>
RESOLVED Hello Aurelien. Ever since I know my mind, I’ve always used it this way, and even in Mageia 7 on the first partition, if I use it now without a -, there’s no problem, just in Mageia 8. That's why I didn't understand. Maybe you should put it in /etc/profile.d/60alias.sh at system level? (In reply to Mészáros Csaba from comment #3) > Hello Aurelien. > Ever since I know my mind, I’ve always used it this way, and even in Mageia > 7 on the first partition, if I use it now without a -, there’s no problem, > just in Mageia 8. That's why I didn't understand. Maybe you should put it in > /etc/profile.d/60alias.sh at system level? It only causes problems if the commands run while running as root creates or updates files in ~. $ tree -ufaug ~|grep root will show if there are now any root owned files in the home directory that need to be fixed. The way the su command works has not changed since well before Mandrake days. While people unfamiliar with how the su command works may benefit from Mageia choosing to add an alias, it would also cause changes when used with the -c option, as is sometimes done in scripts. Changing the way a basic command works in Mageia would probably also annoy people used to the way it works in other distribution and historically in Mandrake/Mandriva/Mageia. |