1. Requirement
A) Login and logout in Linux system
B) Know how to compile C files in Linux system
2.Basic process
2.1 Create an account named OS+SID
- Attention: adduser: To avoid problems, the username should consist only of letters, digits, underscores, periods, at signs and dashes, and not start with a dash
sudo adduser OS+SID
-
change the permission for new account
#usermod -g root os212 -
login new account
su name -
switch to root dictinary
cd -
create a new folder
mkdir lab1 -
change the access rights to that folder
chmod 740 lab1
there exist 3 type of accessing the floder
a) read 4
b) write 2
c) execute 1
7 means user can read, write, execute the folder 4 means group user can only read 0 means others can do nothing to this folder
3.Program results