Notices


Reply
Thread Tools
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#21
Can someone clarify what needs to be fixed in the sudoers file?

I've changed line 7 to allow umount of /media/mmc1, and deleted the extra /media/mmc2 from line 140. This has got rid of the error but I'm not sure whether that's cleared up everything properly or not, and I'd rather not reflash.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#22
Originally Posted by b0unc3 View Post
Yes, I can confirm it too
That's due to a wrong sed command in the prerm script.
You need to manually fix it before upgrading or uninstalling wizard-mounter.
Follow the howto on prerm on this page :
https://garage.maemo.org/frs/?group_id=444

In brief:
1. download the new prerm script on the link upper
2. copy the new prerm script (wizard-mounter.prerm) to /var/lib/dpkg/info/wizard-mounter.prerm
3. You're done.


I'm sorry for the troubles
Why are you using sed to do this? Maemo provides update-sudoers for a reason.

Put the content that you'd like to have in sudoers into a file called "wizard-mounter.sudoers" and install that file to /etc/sudoers.d/ as part of your package. In the postinst and postrm, just run "update-sudoers".
If your wizard-mounter.sudoers file is dodgy, update-sudoers doesn't update /etc/sudoers as opposed to just ruining it. Which is what is happening currently with your sed method. Simple as that.

Last edited by qwerty12; 2010-02-13 at 15:26.
 

The Following 6 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#23
Originally Posted by qwerty12 View Post
Why are you using sed to do this? Maemo provides update-sudoers for a reason.

Put the content that you'd like to have in sudoers into a file called "wizard-mounter.sudoers" and install that file to /etc/sudoers.d/ as part of your package. In the postinst and postrm, just run "update-sudoers".
If your wizard-mounter.sudoers file is dodgy, update-sudoers doesn't update /etc/sudoers as opposed to just ruining it. Which is what is happening currently with your sed method. Simple as that.
I completly ignore the existence of update-sudoers. Thanks to pointed it out!
I'll look how to use/integrate it in wizard-mounter.
 

The Following 3 Users Say Thank You to b0unc3 For This Useful Post:
Posts: 273 | Thanked: 113 times | Joined on Feb 2008 @ Germany
#24
I had the same issue after upgrading wizard mounter - corrupted sudoers. Just my 2 cents.

Thanks,
Corwin
__________________
Hi! I'm a Maemo Greeter!

Useful links for newcomers: New members say hello , New users start here, Community subforum, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
If I can help with anything else, just ask! Please click 'Thanks!' if this post was helpful.
 

The Following User Says Thank You to Corwin For This Useful Post:
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#25
Originally Posted by Rob1n View Post
Can someone clarify what needs to be fixed in the sudoers file?

I've changed line 7 to allow umount of /media/mmc1, and deleted the extra /media/mmc2 from line 140. This has got rid of the error but I'm not sure whether that's cleared up everything properly or not, and I'd rather not reflash.
That's should be ok if you have done that after uninstalling.
 

The Following 2 Users Say Thank You to b0unc3 For This Useful Post:
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#26
I just updated the parem file. There is a new update available today, is it safe to update now? Sorry for the Post, just trying to avoid brick mode

p.s. the Permissions on the old parem file was 755, but your update was 744. I reset the new one to 755.

Why were the permissions different? Does it matter?

Last edited by les_garten; 2010-02-13 at 22:28.
 
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#27
Originally Posted by les_garten View Post
I just updated the parem file. There is a new update available today, is it safe to update now? Sorry for the Post, just trying to avoid brick mode

p.s. the Permissions on the old parem file was 755, but your update was 744. I reset the new one to 755.

Why were the permissions different? Does it matter?
If you see the ver. 1.5.6 than yes, update (after updating the prerm script).
The ver. 1.5.6 uses the update-sudoers stuff to update your sudoers file, so it's safer to update (I suppose).

I think the permission change when you download the file (or I upload it to garage), changing it manually is trivial.
 
Posts: 101 | Thanked: 18 times | Joined on Dec 2009 @ Sweden
#28
ouch
I havnt followed the thread.
Got an update program notification for this app. and installed it.
no I cant se any installed programs and I cannot gainroot is xterm.
well well. **** happens
is flashing my device the only way out?
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#29
Originally Posted by Soap77 View Post
ouch
I havnt followed the thread.
Got an update program notification for this app. and installed it.
no I cant se any installed programs and I cannot gainroot is xterm.
well well. **** happens
is flashing my device the only way out?
Happened to me also. I just reflashed since I had a valid backup. Now I have 10 megs more rootfs than I had before the reflashing
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 
Posts: 101 | Thanked: 18 times | Joined on Dec 2009 @ Sweden
#30
Ok. I just prepared for a reflash.
just one keystroke away from starting it.
But I thought IŽd check the thread again.

One thing I have noticed is that I have a lot of old folder remaining from previous installed programs.
Is there any smart way of cleaning up /home/user from these folders?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:31.