Skip to main content

Questions tagged [root]

For questions pertaining to `root` access.

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

I cannot login to my raspberry after uninstalling zsh

Raspberry is running fine, but I cannot login via ssh or directly on the device. Problem: I executed following command: sudo apt remove --purge zsh Yes I know I am a moron. I know I have to access /...
Watzefak's user avatar
0 votes
0 answers
538 views

Cannot run PulseAudio as root (sudo)

I have developed a console application in .net 6 which uses a library that needs direct access to the gpio-pins of the Pi. The Pi is running the latest Pi OS Lite x64. Edit: This is the library ...
Jan's user avatar
  • 1
0 votes
1 answer
80 views

Attempted to ssh as root after running into Denied error, but couldn't login

I'm running a Plex server on my RPi3 with Raspberry OS Lite. I've started running into an error when uploading files that I cannot set permissions/timestamp, error 3 Denied. I've tried a few things, ...
Wilko84's user avatar
-1 votes
3 answers
6k views

how do i login as root , its not working for me

So far, I have only logged in as myself and have used sudo for various things when needed Now I want to use the desktop text editor tool to modify some files in /var (for home assistant by the way) ...
Cool Pontiac's user avatar
1 vote
0 answers
47 views

Why root user has different library version than simple user? [closed]

I was trying to build one project with cmake but turned out that root doesn't have it (admin user had it). After installing it on root they have now different versions. I thought that root has only ...
PiotrBzdrega's user avatar
1 vote
1 answer
112 views

How to give Ownership to Pi from root to Mount_Folder

Here is my workflow and the issues I want to fix. First I mount the windows shared folder on Raspberry Pi. But in order to use that, I have to mount using sudo. sudo mount.cifs //<hostname or IP ...
MyatKaung's user avatar
-1 votes
1 answer
163 views

Surely I can run sox with alsa without pulseaudio

Why would I want to do that? because pulseaudio isn't needed (presumably) and pulseaudio does not want to run as root. In theory I should be able to run pulseaudio --system to fix the problem, but I ...
Petr's user avatar
  • 117
0 votes
0 answers
283 views

Can't boot to root shell

I added init=/bin/sh to my cmdline.txt in an attempt to troubleshoot this problem, but upon booting I land at the normal credentials prompt. I'm using a MicroSD adapter to edit the file with a Windows ...
InteXX's user avatar
  • 145
2 votes
2 answers
472 views

Sudo still works despite removing my user from group

I just installed the April 4th 2022 edition of Rasberry Pi OS and added a root password in addition to my user password. I also did.. deluser <userme> sudo I tested my new security adjustment ...
user12711's user avatar
  • 177
0 votes
1 answer
759 views

Start Python Pygame automatically (with sudo rights) after booting instead of displaying a prompt

I'm trying to solve this problem. I would like to boot a raspbery directly into pygame without starting the GUI. I have a raspberry pi generation 2 with the current "2021-01-11-raspios-buster-...
576i's user avatar
  • 229
-1 votes
1 answer
472 views

Why usb with root filesystem is not mounting on boot bootcode.bin not working

Hi I am making this thread because someone pointed that my previous was not specific enough. I am trying to move my root filesystem to external usb on my raspberry zero v1.3. I have additional ...
user164948's user avatar
0 votes
0 answers
244 views

Raspberry pi Zero or 1B+ USB boot not working

I have been trying to move root file system to external disk for a few weeks and I came across one problem. My disk was not mounting. No matter what would I do, my screen always hanged on "...
user164948's user avatar
1 vote
1 answer
905 views

WS281x library cannot access /dev/mem without root

I get this error from the rpi_ws281x library when trying to run as user pi (this is a java wrapper around the library): 16:43:59.060 [main] INFO com.github.mbelling.ws281x.Ws281xLedStrip - LEDs count:...
0__'s user avatar
  • 512
0 votes
0 answers
33 views

xtightvnxc on pi4 running as root buster xtightvncviewer has no menu bar - can't admin headless pi4 (pi3,2,1 OK) with gui tools

When xtightvncserver is run as root on Pi4 running buster, vncviewer run from another host (ubuntu 20.04, in this case) there is no menu bar. When I run xtightvncserver as root on a pi3 (2 or 1) ...
Dave Knight's user avatar
1 vote
2 answers
707 views

User getting removed from group after reboot

I am running Ubuntu Server 20.04.02 LTS in my RPi 4b. I ran into the problem that I couldn't access the GPIO without sudo/root with my python scripts so I changed the /dev/gpiomem group ownership to ...
incomingstorm's user avatar
0 votes
0 answers
1k views

Can Thonny run scripts as root?

I'm trying to use the Import keyboard library within Thonny on my Raspberrypi Zero W. However I receive an error saying "import error: you must be root to use this library on Linux." Can ...
Sir.Socks's user avatar
  • 101
1 vote
2 answers
427 views

Disable Single User Mode

If I forget my password to my Raspberry Pi, I can gain access again by using single user mode (here is an alternative link). The upside is that if I don't know my password, I can gain access. The ...
Insert name here's user avatar
0 votes
3 answers
2k views

How to enable HDMI on Rasberry Pi 4

This topic may be misleading. Let me clarify. I need to enable HDMI on my new raspberry Pi 4 (I am a new user to pi). This is accomplished by changing one line in /boot/config.txt. This is posted in ...
Zero Code's user avatar
0 votes
1 answer
347 views

getting an error when I autostart my py script which contain PyQt Gui

I'm trying to automatically start a py script which has pyqt5 Gui when I boot my Raspberrypi. I did sudo nano /etc/rc.local and made a log.text to know what's happening and I received: qt.qpa.screen: ...
Izo's user avatar
  • 19
-1 votes
2 answers
9k views

Reset root password Pi 4 Raspbian

A newbie error I made when changing /etc/X11/Xsession.d/99qt5ct stopped my Pi 4 booting without a password. Which of course I have forgotten/lost! From what I could find searching, most of the info on ...
forestDM's user avatar
0 votes
1 answer
180 views

SD Card Resize on 32gb SD Card Raspberry Pi

I have a 32gb SD card in my Raspberry Pi. I'd like to make use of all the space, please can someone tell me how to resize? Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors Units: ...
Mark's user avatar
  • 1
0 votes
1 answer
224 views

Raspbian: chromium crashes when logged in as root

I have got a clean install of Raspbian on an RPi 4B. If I log in as root (not as the standard pi user) and try to open the Chromium web browser, by clicking its icon on the Task Bar, Chromium simply ...
user4422's user avatar
  • 103
0 votes
0 answers
5k views

Fix Error Running as root without -- no-sandbox is not supported

I wanna run an easy script via the terminal which opens my webbrowser and brings it in something like a kiosk-mode by pressing 'F11'. For this I installed the module keyboard for python 2 and 3 and ...
Soam.P's user avatar
  • 57
1 vote
0 answers
54 views

Server 19.10 on Raspberry Pi 4 defaults to root?

I've successfully installed Server 19.10, then got a desktop (Lubuntu) going on a single Raspberry Pi 4 (4gb). I went with the 32-bit version, having heard the 64-bit is not very stable. (Please ...
147pm's user avatar
  • 121
1 vote
1 answer
127 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 ...
YOUSEF ASHRAF ABDELHADY HAFEZ's user avatar
0 votes
1 answer
5k 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....
Yihan Hu's user avatar
0 votes
0 answers
2k 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: ...
Peete's user avatar
  • 11
1 vote
1 answer
554 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 ...
Joe Elia's user avatar
-1 votes
1 answer
532 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.
Mr.Herben's user avatar
0 votes
1 answer
1k 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....
Craig's user avatar
  • 1
-1 votes
1 answer
1k 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 ...
Andy's user avatar
  • 1
4 votes
1 answer
3k 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 ...
user96931's user avatar
  • 739
-1 votes
1 answer
208 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 ...
Anastasiia's user avatar
0 votes
1 answer
136 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,...
Staflik's user avatar
0 votes
1 answer
2k 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. ...
Pierrot's user avatar
1 vote
1 answer
2k 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 ...
kinghenri's user avatar
0 votes
1 answer
2k 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 ...
smc's user avatar
  • 297
1 vote
1 answer
2k 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 ...
Steve R's user avatar
  • 19
2 votes
1 answer
211 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 ...
iostreamerX's user avatar
0 votes
2 answers
759 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 ...
Andrew Konoff's user avatar
1 vote
2 answers
277 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 ...
SHERIF OMRAN's user avatar
1 vote
1 answer
600 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 ...
kenf's user avatar
  • 21
5 votes
1 answer
13k 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)?
Impulse The Fox's user avatar
12 votes
1 answer
22k 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 ...
user avatar
0 votes
1 answer
5k 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:...
Mohd Salman's user avatar
3 votes
1 answer
5k 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, ...
peter's user avatar
  • 31
3 votes
1 answer
110 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 ...
BlandCorporation's user avatar
0 votes
4 answers
1k 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: ...
batman_rising's user avatar
6 votes
2 answers
17k 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 ...
Dynamite Dinosaur's user avatar
-1 votes
1 answer
234 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 ...
Francesco S.'s user avatar