EXALAB / AnLinux-App

AnLinux allow you to run Linux on Android without root access.
Apache License 2.0
1.66k stars 246 forks source link

Adduser problem #64

Open isrgish opened 5 years ago

isrgish commented 5 years ago

I'm having an issue yo add a user. When I try putting in the password I get a System error and it doesn't add the pass word.

root@localhost:~# adduser sruly Adding user 'sruly' ... Adding new group 'sruly' (1000) ... Adding new user 'sruly' (1000) with group 'sruly' ... The home directory '/home/sruly' already exists. Not copying from '/etc/skel'. adduser: Warning: The home directory '/home/sruly' does not belong to the user you are currently creating. Enter new UNIX password: Retype new UNIX password: passwd: System error passwd: password unchanged Try again? [y/N] y Enter new UNIX password: Retype new UNIX password: passwd: System error passwd: password unchanged Try again? [y/N] y

I tried a few times with different passwords but always with the same results

I have installed the Ubuntu distro.

Thanks for your great work.

isrgish commented 5 years ago

If I start linux while I'm signed into tetmux as root then I can add a new user. But then the user isn't available when I start it from not root user.

royalterra commented 5 years ago

Well the problem is solve installing in termux tsu after you execute tsu and start distro us normal. Them you do adduser dummy and works perfect in debian. The problem not end here them add that user to vncserver and you cant login that user. Ok install gnome users and groups and the gui cant open it. Really use the gui and debian or related us root always is a security issue them second problem not web browser works us root not matter you install

isrgish commented 5 years ago

I don't understand what you wrote.

Do you have a solution for my problem?

LuckyStar04 commented 4 years ago

pkg install tsu when run ubuntu, try this instead: tsudo ./start-ubuntu.sh

isrgish commented 4 years ago

I was looking for a way to run it without super user. when you run it with tsudo I'm then root user.

Yrosenz commented 3 years ago

well you can always use useradd, wich is the original way to add user in linux. adduser is scrip that make it easier to add a user.

isrgish commented 3 years ago

Can I use add a user and then login without root? I have tried but can figure out how to do it.