ken-ji Posted December 6, 2018 Share Posted December 6, 2018 Actually you can, but you'd need to come from root user/process root@MediaStore:~# su adm -s /bin/sh -c '/bin/ps xafu' | grep adm adm 30424 0.0 0.0 12744 3140 ? R 14:51 0:00 \_ /bin/ps xafu root 30425 0.0 0.0 5712 2048 pts/0 S+ 14:51 0:00 \_ grep adm Quote Link to comment
NewDisplayName Posted December 6, 2018 Share Posted December 6, 2018 (edited) u changed shell to /bin/sh ... thats why it worked, try it with /bin/false But i guess thats what u mean with if u come from root. But he might not understand thta dont confsue him Edited December 6, 2018 by nuhll Quote Link to comment
scouserontour Posted December 6, 2018 Share Posted December 6, 2018 10 hours ago, nuhll said: "An emergent use of /bin/false, as you identified, is as a null shell for users not allowed to log in. The system in this case will behave exactly as though the shell failed to run." https://serverfault.com/questions/519215/what-is-the-difference-between-sbin-nologin-and-bin-false cheers for the link and explanation Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.