-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sudo is non functional #4
Comments
@Lite5h4dow thank you for your interest in this project. What is happening is probably an selinux issue since the entire application runs in userspace.
Can |
Yeah, I have the same problem $ sudo
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: unable to load /usr/lib/sudo/sudoers.so: /usr/lib/sudo/sudoers.so: cannot stat shared object: Bad file descriptor
sudo: fatal error, unable to load plugins
$ file /usr/lib/sudo/sudoers.so
/usr/lib/sudo/sudoers.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=fdd8877dfa30f38871fd5735638d346a4553b1b7, stripped
$ I think it's due to android/ndk#201 Edit 1: After digging deeper, Edit 2: According to https://www.sudo.ws/man/1.8.14/sudo.conf.man.html,
Edit 3: |
Here are some links where repeating this topic may be worth the effort and time:https://github.com/archlinuxarm |
This topic is touched upon at ArchStrike/ArchStrike#411: closed (relavant comments in closed issues are welcome anytime)
Where else is sudo upstream? One place has been touched; Where else? |
archlinuxarm just swallowed an issue posted similar to the ArchStrike post. Surprising experience of the #$@& sort: https://github.com/archlinuxarm
|
https://plus.google.com/109614420080028230010/posts/L1aKsLUhJ2i posted and populated. |
@aiisuika do you have a link?
The reason Arch Linux was chosen fall 2017 for further development into this project is that Arch Linux passed the most tests in flying colors. Some things don't work, and will not work because of SE Linux permissions. From what you say, this is not the issue. Do you have any idea what is wrong with |
Yup, Neo-Oli's https://github.com/Neo-Oli/termux-ubuntu In the proot I did the usual $ passwd
Type new UNIX password: ***
Retype new UNIX password: *** Once done, finally install sudo, $ useradd aiisuika
...
# now login
$ su aiisuika
aiisuika@localhost $ sudo apt install example
# it should ask for the root password
$ And that's it, seems to work for me. |
@aiisuika it is nice that |
@aiisuika you inspired me to install Ubuntu in Termux PRoot again in search of an answer to this topic. Unfortunately, I cannot get past step one:
|
On my rooted phone, it worked flawlessly... Ok, there seems to be nothing.. |
This https://github.com/termux/libandroid-shmem project might give us the shm functionality we are seeking in this issue, and these: |
OMG,I have the same problem as mentioned above,and I try to change the permission of |
I think proot isn't handling sonething, so selinux is saying no. |
I'd also love to see sudo working again in TermuxArch. Any progress so far? |
Check for progress in issues like this termux/libandroid-shmem#4 one throughout this thread even though they are marked closed. Asking at IRC: wiki.archlinux.org/index.php/IRC_channel might help resolve this topic sooner. |
#4 (comment) : Is this a https://github.com/termux/libandroid-shmem issue with |
Thread link posted at https://gitter.im/termux/offtopic?at=5b1c67f34b2d9417e1d8e617 |
I'm referring to that problem when using
Unfortunately, I'm not that into Android development that I can judge if it's because of issues in |
can u force to install 32 bit of archlinux inside termux that had arm64-v8a?? |
yo, Could this be related to systemd by any chance? I noticed sudo is now handled by systemd which is not enabled in chroot env apparently. I did not have much time to research on this lately though. Anyone familiar with this? |
@Dj-jom2x yes, with qemu and similar:
@sergensetup an information update regarding this matter is termux/proot#32 (comment) here. |
The Arch Linux systemd package is not purged at install at present. It appears to be a redundant package, since systemd is already present on device in Android. However, Arch Linux emacs seems to need it for some reason, so it is left intact at setup. Feel free to contact https://github.com/termux/proot/issues with your insight; the more people pondering this issue, the better. Hopefully a resolution is forthcoming soon. |
Accessing libandroid-shmem support is now possibly in TermuxArch, use |
It appears that we have just had a break through with this topic moments ago, https://gitter.im/termux/offtopic?at=5b9ec49ce5c2cc56ad9c6814 here. |
https://github.com/xeffyr stated:
|
Variable substitution in TermuxArch resolves sudo. Variable assignment
|
This is not the case should a sudo command wish to create hard links on device. Use another session, and fulfill the sudo requirements as root in Arch Linux in Termux PRoot if you encounter errors using |
If I create a new user for arch linux in Termux Proot with
it doesn't let me fill in a password for that user. After installing sudo and starting TermuxArch with
And typing
I get the following:
Problem is, I don't have a password for the use. How do I counter this? |
@Tuff6ong this is invitatio to create new password. Create it and disable sudo password with sudoers if you want |
Well, if I try to fill in a new password during this invitation I get: 'Sorry, try again' |
Should work. Try to copy-paste password (don't forget about ctrl+alt+v to paste from keyboard) |
@SDRausty I can't say that I fully follow your instructions to make sudo work.
Okay so, do I need to put
I did both, but I'm still getting the error earlier in the thread
Now, maybe I didn't add the right stuff to I've also seen you mention libandriod-shmem a bunch of times when people ask how to make sudo work, is it needed for something? Should we install it from a regular Termux session with I have a non-rooted phone, if that is helpful. Installed TermuxArch with the official script, newest version on github. |
@SDRausty Are you implying that this is currently already fixed by that commit? But I'm still encountering exactly the same problem just now with a fresh install of TermuxArch. I noticed that in another issue report (SDRausty/TermuxArch#180) You linked to this issue report on Termux Proot without actually commenting anything: termux/proot#70 Are you suggesting that this fundamentally a problem caused by Termux Proot and there's nothing can be done on the side of TermuxArch? |
Is a newly arisen
The original These PRoot issues might be able to resolve this new error. As there are a number of newly arisen errors with a fresh TermuxArch in a fresh Termux v0.74 installation:
Might also be appropriate links to seek resolution. |
This appear to be fixed by a new update to termux-proot package! :D |
Yes |
This TermuxArch/TermuxArch@161eaba commit automates adding
|
I've installed sudo in tumux arch I don't know if this is an issue with sudo or termux-arch but sudo doesn't work, this is a big issue for alot of the dependancies especially for package managers like pacman and yaourt.
The text was updated successfully, but these errors were encountered: