Professional Documents
Culture Documents
Persistent Shell Settings Users Groups Permissions
Persistent Shell Settings Users Groups Permissions
1 2
.bashrc
• start another bash shell (type: bash), or
• source .bashrc
3 4
3 4
1
18/08/19
.plan Users
• Another fun settings file Unix/Linux is a multi-user operating system.
• Stored in your home directory
• Contains information you’d like others to be able to see • Every program/process is run by a user.
is displayed when the finger protocol is run • Every file is owned by a user.
• Every user has a unique integer ID number (UID).
• Exercise: create a quick .plan file, and make sure it works with
finger • Different users have different access permissions, allowing user to:
read or write a given file
• Note: Currently attu is configured so .plan files are not visible. browse the contents of a directory
Finger is not installed on the CSE VM. execute a particular program
install new software on the system
change global system settings
...
5 6
5 6
7 8
2
18/08/19
9 10
chmod +x banner (allow everyone to execute) chmod 664 grades.dat (owner rw; group rw; other r)
chmod ug+rw,o-rwx grades.xls (owner/group can read and Note: sets permissions for “owner”, “group” and “other” all at once.
11 12
11 12
3
18/08/19
13 14
13 14
15 16
4
18/08/19
17 18
17 18
19 20
19 20
5
18/08/19
21 22
23 24
6
18/08/19
Handy tip: You can use the “file” command to see what type a file is,
just changing the file extension on a file does not change its type.
25 26
25 26
tar
27
27