Questions tagged [root]

For questions pertaining to `root` access.

Filter by
Sorted by
Tagged with
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 ...
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. ...
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 ...
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 ...
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)?
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 ...
7
votes
2answers
17k views

Automatically run a program as root for GPIO?

I have a Raspberry Pi running Raspbian that I want to auto-login and then automatically run a program that uses the GPIO as root. I have auto-login working as per this website. What is the best way ...
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 ...
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 ...
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 ...
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 ...
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?
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)?
3
votes
1answer
2k views

Changing NIC or Vendor

I'm currently using the Raspberry Pi for a solution, but I want to hide the fact that it is a RPI doing the work. However, when using Fing or any other network scanner, it recognises the vendor as "...
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 ...
3
votes
1answer
6k views

PANIC: VFS: Unable to mount root fs on unknown-block(179,2)

I unplugged my RPi (RPi#1) and moved it to another power outlet, and plugged it back in. RPi#1 is the brains of my distributed setup, containing the database and biggest SD card. All of the data my ...
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
1answer
187 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 ... ...
2
votes
4answers
3k 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 ...
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 ...
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 ...
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 ...
2
votes
1answer
599 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.
2
votes
4answers
963 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
813 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, ...
1
vote
1answer
685 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 ...
1
vote
1answer
3k views

I can't use the permissions with my raspberry pi

I got a Raspberry PI and, even with the root user, I got some "permission denied" using commands like when I want to access the gpio. I tried with and without sudo. sample : # cd /sys/class/gpio/ # ...
1
vote
1answer
2k views

Why do one have to be root to acces gpio?

I have long wondered about this. I mean there are a lot of low level stuff that a user can get access to. If a driver exports gpio to /dev/gpio and that file is writable by group gpio how would that ...
1
vote
1answer
17 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 ...
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
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
vote
2answers
5k 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
32 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
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 ...
1
vote
1answer
767 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-...
1
vote
1answer
784 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 (...
1
vote
1answer
2k views

Permissions & Scripts

I am trying to run camera.sh which I made executable by chmod 755 camera.sh It works okay, but when I run it I get the error... root@raspberrypi:/home/pi/timelapse# ./camera.sh -bash: ./camera.sh: ...
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 ...
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 ...
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
115 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
4answers
295 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
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
0
votes
1answer
77 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
657 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 ...
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 ...
0
votes
1answer
536 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 ...
0
votes
1answer
2k views

How to solve: locked out of sudoer rights and root account on Arch linux of RPi [closed]

I disabled the root login on Arch Linux installed in my RPi without putting my own user account into sudoers. Now I'm prevented from recovering root login. I understand one can use liveCD or GRUB to ...
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,...
0
votes
1answer
524 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. ...