In: Computer Science
In LINUX Provide the command(s) and any additional steps to perform the following tasks. You will need to be running with root privileges.
Tasks and Commands for them:
ln -s /etc/openldap/ldapconf /tmp/ldapconf
2. Find all .conf files in the /etc/ directory and its subfolders.
find -L /etc/ -name "*.conf"
3. Find all directories starting with "gnome" or "GNOME" anywhere under the /usr/share/ directory.
find /usr/share/ -type f -iname "*gnome*"
4. Sam and Susan are members of the "sales" group. Sam has been working on a project that has grown too big for one person. You will need to move the project folder and update the permissions so they can share their work. Start by moving /home/sam/stuff to /home/shared/. Rename the folder to "salesproject".
mv /home/sam/stuff /home/shared/
mkdir salesproject
5. Take a look at the permissions and ownership of the moved folder. Note that they didn't change. Recursively set the owner and group of /home/shared/salesproject/ and its contents to sam and sales, respectively.
ls -lrth - to see and match permissions of the directory and users
6. Change the permissions of all files in the /home/shared/salesproject/ directory to allow the user and group to read and write but not execute. Disallow all access to everyone else on the system. Change the permissions of the /home/shared/salesproject/ folder itself, allowing the owner and group full access, with no access for anyone else on the system.
chmod 700 /home/shared/salesproject/
7.