Author Topic: Weird Permissions in 2010 Install  (Read 1066 times)

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4037
Weird Permissions in 2010 Install
« on: April 19, 2010, 01:20:40 PM »
First I found that / was owned by 502. There is no user 502! Now I have found /usr is owned by 502:games, as is /usr/share, /usr/share/locale and everything in it.

I'm sure it should be root:root. That's what I'm changing it to.

Am I alone?
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12657
Re: Weird Permissions in 2010 Install
« Reply #1 on: April 19, 2010, 01:32:55 PM »
First I found that / was owned by 502. There is no user 502! Now I have found /usr is owned by 502:games, as is /usr/share, /usr/share/locale and everything in it.

I'm sure it should be root:root. That's what I'm changing it to.

Am I alone?


All my stuff says root:root.


Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Weird Permissions in 2010 Install
« Reply #2 on: April 19, 2010, 02:51:25 PM »
First I found that / was owned by 502. There is no user 502! Now I have found /usr is owned by 502:games, as is /usr/share, /usr/share/locale and everything in it.

I'm sure it should be root:root. That's what I'm changing it to.

Am I alone?


All my stuff says root:root.



Mine too. You don't suppose that kjpetrie got that special April 1st edition we sneaked in there, do you?

I've been wondering who got that golden Easter egg. ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4037
Re: Weird Permissions in 2010 Install
« Reply #3 on: April 19, 2010, 03:27:41 PM »
I think it's an exclusive edition for non-US users!

Addlocale having some fun?

Games is gid 100 on my machine by the way. Wonder if Pinoc has a machine with a user with uid of 502 and gid 100?
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2881
    • other projects...
Re: Weird Permissions in 2010 Install
« Reply #4 on: April 19, 2010, 04:46:15 PM »
kjpetrie, you are correct, the addlocale archives permissions are the culprit here, sorry, all my fault and being fixed right now, quite embarrassing ...  :-[  Changing permissions to root:root is correct of course. 
sorry again,
-p.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Weird Permissions in 2010 Install
« Reply #5 on: April 19, 2010, 04:49:20 PM »
kjpetrie, you are correct, the addlocale archives permissions are the culprit here, sorry, all my fault and being fixed right now, quite embarrassing ...  :-[  Changing permissions to root:root is correct of course. 
sorry again,
-p.


Bless you pinoc... I was beginning to think only I did dumb stuff like that. ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline marian

  • Hero Member
  • *****
  • Posts: 608
  • Hi
Re: Weird Permissions in 2010 Install
« Reply #6 on: April 19, 2010, 06:47:10 PM »
So which folder's and/or file's permissions are needed to be changed to root:root?
I suppose / should be but what about the others. The whole /usr ?
Freedom is the only way!

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4037
Re: Weird Permissions in 2010 Install
« Reply #7 on: April 20, 2010, 02:45:39 AM »
Everything in /usr/share/locale, and its parents, including /.

Thanks, pinoc. I'll look out for the new build.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline marian

  • Hero Member
  • *****
  • Posts: 608
  • Hi
Re: Weird Permissions in 2010 Install
« Reply #8 on: April 20, 2010, 04:10:56 AM »
Everything in /usr/share/locale, and its parents, including /.

Thanks, pinoc. I'll look out for the new build.


Thanks  ;)
Freedom is the only way!

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2881
    • other projects...
Re: Weird Permissions in 2010 Install
« Reply #9 on: April 20, 2010, 09:28:25 AM »
ok, new addlocale archives with correct permissions are uploaded.
Just to clarify: the permission problem was not related to the addlocale script itself but instead to the setup of the addlocale language archives (done with a separate script on my workstation) which are then downloaded by the addlocale script.
Now if
a) you have wrong permissions due to a previous addlocale run: to fix the wrong permissions either follow the steps outlined by kjpetrie or simply run addlocale again for the localization you choose before..
b) you never ran addlocale: you can now use addlocale and should not get any weird permission settings.

thanks kjpetrie for finding this bug, and sorry for the inconvenience,
regards,
-p.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6471
  • I'm going South
Re: Weird Permissions in 2010 Install
« Reply #10 on: April 20, 2010, 11:00:04 AM »
 ;D ;D ;D A most amusing bug. I found that everything else on my system (including /usr/share/locale) had the right owner and group -- except / itself, which was owned by 502 with "games" as group. I'm contemplating keeping it that way. It would make my system different, and as everything under / is OK it won't interfere with how the system runs ...
 
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4037
Re: Weird Permissions in 2010 Install
« Reply #11 on: April 20, 2010, 03:03:59 PM »
Unless msec is right in suggesting the system will treat this as "nobody". It wouldn't be good from a security viewpoint to have the top of the tree owned by such an unprivileged user.

However, I suspect the msec message is wrong and this lost node really is unowned rather than belonging to nobody. Nobody isn't just anybody, you know.

Of course, if you ever create a third normal user, they will be able to delete and replace major parts of the system tree, since ownership of / enables them to delete and create /etc, /bin, /boot (where the kernel lives) and so on. That could cause you more fun than you bargain for.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6471
  • I'm going South
Re: Weird Permissions in 2010 Install
« Reply #12 on: April 20, 2010, 04:19:57 PM »
That could cause you more fun than you bargain for.

You are right of course. It was a bit tongue-in-cheek that I wrote my post, and I probably shouldn't have as somebody might have taken it seriously.

(But the idea of a system with a nonexistent user owning the root directory ... is funny. Or at least amusing. And I find the thought that I actually used such a system for a week without noticing absolutely hilarious.... Nevertheless I'm glad you found the bug and even more glad that pinoc fixed it.)
« Last Edit: April 20, 2010, 04:21:46 PM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D