Linked Questions

-1
votes
0answers
158 views

what is the difference between “/sbin/nologin” and “/bin/false”? [duplicate]

Possible Duplicate: What's the difference between /sbin/nologin and /bin/false They are not having the same size. In what do they differ?
80
votes
4answers
11k views

Why are true and false so large?

After finding out that several common commands (such as read) are actually Bash builtins (and when running them at the prompt I'm actually running a two-line shell script which just forwards to the ...
73
votes
8answers
65k views

Does /usr/sbin/nologin as a login shell serve a security purpose?

In my /etc/passwd file, I can see that the www-data user used by Apache, as well as all sorts of system users, have either /usr/sbin/nologin or /bin/false as their login shell. For example, here is a ...
5
votes
5answers
375 views

Are there types of Unix shells? [closed]

I found there are shells like nologin, false, and true. What else are there? I don't know what is the correct keyword to be used to list the shells. Whenever I search using the keywords linux shell ...
8
votes
3answers
22k views

Can a command be executed over ssh with a nologin user?

If a user has loginShell=/sbin/nologin is it still possible to ssh user@machine [command] assuming that the user has proper ssh keys in its home directory that can be used to authenticate? My goal ...
4
votes
3answers
1k views

Should I always set the root shell to /usr/bin/false?

To prevent abuse of the root account (on my macOS, single user) machine, should I always set the root shell to /usr/bin/false (or /sbin/nologin)? For example should I always: sudo /usr/bin/dscl . -...
3
votes
1answer
6k views

Starting Tomcat Service when starting CentOS/RHEL/Fedora

I want to install tomcat 8 and run it at startup time I am following these tutorials: Install Tomcat 7 on CentOS, RHEL, or Fedora How to install Tomcat 8 on a CentOS 6 VPS I created the tomcat user:...
2
votes
2answers
177 views

Revise users which have default /bin/bash shell setting

On SLES 11 SP 2 I found out with webmin that lot of default users have the /bin/bash setting which in principle allows them to run in a SSH shell. I consider it as a possible security risk. My ...
0
votes
1answer
99 views

Restrict the access of an account in linux?

I've created a service account in my Redhat machine. The purpose of the account is to execute the bash script which I had created. The bash script basically checks the system properties like cpuinfo,...
2
votes
1answer
31 views

Solaris 5.10 shell replacement for Centos 7 migration

I have an old Solaris 5.10 server. I'm migrating the tomcat products to Centos 7. There are two accounts on the Solaris server that I need to migrate. The shells for both of those accounts are ...