localectl updates /etc/default/locale without root privileges
Asked by
Christian S.
/etc/default/locale is write restricted to user and group root:
$ ls -l /etc/default/locale
-rw-r--r-- 1 root root 17 Oct 26 12:46 /etc/default/locale
My account is neither root nor in group root:
$ groups
christian adm cdrom sudo dip plugdev lpadmin sambashare
To my surprise I can successfully edit /etc/default/locale via localectl as non-root in Ubuntu 18.10:
$ localectl set-locale LANG=en_US.UTF-8
Is this a bug or not?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Christian S. for more information if necessary.
To post a message you must log in.