Author Topic: Ipkg Confused- Again  (Read 3468 times)

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Ipkg Confused- Again
« on: July 12, 2007, 06:11:58 pm »
Please could someone explain how cacko is setup regarding permissions and security- especially regarding ipkg.

I set a root password as soon as I had installed Cacko. I then wanted to install some software. The graphical tool 1. sucks, and 1b. crashed, so I gave up and used the command line ipkg- which I prefer anyway. As expected, the command line ipkg can't do anything as a normal user due to a lack of permissions. So I ran it as root. Fine. I installed vim-full, zuc and japanese-support and tried to install japanese-dict before it reminded me that I was still trying to install to root and had run out of space.

Now I'm stuck. It successfully removed vim-full and zuc, but fails on japanese-support. If I run "ipkg remove" as root it complains that: "Qt/Embedded data directory is not owned by user 0", "Aborted". Interestingly it says this twice and then exits, returning 134 if that makes any difference. But if I run it as the default user it fails due to the lack of permissions.

So I have some questions:
1. Just to make sure, the GUI itself doesn't run as root, right?
2. What user does the graphical package manager run as? Is it setuid root or something?
3. What user am I supposed to run the command line ipkg as?
4. Why can't I remove japanese-support?
5. Is there a way of getting ipkg to produce more output of what it is doing (I tried -v but that didn't help)?
6. What is the "Qt/Embedded data directory"?

Thanks
Simon
« Last Edit: July 12, 2007, 06:15:08 pm by systemparadox »
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ipkg Confused- Again
« Reply #1 on: July 13, 2007, 03:21:34 am »
Quote
Please could someone explain how cacko is setup regarding permissions and security- especially regarding ipkg.

I set a root password as soon as I had installed Cacko. I then wanted to install some software. The graphical tool 1. sucks, and 1b. crashed, so I gave up and used the command line ipkg- which I prefer anyway. As expected, the command line ipkg can't do anything as a normal user due to a lack of permissions. So I ran it as root. Fine. I installed vim-full, zuc and japanese-support and tried to install japanese-dict before it reminded me that I was still trying to install to root and had run out of space.

Now I'm stuck. It successfully removed vim-full and zuc, but fails on japanese-support. If I run "ipkg remove" as root it complains that: "Qt/Embedded data directory is not owned by user 0", "Aborted". Interestingly it says this twice and then exits, returning 134 if that makes any difference. But if I run it as the default user it fails due to the lack of permissions.

So I have some questions:
1. Just to make sure, the GUI itself doesn't run as root, right?
2. What user does the graphical package manager run as? Is it setuid root or something?
3. What user am I supposed to run the command line ipkg as?
4. Why can't I remove japanese-support?
5. Is there a way of getting ipkg to produce more output of what it is doing (I tried -v but that didn't help)?
6. What is the "Qt/Embedded data directory"?

Thanks
Simon
[div align=\"right\"][a href=\"index.php?act=findpost&pid=164825\"][{POST_SNAPBACK}][/a][/div]


when you su, do a su -
note the - after su
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Ipkg Confused- Again
« Reply #2 on: July 13, 2007, 08:03:32 am »
That's fixed it, thanks.

Now I have another problem. It suspended half way through trying to install some packages, and so failed. Now every time I run ipkg it asks me if I want to install them. But I'm suspicious they will end up in the wrong place and it asks me even if I explicitly tell it to install one of them (it then installs it twice). How do I get it to stop asking me?

Thanks
Simon
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Ipkg Confused- Again
« Reply #3 on: July 16, 2007, 01:57:00 pm »
There's probably a file somewhere that you can edit/remove (probably by ipkg.conf). You could also let it install the packages again, which should fix it.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Ipkg Confused- Again
« Reply #4 on: July 16, 2007, 05:56:22 pm »
Sorted- /usr/lib/ipkg/status (or in my case /mnt/card/usr/lib/ipkg/status). Any entries with "not-installed" will be asked for again. They can be safely removed.

Thanks
Simon
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.