please choosego to mobile | Continue to access the PC version
View: 6959|Reply: 3

su user don't work

[Copy link]

1

threads

2

posts

9

credits

Novice

Rank: 1

credits
9
Published in 2015-12-28 17:26:30 | Show all floors |Read mode
Hi guys !

Just got my OrangePi. I install Raspbian and had some trouble to login until I try root/orangepi.

I would not login as root so I 'adduser user'.
I cannot 'su user' or even 'ssh@orangepi_IP'
There is no error, just the connection close.

Any idea ?

4

threads

14

posts

97

credits

Registered member

Rank: 2

credits
97
Published in 2016-1-25 01:34:54 | Show all floors
Edited by mistofeles at 2016-3-2 18:37

edit /etc/group and add your username to the line on 'sudo'. Read the file and learn the format.

I have not had problems with the original OrangePi version of Raspian, when I use SSH:
just use 'ssh root@192.168.0.xxx' to make the connection. You can not use the name of the board as 'ssh root@orangepi' before you have given the name and IP address of the board to the DHCP/DNS server of your domain or written tehese to  /etc/hosts of your Linux PC.
With your Linux PC you find the address of your OrangePi with command
nmap --ttl 1 -sP 192.168.0.0/24
- it gives you the IP address of all devices in your 192.168.0.XXX local network. Just try them all, if you don't find any other way to comprehend which is wht.

1

threads

8

posts

34

credits

Novice

Rank: 1

credits
34
Published in 2016-3-28 17:06:46 | Show all floors
Edited by KeremER at 2016-3-28 17:11

I have the same problem too. Furthermore the same thing happens when I want to use su to change to another user. I try to su and nothing happens. The logs indicate the pam session opens and then closes immediately. Other logs have no indication of anything else.

Excerpt from my auth.log:
su:
Mar 28 12:08:01 orangepi su[2985]: Successful su for userxx by root
Mar 28 12:08:01 orangepi su[2985]: + /dev/pts/0 root:userxx
Mar 28 12:08:01 orangepi su[2985]: pam_unix(su:session): session opened for user userxx by root(uid=0)
Mar 28 12:08:01 orangepi su[2985]: pam_unix(su:session): session closed for user userxx
Mar 28 12:08:13 orangepi sshd[2723]: pam_unix(sshd:session): session closed for user root

ssh:
Mar 28 12:08:29 orangepi sshd[2987]: Accepted password for userxx from x.x.x.x port 56897 ssh2
Mar 28 12:08:29 orangepi sshd[2987]: pam_unix(sshd:session): session opened for user userxx by (uid=0)
Mar 28 12:08:29 orangepi sshd[2987]: pam_unix(sshd:session): session closed for user userxx


I am comparing pam files but the contents seem to be the same with raspberry pi.

1

threads

8

posts

34

credits

Novice

Rank: 1

credits
34
Published in 2016-3-29 06:29:46 | Show all floors
In fact don't loose so much time with Raspbian. Although you might think to cut the learning curve by using a known os (which I did the same mistake). But it is not true. Because it was just migrated from banana-pi a while ago and nobody seems to care. It is bug ridden and useless. You'd better go for "armbian" which currrently has Jessie distro, current kernel (compiled in March) and working out-of-the-usb right
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list