Skip to content
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

Android/Termux/Samba server won't start as root when previously ran as non-privileged user #22501

Open
bugith opened this issue Dec 10, 2024 · 0 comments
Labels
bug report Something is not working properly untriaged

Comments

@bugith
Copy link

bugith commented Dec 10, 2024

Problem description

Can't start smbd as root

What steps will reproduce the bug?

start smbd as user, killall, try to start as root

What is the expected behavior?

should start OK
but now
echo $?
1
And cat log.smbd :
...
[2024/12/06 18:40:06, 0] ../../source3/lib/dumpcore.c:257(dump_core_setup)
Unable to setup corepath for smbd: File exists

ls -l usr/var/log/samba/cores
total 14
drwx------. 2 u0_a299 u0_a299 3452 Oct 17 09:09 rpcd_classic
drwx------. 2 u0_a299 u0_a299 3452 Oct 17 09:09 rpcd_winreg
drwx------. 2 u0_a299 u0_a299 3452 Oct 17 09:09 samba-dcerpcd
drwx------. 2 u0_a299 u0_a299 3452 Oct 12 22:04 smbd

System information

samba version 4.16.11-3 (patch, but same with -2)

Termux Variables:
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=28917
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.de.sahilister.net/termux/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.44.5
Android version:
14
Kernel build information:
Linux localhost 5.4.242-qgki-g3f7ff67280a0 #1 SMP PREEMPT Thu Oct 31 18:49:26 CST 2024 aarch64 Android
Device manufacturer:
Nothing
Device model:
A063
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.widget versionCode:13
@bugith bugith added bug report Something is not working properly untriaged labels Dec 10, 2024
@bugith bugith changed the title [Bug]: Samba server won't start as root when previously started as user [Bug]: Samba server won't start as root when previously ran as user Dec 11, 2024
@bugith bugith changed the title [Bug]: Samba server won't start as root when previously ran as user Android/Termux/Samba server won't start as root when previously ran as non-privileged user Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly untriaged
Projects
None yet
Development

No branches or pull requests

1 participant