Re: Permissions on /etc/sudoers messed up - reflash?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"PH" == Paul Hartman <paul.hartman+maemo@xxxxxxxxx> writes:

PH> On Fri, Jan 21, 2011 at 5:29 PM, Philipp Haselwarter
PH> <philipp.haselwarter@xxxxxx> wrote:
>> I chmod 0640'ed /etc/sudoers on my N900 and closed the terminal -.-
>> sudo gainroot/chmod/... fails complaining about the permissions, the
>> gui package manager does so silently.  Can't mount the filesystem
>> root offline on another device to chmod 0440 back (?), can't login as
>> root locally, ssh to localhost seems to work but I don't have the
>> slightest idea about the root password.
>> 
>> Any way to avoid a reflash?

PH> The root password should be the one you created when you installed
PH> the rootsh package. If you forgot it, then...

...I'm kind of screwed, right.

PH> I have not tried it, but you might be able to use a rescue initrd
PH> like the one described here to gain access to your rootfs:
PH> http://wiki.meego.com/ARM/N900/Using_Rescue_Initrd

Got it booted, but it seems that the rescue initrd doesn't contain
chmod. Too bad.

Furthermore I had a really hard time with the keyboard;
the only keys I was able to use were [a-zA-Z<>], no dashes, no slashes
(the modifier key seems to just get ignored).
Maybe I could use the chmod on the rootfs? Still, if I can neither type
"-w" nor "440" that's no use.

PH> There are also a few things that could have helped, had you
PH> installed them ahead of time, like backupmenu, or if you have
PH> NITdroid or MeeGo in a dual-boot environment you might be able to
PH> use them to edit your file permissions.

PH> Good luck!

thanks!

-- 
Philipp Haselwarter

_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux