]> git.ipfire.org Git - thirdparty/shadow.git/commit
su.c: implement --exec
authorVito Caputo <vcaputo@pengaru.com>
Sun, 10 May 2020 01:01:22 +0000 (18:01 -0700)
committerSerge Hallyn <shallyn@cisco.com>
Fri, 28 Aug 2020 04:43:32 +0000 (23:43 -0500)
commit4047d1fe8edbe5ae952fef17fc09a4105d0de14b
treed0dbcc063ec1e5e70b2e13f8759d33bd5b273c60
parent6f38f43fdd745fa28b9e100f08bdf8b59b474280
su.c: implement --exec

It's now possible to run commands as other users without shell
interpolation by using "--exec":

Read /etc/shadow as root without specifying user:
```
su --exec /bin/cat -- /etc/shadow
```

Or specify user:
```
su --exec /bin/cat root -- /etc/shadow
```
src/su.c