Hot answers tagged users
For a user someusername to be able to write in folder, that was initially made by root, you need to change the rwx permissions and/or the owner resp. group. If you restrict the permissions then someusername needs to be either owner or group member. If you do chmod 777 /somefolder, everyone can read and write, including someusername. If you do chmod 770 ...
While Anthon's answer is technically correct, I'm writing this one to explain where Octal Permissions come from, and how to calculate them. Octal Permissions is one of the most important concepts in the *nix world. Why This Concept is Important Since the Birth of Unix Circa 1969 -1974 on a discarded DEC PDP-7 (see photo and history) and Linus Torvalds ...
Changing the login shell does not necessarily prevent users from authenticating (except in some services that check if the user's shell is mentioned in /etc/shells). People may still be able to authenticate to the various services that your system provides to unix users, and may still be authorized to perform some actions albeit probably not run arbitrary ...
You can use chsh command: ~# chsh myuser Enter new shell details when requested: Login Shell [/bin/sh]: /bin/nologin Or shorter version: ~# chsh myuser -s /bin/nologin
Only top voted, non community-wiki answers of a minimum length are eligible