Setting File Permissions - Exercise
Setting Shell Script Execute Permission
Objective: Use the chmod command to set execute permission on a script file.
Exercise Scoring
This exercise is worth 2 points.
Background
You should have an account on the DispersedNet Labs server or on a Unix/Linux system at your site.
Log in so you can work at a command prompt. You will use the file named welcome that you created in the previous exercise.
Instructions
- Log in to your Unix account so you are working at a command prompt.
- View the current permissions on your script file:
% ls -l welcome
- Add execute permission for the file owner (you):
% chmod u+x welcome
- Verify that the execute bit was added:
% ls -l welcome
In the textbox below, paste the lines from your terminal that show the before-and-after permissions.
Your submission should include at least:
- One
ls -l welcome output line before chmod
- The
chmod u+x welcome command
- One
ls -l welcome output line after chmod