TEXT 28
System Admin Class 4 Guest on 5th November 2022 10:23:40 AM
  1. VNC works using the protocol of RFB, remote frame buffer
  2.  
  3. multiple clients can connect to the vnc server.
  4.  
  5. /etc/groups - shows all the group including the members
  6.  
  7. chmod
  8.  
  9. 4 = user
  10. 2 = group
  11. 1 = other
  12.  
  13. Full permission = 4 + 2 + 1 = 7
  14.  
  15. chown changing the ownership and group of the file
  16. chown user1:user1 myfile
  17. chgrp = just changes the group of the file
  18.  
  19. chmod +x filename
  20. this will give execute command to user, group and others
  21.  
  22. chmod -r filename
  23. this will revoke read permission to user, group and others
  24.  
  25. disk quota - restrict the usage of disk for the user
  26.  
  27. to enable the quota, it should be mentioned in the /etc/fstab
  28.  
  29. /etc/sudoers
  30.  
  31. root ALL=(ALL) ALL
  32. The first All defines the host
  33. Second All means control all users and group
  34. The third one is to allow all commands
  35.  
  36. IF ALL = NOPASSWD: systemctl restart htppd, PASSWD: /bin/chown
  37. then it won't ask password for specific tasks

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.