Hi,
I just flashed the RPi2 image onto my board, and it seems that all permissions are wrong, let me show some examples:
- New user created with: "useradd -m <username>" and given a password through "passwd <username>".
- Try to login, password is correct, the TTY resets to the login screen.
- Login as alarm, try "su - <username>". The result:
$this->bbcode_second_pass_code('', 'warning: cannot change directory to /home/<username>: Permission denied
failed to execute /bin/bash permission denied')
Next use case, trying to add alarm (as root) to the sudoers file (/etc/sudoers) with the following entry:
$this->bbcode_second_pass_code('', 'alarm ALL=(ALL) ALL')
- Sucessfully save and exit to the login screen.
- Login as alarm and try to sudo. The result:
$this->bbcode_second_pass_code('', 'unable to stat /etc/sudoers: Permission denied
no valid sudoers sources found, quitting
unable to initialize policy plugin')
As stated, I just flashed the microSD (Samsung 32GB class 10) and booted up the Pi. The flashing was performed on another ArchLinux machine following the instructions (including the use of root for bsdtar instead of sudo)
Am I going retard with this issue and it's my fault, or is there an actual problem happening?
UPDATE: Another issue, root is not even able to change permissions on the files owned by it! The system seems to do it, but when you do "ls -lah" it shows that no change was applied
SOLVED: After multiple flashes, analysis and getting extremely annoyed I took it to the extreme, run a full format of the microSD card rewriting everything with zeros (deep format). I reflashed the image and it seems to be running fine this time. I don't know what to tell, maybe the partitions were in a bad state or there were some unmarked bad blocks on the card.