My public key was recently added to a ubuntu server so that I can remotely log in as root. However, when I log in as root. I cant do some simple tasks like mkdir . Is there something I am missing here. Root users are supposed to be able to do everything. right? I get a permission denied when I try to create a directory somewhere else other than my root home directory.
If you can not create files/folders as root then their is normally 2 things I would check. First I would check there is space on the disk.
The other to check is that the file system is not read only, you can check this using the mount command, if you do not understand the output then paste it here.
after the open bracket '(' on each line it should show 'rw' to mean read/write.
note: as a system administrator I would advise against anyone running as root, there is no need for it. I would also set PermitRootLogin No in */etc/ssh/sshd_config*. It is better to run as a normal user and then use sudo command or sudo -s if you need to perform any actions as the super user.