![]() |
Not sure I can help you here, Jason. Have you tried to ssh into it as root? I think the password is rootme. You should then be able to edit the sudoers file.
|
visudo
Anyone know if visudo has been ported to the 770? It would have helped prevent Jason's problem.
|
Quote:
I reflashed. Then I set out to get visudo working. I installed vim-tiny from ftp://ftp.debian.org/debian/pool/main/v/vim/ then linked vim-tiny to /usr/bin/editor at that point visudo now works. Fun times. -Jason |
Quote:
export VISUAL=/var/lib/install/usr/bin/vim visudo (change the path to suit your personal needs ;-)) Brad. |
visudo /Root/swapfile
Quote:
btw, i'm using the extrootfs and swapfile method from the maemo.org howto wiki. UPDATE: I did it! I'll post a quick step by step here now: Following the suggestions of someone in the "What's on your 770" I completed the following: Edit 'ld.so.conf' and add a line for '/var/lib/install/usr/lib', then run 'ldconfig'. This means you'll always have access to libraries you install (and actually corrects a maemo bug [1.1rc5] for user installed home plugins) Then, I created a .profile file in /Root/home/user with the line 'export PATH=$PATH:/Root/var/lib/install/usr/bin' and put it in /home/user (with owner/group user/users) i skipped his suggestion of inserting this in /root because there already was a .profile file and I didn't want to mess with said file. so then I could launch visudo from /usr/sbin/visudo (i think that's the directory, you can find it with 'find / -name visudo' (make sure you 'export VISUAL=/var/lib/install/usr/bin/vi' first!) I just do this every time I launch visudo, not sure if that's necessary, but it worked for the few times I went in to mess with things until I got the lines edited appropriately. then I added the lines: 'user ALL = NOPASSWD: /sbin/swapoff user ALL = NOPASSWD: /sbin/swapon' That's it! Now my load-plugin will turn /Root/swapfile on and off without needing x-term or root access. Sweet. Keep in mind this was with the extrootfs installed, as well as x-term and vim-tiny. Most of my directories include /Root in front after installing and running the extrootfs script, like /Root/var/lib/install/usr/bin instead of /var/lib/install/usr/bin ps-this device rocks. I have not learned so much about *nix commands so quickly and easily. Partly this is due to the great community here on the forums, and the knowledgable people to keep us noobs from bricking our device everyday. I only had to reflash twice so far! |
| All times are GMT. The time now is 18:34. |
vBulletin® Version 3.8.8