Skip to content

Latest commit

 

History

History
executable file
·
70 lines (49 loc) · 1.94 KB

Lab_010_Linux_ACLs.md

File metadata and controls

executable file
·
70 lines (49 loc) · 1.94 KB

Start:         2023-07-27 01:09:25
Finished:   2023-07-27 01:16:08



Lab 010: Linux Access Control List

Requirements

The Nautilus security team performed an audit on all servers present in Stratos DC. During the audit some critical data/files were identified which were having the wrong permissions as per security standards. Once the report was shared with the production support team, they started fixing the issues. It has been identified that one of the files named /etc/resolv.conf on Nautilus App 1 server has wrong permissions, so that needs to be fixed and the correct ACLs needs to be set.

  1. The user owner and group owner of the file should be root user.

  2. Others must have read only permissions on the file.

  3. User javed must not have any permission on the file.

  4. User eric should have read only permission on the file.


Steps

Login to the app server and switch to root. For the server credentials, check out the Project Nautilus documentation.

sshpass -p  '********' ssh -o StrictHostKeyChecking=no [email protected]
sudo su -
********  
[root@stapp01 ~]# getfacl /etc/resolv.conf 
getfacl: Removing leading '/' from absolute path names
# file: etc/resolv.conf
# owner: root
# group: root
user::rw-
group::r--
other::r--
[root@stapp01 ~]# setfacl -m u:javed:-,eric:r /etc/resolv.conf

[root@stapp01 ~]# getfacl /etc/resolv.conf
getfacl: Removing leading '/' from absolute path names
# file: etc/resolv.conf
# owner: root
# group: root
user::rw-
user:javed:---
user:eric:r--
group::r--
mask::r--
other::r--

Resources