OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Ipkg Confused- Again, How are cacko permissions setup?
systemparadox
post Jul 12 2007, 02:11 PM
Post #1





Group: Members
Posts: 211
Joined: 27-September 04
From: Bristol and Tavistock (Devon), England
Member No.: 4,776



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
Go to the top of the page
 
+Quote Post
Meanie
post Jul 12 2007, 11:21 PM
Post #2





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(systemparadox @ Jul 13 2007, 08:11 AM)
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
*



when you su, do a su -
note the - after su
Go to the top of the page
 
+Quote Post
systemparadox
post Jul 13 2007, 04:03 AM
Post #3





Group: Members
Posts: 211
Joined: 27-September 04
From: Bristol and Tavistock (Devon), England
Member No.: 4,776



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
Go to the top of the page
 
+Quote Post
Capn_Fish
post Jul 16 2007, 09:57 AM
Post #4





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



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.
Go to the top of the page
 
+Quote Post
systemparadox
post Jul 16 2007, 01:56 PM
Post #5





Group: Members
Posts: 211
Joined: 27-September 04
From: Bristol and Tavistock (Devon), England
Member No.: 4,776



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th December 2014 - 09:28 AM