We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [root]

For questions pertaining to `root` access.

Filter by
Sorted by
Tagged with
0
votes
3answers
19k 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-...
0
votes
1answer
12 views

Fresh new slackware arm install, unable to log into my raspberry pie 3

I have been trying to install slackware arm (slackware arm current 4.19.81-7+) on my Raspberry pi 3. After i have installed it successfully (following this guide), i was unable to login due to the ...
0
votes
1answer
492 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
52 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
156 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 ...
3
votes
1answer
186 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 ... ...
6
votes
2answers
11k views

Edit root files from SD card?

So my RPI is working great and is running it's OS from the SD card. A lot of the time when I'm programming I don't have an internet connection. I can't make a direct connection to my mac cause it's a ...
0
votes
1answer
231 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 ...
0
votes
1answer
172 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 ...
13
votes
2answers
34k 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 ...
0
votes
1answer
72 views

Why does /dev/mmcblk0p2 work when PARTUUID doesn't?

Goal Hi my PI keeps rebooting after I added two lines to the rc.local file. Now i am trying to log into the boot shell and edit those two lines out. Problem I added init=/bin/bash to the cmdline....
0
votes
1answer
204 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 ...
0
votes
0answers
200 views

Running NextCloud on HTTPS/SSL with LetsEncrypt

I have successfully installed Nextcloud on a Pi3 using snap sudo snap install nextcloud. Confirmation follows promptly: nextcloud 15.0.10snap3 from Nextcloud✓ installed . Now this tutorial: ...
1
vote
1answer
30 views

Scanning WiFi Signals as regular user

As per this: https://linux.die.net/man/8/iwlist I understand that scanning of WiFi Networks requires root access. If you are a regular user than you can only see the Wifi Network you are connected ...
-1
votes
1answer
52 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
113 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....
2
votes
1answer
1k 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 ...
1
vote
2answers
171 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 ...
6
votes
2answers
9k 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
4answers
288 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: ...
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:...
23
votes
4answers
123k 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 ...
10
votes
5answers
51k views

Root file browser for raspbian jessie

Is there any way to open root file browser in raspbian (like gksudo nautilus in ubuntu)?
0
votes
1answer
47 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,...
4
votes
1answer
4k 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)?
4
votes
3answers
29k 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?
7
votes
4answers
13k views

Can the raspberry boot to an LVM root partition?

Before I start, I will say I have posted this on the Rpi forum as well. I don't normally cross-post but, having tried there and got nothing, I've come to my preferred knowledge centre. I'm just ...
16
votes
4answers
118k 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. ...
0
votes
1answer
520 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. ...
13
votes
5answers
130k views

How to change user pi sudo permissions; how to add other accounts with different permissions?

Since I occasionally use my Pi over SSH, I have learned that it is dangerous to allow SSH to access sudo commands. Thus, I plan to turn off this permission in the near future. But, when I install ...
0
votes
1answer
652 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
682 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
161 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
302 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 ...
2
votes
4answers
961 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
0answers
811 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
76 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 ...
3
votes
2answers
6k 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
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
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 ...
0
votes
1answer
117 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
603 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 ...
1
vote
1answer
4k 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
332 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 ...
0
votes
0answers
52 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
7k 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
71 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 ...
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
533 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
vote
1answer
449 views

NFS root, mount speed

I'm wondering what can I do to speed up booting from NFS server (nfs root). I'm using Arch and there are no problem in booting over network, but still, it needs ~2 minutes to start booting and then ...