Top Tips, Part 49
21 Jan 2013Two things I keep forgetting:
- If you've got an account with a shell like "/sbin/nologin", and you want to run su but you keep getting "This account is currently not available", you can run su like so:
su -s /bin/bash -c [command] [userid]
- You can get Linux to drop its NFS caches (technically, pagecache + dentries + inodes) like so:
echo 3 > /proc/sys/vm/drop_caches
Thanks to the good folks at Server Fault/Stack Overflow.
Add a comment:
Name and email required; email is not displayed.
Related Posts
QRP weekend 08 Oct 2018
Open Source Cubesat Workshop 2018 03 Oct 2018
mpd crash? try removing files in /var/lib/mpd/ 11 Aug 2018