PDA

View Full Version : What is ubuntu 13.10 password for root?


nicholes
2015-10-21, 14:47
I am using ubuntu in andriod phone. I have img file and it runs via terminal when I execute sh file. Problem is when I start terminal and try to install anything using apt-get I got permission denied. When I type su it ask for password. I know one password when I log in via vnc but that doesn't work. What should I do?

sixwheeledbeast
2015-10-21, 15:07
With Ubuntu root doesn't work like that.
You need an admin account and use the admin accounts password.

Root password is locked, you need to use sudo "command" then enter the admins user password.

kaari
2015-10-21, 15:26
I think you can use "sudo passwd" to set root password

sixwheeledbeast
2015-10-21, 16:32
That isn't advised.
https://help.ubuntu.com/community/RootSudo

nicholes
2015-10-21, 16:58
Sudo passwd
Permission denied


How do I create or log into admin account?

Please note I am running ubuntu in an andriod phone

nicholes
2015-10-21, 17:00
When I type "sudo"

Permission denied

nieldk
2015-10-21, 17:28
If you dont know, you dont need it ;)

From where, with what, etc, etc, etc, did you install Ubuntu ?

Correct usage is

sudo <command> <arguments>

If that doesnt work, something is screwed with whatever, however, whereever you installed Ubuntu.

mscion
2015-10-21, 18:56
I use Linux on Android . I just tried to run ubuntu in a desktop environment on my phone. Opened a terminal and ran sudo apt-get update. It then asked for password. In this case the preset password is ubuntu. Hope this helps.

nicholes
2015-10-22, 06:19
sudo apt-get update gives permission denied

nicholes
2015-10-22, 06:20
I use Linux on Android . I just tried to run ubuntu in a desktop environment on my phone. Opened a terminal and ran sudo apt-get update. It then asked for password. In this case the preset password is ubuntu. Hope this helps.

Can you post link for your img file Ubuntu Linux and sh file.

mscion
2015-10-22, 11:21
Hi, You can just download the LOA app and get the scripts and a variety of img files from there (ubuntu, fedora, archlinux...)

https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid&hl=en

nicholes
2015-10-22, 12:04
Hi, You can just download the LOA app and get the scripts and a variety of img files from there (ubuntu, fedora, archlinux...)

https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid&hl=en

i tried this but after downloading the image file it does not launch in my phone , the app crash every time when i launch ubuntu or any os

wait .. can i launch this image (ubuntu) using terminal???

if Yes then how do i do it

mscion
2015-10-22, 12:44
i tried this but after downloading the image file it does not launch in my phone , the app crash every time when i launch ubuntu or any os

wait .. can i launch this image (ubuntu) using terminal???

if Yes then how do i do it

I've done it in the past but I then I just ran the script from the terminal. lol.

A few questions:

1)What device do you have?
2)Which version of android are you running (kitkat, lollipop?)
3)Presumably you are rooted. Is your kernel set to permissive?


This might be helpful too.

http://www.robherc.com/hosted/linuxonandroid/FAQ.html#3

nicholes
2015-10-22, 14:05
I am rooted.

Device name is Galaxy Note 2
Running kitkat

Third question? I don't get it

mscion
2015-10-22, 14:51
Ok. What kernel are you using? Is it stock? If so you will need to flash a kernel that allows you to set selinux=permissive. You can check xda in original development for one. Once you've flashed the kernel you can set Selinux to permissive from terminal or using an app that does it. Possiby the kernel will have it permissive by default. Then try running loa.

nicholes
2015-10-22, 15:56
Ok. What kernel are you using? Is it stock? If so you will need to flash a kernel that allows you to set selinux=permissive. You can check xda in original development for one. Once you've flashed the kernel you can set Selinux to permissive from terminal or using an app that does it. Possiby the kernel will have it permissive by default. Then try running loa.

I would search about it and fix it.

Thanks for the quick reply.