Questions tagged [root]
For questions pertaining to `root` access.
81
questions
0
votes
1
answer
77
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-...
-1
votes
1
answer
139
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 ...
0
votes
0
answers
96
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 "...
1
vote
1
answer
213
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
votes
0
answers
22
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) ...
0
votes
2
answers
122
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 ...
0
votes
0
answers
384
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 ...
1
vote
2
answers
251
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 ...
0
votes
3
answers
293
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 ...
1
vote
1
answer
185
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: ...
-1
votes
2
answers
5k
views
Reset root password Pi4 Raspian
A newbie error I made when changing /etc/X11/Xsession.d/99qt5ct stopped my Pi4 booting without a PW.
Which of course I have forgotten/lost!
From what I could find searching, most of the info on ...
0
votes
1
answer
51
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: ...
0
votes
1
answer
147
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 ...
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 ...
1
vote
0
answers
52
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 ...
1
vote
1
answer
82
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
1
answer
3k
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
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: ...
1
vote
1
answer
309
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
1
answer
341
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
1
answer
977
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....
-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 ...
3
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 ...
-1
votes
1
answer
150
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
1
answer
102
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
1
answer
1k
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.
...
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 ...
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 ...
1
vote
1
answer
1k
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
1
answer
192
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
2
answers
642
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
2
answers
235
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 ...
1
vote
1
answer
468
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 ...
4
votes
1
answer
9k
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)?
11
votes
1
answer
19k
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
1
answer
3k
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:...
3
votes
1
answer
3k
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
1
answer
88
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
4
answers
750
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: ...
6
votes
2
answers
13k
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 ...
-1
votes
1
answer
215
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 ...
16
votes
3
answers
69k
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 ...
4
votes
1
answer
255
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
1
answer
125
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
1
answer
2k
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 ...
14
votes
5
answers
79k
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
3
answers
23k
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
1
answer
7k
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
0
answers
441
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 ...
32
votes
4
answers
178k
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 ...