Portál AbcLinuxu, 27. prosince 2025 01:27
/bin/cd /cesta/ke/skriptu && /usr/bin/perl skript.pl > /usr/share/apache/skript.log 2>&1Pripadne pridat do skriptu nejake primitivni logovani?
su - httpd -s /bin/sh -c "/cesta/k/skriptu ..."
# getent passwd apache apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin # su - apache Last login: Thu Jul 25 01:10:05 CEST 2019 on pts/0 This account is currently not available. # su - apache -s /bin/sh Last login: Thu Jul 25 01:10:21 CEST 2019 on pts/0 -sh-4.2$ id uid=48(apache) gid=48(apache) groups=48(apache)
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.