desmondttm123
Posts: 103
Joined: Tue May 07, 2013 6:13 am

unroot the RPI

Tue Aug 20, 2013 2:17 pm

hello, i downloaded an image of raspbian that comes with root as default. however vlc does not run on root. is there a way i can unroot it? thanks

itimpi
Posts: 1085
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: unroot the RPI

Tue Aug 20, 2013 2:38 pm

Not sure what you mean? The standard Raspbian distribution comes with a default user of 'pi'. Tis is Linux so you can create whatever users you want.

desmondttm123
Posts: 103
Joined: Tue May 07, 2013 6:13 am

Re: unroot the RPI

Tue Aug 20, 2013 2:51 pm

hi, mine is not the standard raspbian, i downloaded one with siriproxy preinstalled, and the default is root #. is there a way i can disable this?

User avatar
rpdom
Posts: 14984
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: unroot the RPI

Tue Aug 20, 2013 3:42 pm

Are you saying that when you start it up it automatically logs you in as the root user with a command line session?

First, I'd make sure that there is a "pi" user set up.
Then I would add the entries to the /etc/sudoers file to allow "pi" to use sudo to run commands as root.
Then I would use Alt-F2 to switch to another console to get a login prompt and login as "pi" and test that sudo works.
Finally I'd look at /etc/inittab and see if there is an entry in there causing the autologin. If so, I'd set it back to the default.

User avatar
ddxfish
Posts: 75
Joined: Wed Aug 07, 2013 5:17 pm
Location: Florida
Contact: Website AOL

Re: unroot the RPI

Tue Aug 20, 2013 4:26 pm

Code: Select all

adduser pi
apt-get install sudo
edit /etc/sudoers and add

Code: Select all

pi ALL=(ALL) NOPASSWD: ALL
I am not sure if the image you use has "auto login" enabled but it would be in /etc/inittab and you can use this guide to disable/enable
http://elinux.org/RPi_Debian_Auto_Login
My Pi Guides: http://www.etcwiki.org/wiki/Category:Raspberry_Pi
My AIM screen name: ddxfish
Always happy to chat about the Pi!

elvisimprsntr
Posts: 131
Joined: Sat Dec 29, 2012 11:36 pm
Contact: Website

Re: unroot the RPI

Wed Aug 21, 2013 1:18 am

If you are referring to my image on SourceForge, it does not auto login. I have found SiriProxy has less permission and errors running as root, which is why everything was installed as root, and the Pi account was intentionally removed. The image is intended as a dedicated SiriProxy.

You can add the Pi account as suggested if you want a user level account to run other applications. Keep in mind that SiriProxy requires a low latency and high bandwidth connection to act as the proxy between your iOS device and Apple servers, so don't expect SiriProxy to be reliable if you are using other high CPU or high bandwidth intensive applications.
http://www.youtube.com/user/TheElvisImprsntr

Return to “General discussion”