27.4.12

Limit concurrent session in linux

Check the file /etc/security/limits.conf. 

* hard maxlogins 4    (The asterisk means global. 4 is the number of concurrent logins.)



Eg.
         @users  hard  maxlogins  1

--------------
Thanks
System Admin
TIST

21.3.12

Change ownership of a directory in Linux

chown -R client1:users /home/client1

chown -R username somedir
chgrp -Rv usergroup somedir