mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
de-p1st-ssh: allow for root
This commit is contained in:
parent
8a4e074096
commit
d98416fefc
@ -2,9 +2,9 @@
|
|||||||
_pkgname=ssh-key-yoda
|
_pkgname=ssh-key-yoda
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.3
|
pkgver=0.1.0
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="ssh authorized_keys for user yoda with uid 1000"
|
pkgdesc="ssh authorized_keys for root (uid=0) and yoda (uid=1000)"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://codeberg.org/privacy1st/${_reponame}"
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
@ -21,4 +21,8 @@ package() {
|
|||||||
install -dm0700 -o1000 "$pkgdir"/home/yoda/
|
install -dm0700 -o1000 "$pkgdir"/home/yoda/
|
||||||
install -dm0700 -o1000 "$pkgdir"/home/yoda/.ssh/
|
install -dm0700 -o1000 "$pkgdir"/home/yoda/.ssh/
|
||||||
install -m0600 -o1000 authorized_keys "$pkgdir"/home/yoda/.ssh/authorized_keys
|
install -m0600 -o1000 authorized_keys "$pkgdir"/home/yoda/.ssh/authorized_keys
|
||||||
|
|
||||||
|
install -dm0700 -o0 "$pkgdir"/root/
|
||||||
|
install -dm0700 -o0 "$pkgdir"/root/.ssh/
|
||||||
|
install -m0600 -o0 authorized_keys "$pkgdir"/root/.ssh/authorized_keys
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
_pkgname=ssh
|
_pkgname=ssh
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.9
|
pkgver=0.1.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ssh with configuration"
|
pkgdesc="ssh with configuration"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -28,7 +28,7 @@ echo "$stdin" | grep --quiet '^#X11Forwarding\s.*$'
|
|||||||
|
|
||||||
echo "=== sed ===" 1>&2
|
echo "=== sed ===" 1>&2
|
||||||
echo "$stdin" | sed '
|
echo "$stdin" | sed '
|
||||||
s|^#PermitRootLogin\s.*$|PermitRootLogin no|;
|
s|^#PermitRootLogin\s.*$|PermitRootLogin yes|;
|
||||||
s|^#PubkeyAuthentication\s.*$|PubkeyAuthentication yes|;
|
s|^#PubkeyAuthentication\s.*$|PubkeyAuthentication yes|;
|
||||||
s|^#PasswordAuthentication\s.*$|PasswordAuthentication no|;
|
s|^#PasswordAuthentication\s.*$|PasswordAuthentication no|;
|
||||||
s|^#PermitEmptyPasswords\s.*$|PermitEmptyPasswords no|;
|
s|^#PermitEmptyPasswords\s.*$|PermitEmptyPasswords no|;
|
||||||
|
Loading…
Reference in New Issue
Block a user