Tiny Core Base > piCore Test Releases
piCore-12.0beta1
mortegai:
Yes, openssh works, but if you do backup (filetool.sh -b), in the next boots a message appears (not harmful) about user sshd already exists, because the addgroup is executed.
Perhaps the best would be to adapt the script to x86 style.
Rich:
Hi Juanito
--- Quote from: Juanito on October 06, 2020, 09:11:31 AM --- ... openssh works for me without that command being present? ...
--- End quote ---
It works because the addgroup command is probably present:
--- Code: --- --- Snip ---
# This fails with "applet not found"
busybox groups sshd >/dev/null 2>&1
# This detects a failure and assumes group sshd does not exist, so it adds it.
[ $? -ne 0 ] && busybox addgroup -g 33 sshd
--- Snip ---
--- End code ---
Juanito:
init.d adjusted
mortegai:
--- Quote from: Juanito on October 06, 2020, 10:24:09 AM ---init.d adjusted
--- End quote ---
But now, if the sshd user does not exist (initial/pristine situation) occurs error:
Privilege separation user sshd not exist
and sshd does not run.
Rich:
Hi Juanito
Another way to test if group sshd exists.
Change this:
--- Code: --- busybox groups sshd >/dev/null 2>&1
[ $? -ne 0 ] && busybox addgroup -g 33 sshd
--- End code ---
To this:
--- Code: --- touch /tmp/groups
chown tc:sshd /tmp/groups >/dev/null 2>&1
[ $? -ne 0 ] && busybox addgroup -g 33 sshd
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version