Chrisn wrote:Thanks for the feedback, but I thought I was in the root, I haven't added any users and I had logged in as Pi password raspberry which I thought was the root.
Not to nitpick, but the phrasing "in the root" could lead to a conflation of terms.
- The 'root directory' or 'root of the filesystem', represented by the path '/', is the root of the filesystem tree. Please see hier(7) for more details (by using the command `man hier`).
- The super-user with UID 0, which conventionally bears the username 'root'. This is a login account, but password logins for root are disabled in the Raspberry Pi Debian image.
Code: Select all
pi@raspberrypi:~$ sudo grep root /etc/shadow
- root's home directory, which is conventionally '/root'.
The 'pi' user that you login as is not the same as 'root', but rather is an admin/power user with password-less sudo permissions.
Code: Select all
pi@raspberrypi:~$ sudo grep pi /etc/sudoers
pi ALL=(ALL) ALL
Chrisn wrote:Also how can I change the interfaces file like the example?
What can I use to edit text files at command line?
The Raspberry Pi Debian image includes several text editors by default (some more intuitive/easier than others). If you are new to text editors, and want to make the changes with minimal fuss, I would recommend that you use `nano`. If you plan on performing a significant amount of text editing in the future, I highly recommend that you learn `vi` at the very least (as it is the most standard/universal screen editor). You may wish to check out `sam` (`ed`-like command syntax, but with structural regular expressions; this is the editor that I wish I used), `vim` (like `vi`, but with tonnes of other features/extensions/cruft; this is what I actually use), or `emacs` (What doesn't it do? If you never want to have to leave your text editor or you have a particular affinity for Lisp, then `emacs` is for you).