please choosego to mobile | Continue to access the PC version
View: 10129|Reply: 53

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
Published in 2024-6-3 21:34:31 | Show all floors
It’s hard to find knowledgeable people within this topic, but the truth is could be seen as what happens you are preaching about! Thanks        Packers and Movers Chennai to Bikaner
Published in 2024-6-4 21:48:31 | Show all floors
i wish to have some diamond necklace but they are quite expensive,.        jual septic tank
Published in 2024-6-4 23:57:18 | Show all floors
The bonus is spread out over the first four deposits, with different bonus percentages for each deposit: 1st deposit — 500% bonus.        1win promo code no deposit
Published in 2024-6-6 00:50:12 | Show all floors
i would be busy again doing some home decors this coming christmas, i’d be buying some new decors for the season~        party rentals kissimmee
Published in 2024-6-12 19:32:01 | Show all floors
Well done! I thank you your contribution to this matter. It has been useful. my blog: exercise to reduce tummy        xnxx.com
Published in 2024-6-12 19:58:35 | Show all floors
gemstones are expensive but when you give a ring with gemstone to your girlfriend, she would really like it..        xnxx.com
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list