Wrong file permissions after installation

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
brancalessio
Level 2
Level 2
Posts: 97
Joined: Fri Jul 24, 2015 4:59 am

Wrong file permissions after installation

Post by brancalessio »

Hello everybody!

I installed Linux Mint 17.2 from the DVD and I found today that several files, which in my opinion should be owned by root.root, are instead owned by my normal account (the one created during the installation) and the related group.

Files with wrong ownership are

Code: Select all

/etc/firefox-3.0
/etc/firefox-3.0/pref
/etc/firefox-3.0/pref/apturl.js
/usr/bin/apturl
/usr/bin/apturl-gtk
/usr/lib/python2.6
/usr/lib/python2.7/dist-packages/gtk-2.0/sexy.so
/usr/share/pyshared-data
/usr/share/pyshared-data/apturl
/usr/share/pyshared-data/apturl-common
/usr/share/apturl
/usr/share/apturl/apturl.glade
/usr/share/kde4/services
/usr/share/kde4/services/apt+http.protocol
/usr/share/kde4/services/apt.protocol
/usr/share/pyshared
/usr/share/pyshared/AptUrl
/usr/share/pyshared/AptUrl/Parser.py
/usr/share/pyshared/AptUrl/Helpers.py
/usr/share/pyshared/AptUrl/gtk
/usr/share/pyshared/AptUrl/gtk/__init__.py
/usr/share/pyshared/AptUrl/gtk/GtkUI.py
/usr/share/pyshared/AptUrl/UI.py
/usr/share/pyshared/AptUrl/AptUrl.py
/usr/share/pyshared/AptUrl/__init__.py
/usr/share/pyshared/AptUrl/Version.py
/usr/share/pyshared/apturl-0.4.1ubuntu4.egg-info
/usr/share/firefox
/usr/share/firefox/defaults
/usr/share/firefox/defaults/pref
/usr/share/firefox/defaults/pref/apturl.js
/usr/share/doc/apturl
/usr/share/doc/apturl/changelog.gz
/usr/share/doc/apturl/copyright
/usr/share/doc/python-sexy
/usr/share/doc/python-sexy/changelog.gz
/usr/share/doc/python-sexy/NEWS.gz
/usr/share/doc/python-sexy/changelog.Debian.gz
/usr/share/doc/python-sexy/README
/usr/share/doc/python-sexy/copyright
/usr/share/doc/apturl-common
/usr/share/doc/apturl-common/changelog.gz
/usr/share/doc/apturl-common/copyright
/usr/share/man/man8/apturl.8.gz
/usr/share/man/man8/apturl-gtk.8.gz
/usr/share/pygtk/2.0/defs/sexy.defs
/usr/share/gconf/schemas/apturl.schemas
/usr/share/omf/apturl
/var/lib/dpkg/info/apturl*
Does anyone know why? Those file could not be copied by my account, as it has no write permission on directories like "/usr/share" and so on. I fixed everything with "sudo chown ...".

I also had another problem with file permission. A configuration file for gedit in my $HOME was owned by root (instead my normal account). This actually prevented changing the configuration of gedit. I think that this is due to the fact that the first time I run "gedit" I actually run "sudo gedit".
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Wrong file permissions after installation

Post by Cosmo. »

Regarding the last (gedit): I think you mean a file inside ~/.gnome2/gedit: Yes, your assumption is right. Always and only use gksudo for graphical programs.

Regarding the first: I have checked it here for the first folder (firefox-3.0) and confirm it. My guess: A bug. (LM 17.1 Cinnamon)
brancalessio
Level 2
Level 2
Posts: 97
Joined: Fri Jul 24, 2015 4:59 am

Re: Wrong file permissions after installation

Post by brancalessio »

Thanks for the hint about gksudo!

Probably some packages contain files with uid=1001. I hope there are none with uid=1002, 1003, ... We should check. It is not a big problem because these files have the right read permissions, so everything works, but, in principle, I could erase them as a normal user.
brancalessio
Level 2
Level 2
Posts: 97
Joined: Fri Jul 24, 2015 4:59 am

Re: Wrong file permissions after installation

Post by brancalessio »

Should I report this (the first point) in https://bugs.launchpad.net/linuxmint ?
Locked

Return to “Installation & Boot”