how to make PHP lists all Linux Users?

前端 未结 4 1594
轮回少年
轮回少年 2020-12-20 02:04

I want to build a php based site that (automate) some commands on my Ubuntu Server

first thing I did was going to the file (sudoers) and add the user www-data so I c

4条回答
  •  甜味超标
    2020-12-20 02:50

    /etc/passwd is readable by anyone, so you should be able to execute your command without having any special rights (unless PHP prevents it?).

提交回复
热议问题