GearHack

: :

Add Comment | Related Links | TrackBack
Related Content

Grant User Account Ability to "sudo" on OLPC XO

OLPC XO and its Sugar interface is based on Linux, which means managing it remotely should be a piece of cake. Being my daughter's computer, it's neck breaking for me to manage it while sitting at her kiddie table.

So, I sat up an account for myself on her OLPC and was able to remote login into it quite easily. But running "sudo" caused the following failure:

Traceback (most recent call last):
File "/usr/bin/sudo", line 119, in
if __name__ == '__main__': main()
File "/usr/bin/sudo", line 117, in main
os.execvpe('/bin/su', cmd, nenv)
File "/usr/lib/python2.5/os.py", line 363, in execvpe
_execvpe(file, args, env)
File "/usr/lib/python2.5/os.py", line 380, in _execvpe
func(file, *argrest)
OSError: [Errno 13] Permission denied

The Sugar environment had no /etc/sudoers files. And based on what I read online, I found that creating such a file has no effect. I found the only way to gain "sudo" access is to add my user account to the "wheel" group with the following command at the OLPC Terminal:

  sudo usermod -g users -G wheel name

Chieh Cheng
Fri, 01 Jan 2010 10:26:14 +0000

This problem is caused by moving my user account onto the SD Card. The SD Card was formatted to FAT, which doesn't support the UNIX permissions. Once the card is formatted to EXT3 as described in the "Expanding the Storage Space on the OLPC XO" thread, the problem went away.

Chieh Cheng
Mon, 18 Jan 2010 06:40:01 +0000

For clarification, my user account is set-up on "/home/me". Then I moved the user account to the SD Card ("/media/SugarDrive/home/me"). Next, I created a symbolic link from "/home/me" to "/media/SugarDrive/home/me".

Chieh Cheng
Mon, 08 Feb 2010 22:34:39 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 9 + 2?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.


Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

179 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 2004 - 2024. All Rights Reserved.