ref: 3805c2b34bf8671de0626a55ca4e5c17251eea5d
parent: eff875e1fd1e2e957f0b0aaf33ffa90bc1778ce2
author: sirjofri <sirjofri@sirjofri.de>
date: Tue Dec 15 05:12:17 EST 2020
fix?
--- a/pub/changeblog.plain.xml
+++ b/pub/changeblog.plain.xml
@@ -8,7 +8,7 @@
<rights>© Copyright 2020 sirjofri</rights>
<id>https://sirjofri.de/</id>
<title>changeblog</title>
-<updated>2020-12-15T11:08:29+01:00</updated>
+<updated>2020-12-15T11:12:01+01:00</updated>
<entry>
<title>Restrict RCPU User Access to Groups</title>
<id>https://sirjofri.de/changeblog/1596011563/</id>
@@ -32,7 +32,7 @@
fn useringroup{
grep $1 $userfile | {
found=0
- while(~ $found 0 && line=`:{read}){
+ while(~ $found 0 &&&& line=`:{read}){
if(~ $line(2) $2){
found=1
}
@@ -50,9 +50,9 @@
fn server {
~ $#remote 0 || echo -n $netdir $remote >/proc/$pid/args
rm -f /env/'fn#server'
- . <{n=`{read} && ! ~ $#n 0 && read -c $n} >[2=1]
+ . <{n=`{read} &&&& ! ~ $#n 0 &&&& read -c $n} >[2=1]
}
- exec tlssrv -a /bin/rc -c 'useringroup $user sys && server'
+ exec tlssrv -a /bin/rc -c 'useringroup $user sys &&&& server'
This checks if the user is in group sys and only then calls the server function. Otherwise the connection
is terminated.