View: 28398|Reply: 68

How to add a new user and switch to it?

[Copy link]

11

threads

30

posts

50

credits

Registered member

Rank: 2

credits
50
Published in 2015-5-6 06:54:18 | Show all floors |Read mode
How to add a new user and switch to it? I've tried `adduser` and 'useradd` to create a new user, but when I try to switch to the new user `su NEWUSERNAME` nothing really changes, I'm still the root user. Even tried logging out and then back in as the newly created user, but that doesn't work either. I'm on a 'headless' RaspbianOS Orange Pi Plus, stuck with only the ability to use the 'root' account.

0

threads

3

posts

56

credits

Registered member

Rank: 2

credits
56
Published in 2015-8-5 22:27:05 | Show all floors
Hello,

I am having the same problem.

zhao_steven , any update on this??

0

threads

1

posts

8

credits

Novice

Rank: 1

credits
8
Published in 2015-8-4 05:18:09 | Show all floors
Hi, I had the same problem BryanFRitt was explaining.
Created a new user su into it, nothing happens
Even if I try to log in from the login screen it doesn't work. Also trying to go into a shell login (ctrl + alt + F1-6) freezes the board without any possibility to recover apart from reboot.
Published in 2015-5-7 21:13:13 | Show all floors
I will fix it.  You need wait me.

0

threads

4

posts

20

credits

Novice

Rank: 1

credits
20
Published in 2015-8-20 07:31:42 | Show all floors
any news zhao_steven ?

5

threads

354

posts

2723

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2723
Published in 2015-8-21 18:12:39 | Show all floors
Edited by fritz at 2015-8-21 11:13

This is the response:
You need wait for a while.


@ALL
open a terminal and write:

  1. echo 32768 > /proc/sys/vm/mmap_min_addr
Copy code
or maybe if it does not work:
  1. echo 4096 > /proc/sys/vm/mmap_min_addr
Copy code

Now you can login with useraccount:
username: orangepi
password: orangepi
or
username:bananapi
password: bananapi

please confirm





Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

5

threads

354

posts

2723

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2723
Published in 2015-8-21 20:02:10 | Show all floors
Ok, tried myself and it worked.


question: but when I reboot it does not work anymore why?

response: please wait for a while ahhhh this is @steven

response from fritz:

To ensure that this change in value is retained even after a reboot
you have to create a configuration file etc/sysctl.d/mmap_min_addr.conf

how to do?

from a terminal with root permissions type:

  1. echo "vm.mmap_min_addr = 4096" >  /etc/sysctl.d/mmap_min_addr.conf
Copy code


or

  1. echo "vm.mmap_min_addr = 32768" >  /etc/sysctl.d/mmap_min_addr.conf
Copy code


depends on the value you want. but both values should work
reboot and check if value change is permanent with:
       
cat  /proc/sys/vm/mmap_min_addr


Well, I'm a little pissed off about how things are going here
This is my last post on this forum until new and working code appears!

Bye guys

Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

0

threads

1

posts

10

credits

Novice

Rank: 1

credits
10
Published in 2015-9-6 07:30:47 | Show all floors
@fritz, I registered just to be able to say thank you!

4

threads

12

posts

72

credits

Registered member

Rank: 2

credits
72
Published in 2015-10-11 05:16:06 from mobile | Show all floors
Still same problem! Not interested in fixing it?

4

threads

12

posts

72

credits

Registered member

Rank: 2

credits
72
Published in 2015-10-11 05:17:38 from mobile | Show all floors
Still not working!  Not interested in fixing it?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list