Skip to content

Latest commit

 

History

History

0x01-shell_permissions

0x01-shell_permissions

  • Create a script that switches the current user to the user betty.
  • Write a script that prints the effective username of the current user.
  • Write a script that prints all the groups the current user is part of.
  • Write a script that changes the owner of the file hello to the user betty.
  • Write a script that creates an empty file called hello.
  • Write a script that adds execute permission to the owner of the file hello. The file hello will be in the working directory
  • Write a script that adds execute permission to the owner and the group owner, and read permission to other users, to the file hello. The file hello will be in the working directory
  • Write a script that adds execution permission to the owner, the group owner and the other users, to the file hello The file hello will be in the working directory
  • Write a script that sets the permission to the file hello as follows: Owner: no permission at all Group: no permission at all Other users: all the permissions
  • Write a script that sets the mode of the file hello to this: -rwxr-x-wx 1 julien julien 23 Sep 20 14:25 hello
  • Write a script that sets the mode of the file hello the same as olleh’s mode. The file hello will be in the working directory The file olleh will be in the working directory
  • Create a script that adds execute permission to all subdirectories of the current directory for the owner, the group owner and all other users.
  • Create a script that creates a directory called my_dir with permissions 751 in the working directory.
  • Write a script that changes the group owner to school for the file hello
  • Write a script that changes the owner to vincent and the group owner to staff for all the files and directories in the working directory.
  • Write a script that changes the owner and the group owner of _hello to vincent and staff respectively. The file _hello is in the working directory The file _hello is a symbolic link
  • Write a script that changes the owner of the file hello to betty only if it is owned by the user guillaume.
  • Write a script that will play the StarWars IV episode in the terminal.