December 6, 20187 yr 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
December 6, 20187 yr 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, 20187 yr by nuhll
December 6, 20187 yr 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
Archived
This topic is now archived and is closed to further replies.