Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [root]

For questions pertaining to `root` access.

-1
votes
1answer
26 views

Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block(179,2) [duplicate]

What i can do? I know I can use keyboard to run “check and repair” but in this moment raspberry not see usb keyboard and I don’t have card reader near me.
0
votes
1answer
28 views

Permission denied error when using apt and apt-get as root on raspbian

I keep getting an error when I use apt or apt-get as a root user or using sudo with the default pi account. Ign:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease Ign:2 http://archive....
0
votes
1answer
61 views

sudo with WS2812 and Raspberry Pi

I'm trying to use the Neopixel Adafruit library with the WS2812 strip. Everything works great however there is something that I have not been able to do. I'm working on a project that requires ...
1
vote
1answer
149 views

Boot from USB Connected SSD

It seems that existing guides of how to boot from USB are out of date, and the one here (https://learn.adafruit.com/external-drive-as-raspberry-pi-root/hooking-up-the-drive-and-copying-slash) didn't ...
0
votes
1answer
31 views

Edit root files from CD Card, Ubuntu

So, I heard that it's possible to edit root files on Linux but if I trying to save the file I get this message: They do not have the necessary authorisations to store the file. Please, check ...
0
votes
1answer
40 views

Stop Linux terminal running as root

I was trying to set my GUI working on autorun boot through several methods (system, LXDE etc) but I think I screwed it up as none of them worked really. I must have mixed some commands up. Right now,...
0
votes
1answer
401 views

Can't disable root ssh login

I use SSH to communicate with my Raspberry Pi (server) from my laptop (Putty client). I would like to disable root SSH login. I change the value of "PermitRootLogin" to no in the /etc/ssh/sshd_config. ...
0
votes
1answer
239 views

How to exit read only filesystem to get write permission in order to download a driver form Github?

I am trying to set up a 5 inch LCD on my Raspberry Pi 3. It runs Kali Linux, I'm on a no GUI boot and (automatically) logged in as root. When I run the command (to download the drivers): git clone ...
0
votes
1answer
485 views

Copying files to usr/local in Raspbian

I have been trying to install Opencv following the instructions given in this link [https://github.com/manashmndl/FabLabRpiWorkshop2017/wiki/Painless-OpenCV-in-Raspbian-Stretch] I need to copy files ...
1
vote
1answer
539 views

Wiring Pi - Root not required?

I developed some code using wiringpi on a 4.4.21 machine (Jessie) - it worked fine and as expected, required root privilege to run (i.e. requires sudo) - it uses wiringPiSetup(). I moved the code ...
2
votes
1answer
160 views

Why can you only have one root user terminal process running at a time? [closed]

This question was asked out of mostly curiosity. I've just flashed a new SD card with Rasbian Stretch Lite and when I did, little did I know that Stretch Lite is very similar to Arch Linux Arm. And ...
0
votes
2answers
251 views

Allowing uwsgi to make GPIO calls

I've got a Raspberry Pi Zero W acting as a Flask python server that listens for webhooks, then runs a function to turn on a motor until the GPIO pins read a certain combination of inputs. I used to ...
1
vote
2answers
143 views

yocto - edit file in rootimage with no permission

I am working with the yocto project and a Raspberry Pi 0 with wifi. I want to integrate the wpa_supplicant.conf file and copy it to the /etc/ folder. My recipe fails with reason stating that I don't ...
0
votes
1answer
201 views

How to add user to GUI sudo list?

When I run GUI programs like gparted or the GUI package manager, it allows me to enter the password for root or pi when it requires sudo privileges. How can I add a user to this list? I added a user ...
3
votes
1answer
3k views

How can I connect to the SFTP server with sudo via WinSCP?

I want to use WinSCP to connect to the Raspberry Pi standard SFTP server. I also need to have root access. How can I do this without logging in as root (using sudo)?
6
votes
2answers
7k views

Strange problem on startup - cannot open access to console

Rpi 3 Model B, 16gb SD, all configured well and working fine until yesterday sometime, when rebooting, I now have to press "enter" to continue due to: "Cannot open access to console, the root account ...
0
votes
1answer
2k views

How do I grant sudo privileges to an existing user?

I am using vnc viewer on Windows 10. user: pi I am lost, please help. What I Have Tried: *sudo chmod 777 ** also .. sudo nano /etc/sudoers adding the following line just like "root ALL=(ALL:...
2
votes
0answers
706 views

run startx not as root

Scenario: So I want to run startx. The problem is, it won't let me write to tty0 Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) so I tried to run sudo startx, ...
3
votes
1answer
71 views

How can I get a user-level command to run on or after boot?

I have a Raspberry Pi 2 running behind a firewall that prevents inbound SSH connections, so I get the Raspberry Pi to create a reverse SSH tunnel to an external server so that I can get an SSH ...
0
votes
4answers
228 views

How to resolve “RuntimeError: Unable to export GPIO. Try to run as root!”?

I have interfaced a push button switch and LEDs to GPIO. Whenever I try to execute the script from command line, the code python /home/myPi/myProject/run.py gives me the error RuntimeError: ...
3
votes
2answers
5k views

How to Disable root account Direct Login after adding a password?

I was trying to use sudo to change the default account name, but it didn't work. So, I added a password to the root account and logged in as root. By default, you can't login to root through the login ...
0
votes
1answer
149 views

Patch a RPI image to get a root shell

I'm trying to reverse engineer an appliance based on RPI2, and I would like to get a root shell on the system. After dumping the SD I noticed that there's no rootfs partition (it exists but it's ...
0
votes
1answer
165 views

Run program from inittab, can´t get return´s from scripts

I am just working on a QT GUI program which is the only program executed on a minimal system build by buildroot for a RaspberryPi Compute Module. But I think this should not matter. My problem is ...
10
votes
2answers
27k views

How do I start up in safemode?

After attempting setting up Raspberry Pi bluetooth to be bluetooth receiver for stereo, now whenever I start it up I can't SSH at all, I can't use the desktop at all or CTRL+ALT+Fnumber key to get to ...
3
votes
1answer
179 views

Write Image to SD Card per SSH

I want to write an SD Card Image to a SD Card inserted in the Raspberry PI. What I have done (and it is working): Login to Raspberry an change the /boot/cmdline.txt a NFS Root (Something like ... ...
0
votes
1answer
108 views

Shutdown raspberry from Tomcat app

I have an app running on a Tomcat Server. On a certain situation I want to shutdown my raspberry using the command shutdown -h now. So far, I've tried this: try { Runtime.getRuntime().exec("sudo ...
0
votes
1answer
430 views

why my script is not executed with root privileges using Crontab?

I have a working bash script and I want to run this script every minute with root privileges using crontab. I created my crontab as follows. >sudo crontab -e Then the file opened and I entered my ...
9
votes
5answers
43k views

Root file browser for raspbian jessie

Is there any way to open root file browser in raspbian (like gksudo nautilus in ubuntu)?
1
vote
3answers
18k views

sudo raspi-config not working: boot partition not mounted

Just today I installed a version of Raspbian Jessie on my Raspberry Pi 2 model B. So, I wanted to disable the function that automatically sends the user to the GUI. But, when I typed in sudo raspi-...
1
vote
1answer
3k views

Cannot create new database in MySQL - logging in as 'root'@'localhost' [closed]

For some reason when I login into MySQL - mysql -uroot -p***** I get this error when running this procedure - mysql> create database new_database; ERROR 1044 (42000): Access denied for user '...
1
vote
0answers
291 views

My system keeps locking me into safe mode and boots directly to root shell

Help! I keep getting boot error on my RPi and being locked into safe mode only having access to root shell and losing network connectivity! It is the forth time this happens, the first time I have ...
21
votes
4answers
106k views

How to login as root remotely?

I am trying to login to the raspberrypi as root user via winscp, but it only says "Access denied", same thing for trying to login directly as root on ssh. I have tried loging in as pi and doing sudo ...
14
votes
4answers
109k views

Raspbian root default password

I tried to modify the sudoers file on Raspbian /etc/sudoers, and it looks like I made a mistake, as I'm unable to modify it again. I am also unable to call any command that requires sudo permissions. ...
4
votes
3answers
27k views

Login automatically as root at startup

Is there a way to auto login as root at startup with Raspbian Jessie like there are auto login for user pi?
0
votes
0answers
48 views

sudo does not require password [duplicate]

I am running a new installation of raspbian. Whenever I type a sudo command I do not require a password. sudo passwd let's me change the password without prompting me for anything either. I am ...
1
vote
1answer
6k views

Auto run program on boot as root [duplicate]

I have a Raspberry Pi 2B with Raspbian Wheezy on it. I want it to auto run a program (startup.sh) as root so I can use the GPIO pins. I've tried to use ~/.bashrc but it takes a long time to start or ...
-1
votes
1answer
69 views

Allow root to run games? [closed]

So, I wanted my pi to run a game server on boot, but since root cannot run games, I can't run the game server on boot.If somebody could tell me how to do this, it would make my life easier. When I ...
5
votes
2answers
2k views

Expanding size of the root / using external HDD

I bought Raspberry Pi and got it up and running. I also happened to have an external HDD which I then mounted to the Raspberry Pi. The mount can be accessed in the /mnt folder. I have SD card in the ...
2
votes
4answers
836 views

The transfer of files using the afp:// protocol from OSX10.11 to a RPi using its root password

I have a RPi running a server to which I wish to transfer some SSL certificate files to be able to establish a secure connection from a browser. I presently have connected headless to the RPi from an ...
2
votes
2answers
2k views

Unable to switch to normal user in command line

I am using Raspberry Pi 2 with Jessie raspbian release. I ran into a problem when i was trying to make vncserver start at boot. I followed the instructions present in raspberry pi's website to start ...
0
votes
1answer
461 views

Saving a file at root

Is it possible to create/save a python script in the root folder, if so, how? The reason I ask this is because I am trying to use a single GPIO LED with python but when I run the script it gives an ...
-1
votes
1answer
439 views

Is it possible to shrink the root partition? [duplicate]

Extracted from the instructions from the original docs for installing Ubuntu on RaspBerry Pi 2: There are no Raspbian-specific utilities included, specifically no automatic root resizer. However, ...
0
votes
1answer
2k views

wiringPiSetupSys - input pin state does not change

I try to port my GPIO project from quick2wire to WiringPi. My aim is to read the state of a photocell connected to pin 24 of my raspberry pi (model B, revision 2). My code (python 3) looks like this: ...
5
votes
3answers
2k views

Make VNC login as User Pi rather than ROOT

How can I make VNC on Raspbian run as User Pi rather than Root? I have tried to follow a few "simple" instructions on the internet but none of them give me any working results, and I eventually ended ...
1
vote
2answers
4k views

Samba and usbmount: can't write on automounted device

This is my problem: I configured my RPi with Debian: Samba shares a specific folder, that is readable-writeable-executable from my home network: /media/ usbmount automount USB devices when inserted ...
1
vote
1answer
753 views

How can I use Pi4J as a non-root user?

I am writing a large program, with some use of Maven to manage dependencies, and have come across the issue that running Pi4J causes /dev/mem to be opened, which, of course, cannot be done by a non-...
2
votes
1answer
553 views

Dynamic DNS Cron Job (duckdns.org) root or user?

I have an account with duckdns.org and on the PI 2 I would like to know if I should install and run the cron job as a user or as root.
0
votes
1answer
15k views

Permission denied, logged in with root user [closed]

I used root user to change a something in my directory and I typed in sudo -i followed by /etc/hostname and it says -bash: /etc/hostname: Permission denied
1
vote
1answer
705 views

How to replace a rootfs with another one?

I have 2 sd cards, one with raspbian and one with debian builds. I need to replace the rootfs in my raspbian sd card with the one in my debian sd card. How can I do this? And, what are the changes (...
2
votes
4answers
2k views

Root access , nightmare when TRYING to learn the basics

Why have a product an software that's so tricky to grasp when it's meant to be educational. I'm trying to experiment with the gertboard an simply run Python 2.7 ( I'm using 2.7 because any other ...