Running a command as a /bin/false user
In case anyone else wants to run a command as a user whose default shell is set to /bin/false, type this:
su -s command username
If you want a shell:
su -s bash username
Welcome to maniacmartin, the personal site of Martin Smith.
I'm listening to The Gap Band – You Dropped A Bomb on Me
I'm cycling the length of the UK (1000 miles) for charity. Sponsor me now!
In case anyone else wants to run a command as a user whose default shell is set to /bin/false, type this:
su -s command username
If you want a shell:
su -s bash username
No comments yet.
RSS feed for comments on this post. TrackBack URL