Can't login as root on Pogoplug E-02

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Can't login as root on Pogoplug E-02

Postby lingrapher » Mon Sep 05, 2016 10:40 pm

Hi:
Just followed instructions here https://archlinuxarm.org/platforms/armv … 2-pinkgray
Installed ArchLinux.
However, I can not login as root user but only as "alarm" user.
I saw the announcement about "Initial user accounts and OpenSSH 7.0"
Can anyone tell me how to login as the root user?
I tried to edit /etc/ssh/sshd_config but can't edit the file as "alarm" user.
Thank you very much.
lingrapher
 
Posts: 4
Joined: Mon Sep 05, 2016 10:35 pm

Re: Can't login as root on Pogoplug E-02

Postby moonman » Tue Sep 06, 2016 4:58 am

su or su root
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Can't login as root on Pogoplug E-02

Postby summers » Tue Sep 06, 2016 9:39 am

Sudo is better - is alarm in the sudoers group by default?
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Can't login as root on Pogoplug E-02

Postby WarheadsSE » Tue Sep 06, 2016 2:32 pm

sudo is no installed by default.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Can't login as root on Pogoplug E-02

Postby lingrapher » Tue Sep 06, 2016 3:06 pm

It seems logon alarm/alarm is the default.
How to install sudo then?
Thank you very much
lingrapher
 
Posts: 4
Joined: Mon Sep 05, 2016 10:35 pm

Re: Can't login as root on Pogoplug E-02

Postby WarheadsSE » Tue Sep 06, 2016 5:50 pm

$this->bbcode_second_pass_code('', '$ su - root
# pacman -S sudo')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Can't login as root on Pogoplug E-02

Postby lingrapher » Sat Sep 17, 2016 3:58 am

Tried your suggestions, but still could not install sudo.
Please help!

I need to login in as the root user.

Thank you very much
Attachments
Alarm_su_root.png
Alarm_su_root.png (10.86 KiB) Viewed 8016 times
lingrapher
 
Posts: 4
Joined: Mon Sep 05, 2016 10:35 pm

Re: Can't login as root on Pogoplug E-02

Postby summers » Sat Sep 17, 2016 7:54 am

Did you do $this->bbcode_second_pass_code('', 'su - root') first?
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Can't login as root on Pogoplug E-02

Postby lingrapher » Sat Sep 17, 2016 4:29 pm

Thank you very much.
That worked.
Then I tried to edit nano /etc/ssh/sshd_config
which of the following I should use to get root access?
"PermitRootLogin yes"
or
"PermitRootLogin without-password"

I am trying to install SAMBA to use this as a NAS.

Thanks again.
lingrapher
 
Posts: 4
Joined: Mon Sep 05, 2016 10:35 pm

Re: Can't login as root on Pogoplug E-02

Postby WarheadsSE » Sat Sep 17, 2016 6:29 pm

If you are going to enable root account ssh access I strongly suggest 'without-password' so that it will only accept key based. However, security practices state that you're better of just accessing via alarm or another created user, then using su or sudo.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 15 guests