Public bug reported:

localectl updates /etc/default/locale when it is run as non root user:
$ localectl set-locale LANG=en_US.UTF-8

$ 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

$ ls -al `which localectl`
-rwxr-xr-x 1 root root 21916 Oct  4 16:58 /usr/bin/localectl

--- 
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu13
Architecture: i386
CurrentDesktop: LXQt
DistroRelease: Ubuntu 18.10
MachineType: Dell Inc. MM061
Package: systemd 239-7ubuntu10
PackageArchitecture: i386
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-10-generic 
root=/dev/mapper/vg0-fedora ro
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
SystemdDelta:
 [EXTENDED]   /lib/systemd/system/rc-local.service → 
/lib/systemd/system/rc-local.service.d/debian.conf
 [EXTENDED]   /lib/systemd/system/user@.service → 
/lib/systemd/system/user@.service.d/timeout.conf
 
 2 overridden configuration files found.
Tags:  cosmic
Uname: Linux 4.18.0-10-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/13/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A17
dmi.board.name: 0KD882
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: 
dmi:bvnDellInc.:bvrA17:bd06/13/2007:svnDellInc.:pnMM061:pvr:rvnDellInc.:rn0KD882:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: MM061
dmi.sys.vendor: Dell Inc.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-collected cosmic

** Package changed: ubuntu => systemd (Ubuntu)

** Tags added: apport-collected cosmic

** Description changed:

  localectl updates /etc/default/locale when it is run as non root user:
  $ localectl set-locale LANG=en_US.UTF-8
  
  $ 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
  
  $ ls -al `which localectl`
  -rwxr-xr-x 1 root root 21916 Oct  4 16:58 /usr/bin/localectl
+ 
+ --- 
+ ProblemType: Bug
+ ApportVersion: 2.20.10-0ubuntu13
+ Architecture: i386
+ CurrentDesktop: LXQt
+ DistroRelease: Ubuntu 18.10
+ MachineType: Dell Inc. MM061
+ Package: systemd 239-7ubuntu10
+ PackageArchitecture: i386
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-10-generic 
root=/dev/mapper/vg0-fedora ro
+ ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
+ SystemdDelta:
+  [EXTENDED]   /lib/systemd/system/rc-local.service → 
/lib/systemd/system/rc-local.service.d/debian.conf
+  [EXTENDED]   /lib/systemd/system/user@.service → 
/lib/systemd/system/user@.service.d/timeout.conf
+  
+  2 overridden configuration files found.
+ Tags:  cosmic
+ Uname: Linux 4.18.0-10-generic i686
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
+ _MarkForUpload: True
+ dmi.bios.date: 06/13/2007
+ dmi.bios.vendor: Dell Inc.
+ dmi.bios.version: A17
+ dmi.board.name: 0KD882
+ dmi.board.vendor: Dell Inc.
+ dmi.chassis.type: 8
+ dmi.chassis.vendor: Dell Inc.
+ dmi.modalias: 
dmi:bvnDellInc.:bvrA17:bd06/13/2007:svnDellInc.:pnMM061:pvr:rvnDellInc.:rn0KD882:rvr:cvnDellInc.:ct8:cvr:
+ dmi.product.name: MM061
+ dmi.sys.vendor: Dell Inc.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1800297

Title:
  localectl updates /etc/default/locale without root privileges

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1800297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to