Hot answers tagged

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-...
MadAntrax's user avatar
  • 921
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 ...
goldilocks's user avatar
  • 58.5k
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.
opu 웃's user avatar
  • 429
16 votes

Root file browser for raspbian jessie

Open the Terminal Type sudo pcmanfm The root file manager opens.
Mark's user avatar
  • 161
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....
Kevin Reilly's user avatar
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 ...
KT.'s user avatar
  • 231
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&...
Excellence Ilesanmi's user avatar
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 ...
Zachary Vincze's user avatar
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 ...
Milliways's user avatar
  • 58.6k
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 ...
Redex's user avatar
  • 479
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 ...
Impulse The Fox's user avatar
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 ...
Iain Smith's user avatar
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=/...
Hack Saw's user avatar
  • 156
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 ...
dube's user avatar
  • 149
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'...
user400344's user avatar
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 ...
Milliways's user avatar
  • 58.6k
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:
bladexeon's user avatar
  • 263
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 ...
joan's user avatar
  • 70.5k
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 ...
Ingo's user avatar
  • 41.9k
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 ...
Dmitry Grigoryev's user avatar
3 votes

How to login as root remotely?

You can login as normal user (belong sudoer group) then sudo su - to switch to root
南山竹's user avatar
  • 131
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 ...
Milliways's user avatar
  • 58.6k
3 votes

Unable to switch to normal user in command line

To return to the Pi user just type exit.
Steve Robillard's user avatar
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 ...
Ingo's user avatar
  • 41.9k
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 ...
SDsolar's user avatar
  • 2,328
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 ...
SlySven's user avatar
  • 3,621
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 ...
mystery's user avatar
  • 518
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 ...
Ingo's user avatar
  • 41.9k
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
Jasen's user avatar
  • 193
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 ...
user64753's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible