0
0
Intro to Computingfundamentals~10 mins

User accounts and permissions in Intro to Computing - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new user account named 'alice'.

Intro to Computing
create_user [1]
Drag options to blanks, or click blank then click option'
Aalice
Bbob
Cadmin
Dguest
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different username than 'alice'.
Confusing user roles with usernames.
2fill in blank
medium

Complete the command to grant read permission to user 'alice' on file 'report.txt'.

Intro to Computing
grant_permission [1] report.txt read
Drag options to blanks, or click blank then click option'
Awrite
Badmin
Calice
Dguest
Attempts:
3 left
💡 Hint
Common Mistakes
Using permission types instead of usernames.
Confusing file names with user names.
3fill in blank
hard

Fix the error in the command to revoke write permission from user 'bob' on 'data.csv'.

Intro to Computing
revoke_permission [1] data.csv write
Drag options to blanks, or click blank then click option'
Adata.csv
Bbob
Cwrite
Dalice
Attempts:
3 left
💡 Hint
Common Mistakes
Using permission types or file names instead of the username.
Mixing up usernames.
4fill in blank
hard

Fill both blanks to check if user 'carol' has execute permission on 'script.sh'.

Intro to Computing
check_permission [1] [2] execute
Drag options to blanks, or click blank then click option'
Acarol
Bread
Cscript.sh
Dwrite
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of username and filename.
Using permission types instead of username or filename.
5fill in blank
hard

Fill both blanks to create a dictionary mapping users to their permission levels for 'project.doc'.

Intro to Computing
permissions = {: {BLANK_2}} for {{BLANK_2}} in users
Drag options to blanks, or click blank then click option'
Auser
Bpermissions[user]
Cusers
D{
Attempts:
3 left
💡 Hint
Common Mistakes
Missing the opening brace for the dictionary.
Using incorrect variable names.
Swapping keys and values.