59
votes
Accepted
How to login as root remotely?
If you want to login as root using SSH or WinSCP you need to edit the config of SSHD, do this:
Login, and edit this file: sudo nano /etc/ssh/sshd_config
Find this line: PermitRootLogin without-...
19
votes
Raspbian root default password
Raspbian by default is configured so that the root account can't be logged into using a password. This is done by starting with an entry in /etc/password which begins:
root:x:0:0:
The fields are ...
17
votes
Accepted
Root file browser for raspbian jessie
Typing gksudo in Terminal and then hitting enter. A window named Run program will pop up.
Then typing pcmanfm on the Run text field. Pressing ok.
That worked for me.
16
votes
Root file browser for raspbian jessie
Open the Terminal
Type sudo pcmanfm
The root file manager opens.
14
votes
How do I start up in safemode?
This Answer is out of date (Raspbian now uses PARTUUID to identify root partition) and uses /bin/bash rather than the POSIX compliant /bin/sh
It may work to repair the partition, but changing cmdline....
13
votes
Strange problem on startup - cannot open access to console
Found myself in the same situation just now. Took quite some time to figure out (taking into account that I had neither a USB keyboard nor a Linux computer around this was a long quest).
The reason ...
8
votes
Raspbian root default password
To set a root password:
Boot up and login normally.
Run:sudo passwd root
Type in the new password for root as prompted
Source: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=5056&...
8
votes
sudo raspi-config not working: boot partition not mounted
Check if your boot folder is empty using cd /boot/ in a terminal session. If so, you should be able to mount it to the SD card using a simple command.
sudo mount /dev/mmcblk0p1 /boot
All this ...
7
votes
How to login as root remotely?
You cannot login as root because Raspbian does not have a root password. See Raspbian root default password
Normally ssh does not allow root access because this is considered a security risk. You ...
6
votes
Accepted
Login automatically as root at startup
MariusMatutiaes accepted answer worked for Raspbian Jessie (March 2016) too:
Edit the file /lib/systemd/system/[email protected] and change the line
ExecStart=-/sbin/agetty --noclear %I $TERM
to
...
6
votes
Accepted
How can I connect to the SFTP server with sudo via WinSCP?
This is easy. By default the stfp-server of a Raspberry Pi is located at: /usr/lib/sftp-server, so we need to get WinSCP to execute it with sudo.
Go to your WinSCP profile (Session > Sites > Site ...
5
votes
Edit root files from SD card?
I basically didn't have a Keyboard I could use for my Raspberry Pi and was wanting to do the same.
I did this:
Insert the SD card into the MacBook
Open Applications > Disk Utility > right click on ...
4
votes
Accepted
How do I start up in safemode?
The traditional way to get into "Safe" mode, otherwise known as "single user" mode, is to add an "S" to the end of the command line.
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/...
4
votes
How do I start up in safemode?
Since you probably updated your raspian in the process, you might have been caught by this change:
As of the November 2016 release, Raspbian has the SSH server disabled by default. You will have to ...
4
votes
Root file browser for raspbian jessie
You will find that 'mc' ( midnight commander ) is the fastest for browsing and file operations - CTRL+o will give you a root shell prompt to view output of commands. On a Pi, it's lightweight. You don'...
4
votes
Raspbian root default password
Raspbian does NOT have a root password. It differs from Ubuntu in that respect. You can create a root password, but AFAIK that requires sudo.
The best bet is to edit the files by mounting the SD Card ...
4
votes
Login automatically as root at startup
I'm not sure why you would want to autologin as root, but if its just for the sake of saving those few seconds you can choose to auto login with the pi username in the raspi-config settings:
4
votes
Wiring Pi - Root not required?
wiringPi was modified to allow the use of /dev/gpiomem rather than /dev/mem to access the GPIO.
To access the GPIO via /dev/mem requires root privileges.
By default /dev/gpiomem can be accessed by ...
4
votes
Accepted
Boot from USB Connected SSD
The Raspbberry Pi 3B+ has improved boot capabilities. It can boot from any USB drive out of the box. Just flash an Raspbian Image to the USB storage like you do it with a SD Card. Put it into one USB ...
4
votes
Accepted
Disable Single User Mode
Put the data you're trying to protect on a separate partition and encrypt it. Typical users will want to encrypt /home. You could also encrypt the root partition itself, though that will be more ...
3
votes
How to login as root remotely?
You can login as normal user (belong sudoer group) then
sudo su -
to switch to root
3
votes
Unable to switch to normal user in command line
I am not exactly what you have done, because if you followed the instructions there should be no problem. (I assume you have rebooted.)
vnc is unlikely to work, because those instructions are for ...
3
votes
3
votes
Can the raspberry boot to an LVM root partition?
This answer is obsolete. Here is a simpler solution.
For development I like to take snapshots so I can easily revert to
original installation without flashing the SD Card again. For this we
have to ...
3
votes
How to change user pi sudo permissions; how to add other accounts with different permissions?
May 2018, This is still acccurate in concept but the procedure has changed with later versions:
Firstly, the files should be directly edited in vi or nano or leafpad or emacs - whichever is your ...
3
votes
Accepted
Auto run program on boot as root
As you are using Raspbian Wheezy I am assuming you are using the default init system provided by systen V init rather than the systemd that is used in Jessie and most other GNU/Linux distributions ...
3
votes
Accepted
How to Disable root account Direct Login after adding a password?
Disable remote login
Run sudo nano /etc/ssh/sshd_config
and set PermitRootLogin yes to 'no'.
Reboot or restart the ssh service with /etc/init.d/ssh restart
Disable root completely
To completely ...
3
votes
Permission denied error when using apt and apt-get as root on raspbian
I don't know what repositories do you have addressed in your /etc/apt/sources.list. But it seems you have a Raspbian and a Debian repository addressed. This is not a good idea except do you really ...
2
votes
Allow root to run games?
add this line to /etc/crontab;
@reboot pi darkplaces-server -basedir /place/to/gamefiles/ +"$(cat /place/to/precommands)"
replace pi with the apropriate username to run the server as
2
votes
Expanding size of the root / using external HDD
Since you have the Pi up and running, all the work can be done on the Pi itself.
On a terminal type the command lsblk. The mmcblk0 is the Pi's SD and sda, sdb, ... are the other disk on the Pi. If ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
root × 92raspbian × 23
sudo × 14
boot × 12
permissions × 9
ssh × 7
gpio × 6
python × 6
pi-4 × 5
linux × 5
user × 5
pi-3 × 4
networking × 4
usb × 4
sd-card × 4
boot-issues × 4
login × 4
pi-2 × 3
rpi.gpio × 3
ubuntu × 3
filesystem × 3
password × 3
lxterminal × 3
file × 3
pi-3b+ × 2