User management
Process management
Keuzevak Linux - Week 3 Paul Sohier
Kevin van der Vlist Versie 1.0
29 november 2011
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Inhoud
1
User management
2
Process management
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Commando’s
adduser
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Commando’s
adduser who w
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Commando’s
adduser who w last
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Commando’s
adduser who w last usermod
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Commando’s
adduser who w last usermod chown
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - User Identifiers
iedere user unieke ID
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - User Identifiers
iedere user unieke ID gebruikt voor rechten, service, bestands eigenaren
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Real vs effective user id
real user id: echte user id
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Real vs effective user id
real user id: echte user id effective user id: meestal real user id, soms niet
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Real vs effective user id
real user id: echte user id effective user id: meestal real user id, soms niet effective user id, het UID waar het proces echt onder draait
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - Real vs effective user id
real user id: echte user id effective user id: meestal real user id, soms niet effective user id, het UID waar het proces echt onder draait voorbeeld, zie dictaat blz. 53
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - File mode bits
gebruikt om rechten op te slaan
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - File mode bits
gebruikt om rechten op te slaan te zien met ls -l map
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - File mode bits
1 2 3 4 5 6 7
kevin@slackbak :˜ $ t o t a l 28 drwxr −x r −x 2 r o o t drwxr −x−−x 3 k e v i n drwx−−−−−− 2 r o o t drwx−−x−−x 2 p a u l −rw−r−−r−− 1 k e v i n
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
l s − l /home/ root 4096 Feb 13 2010 f t p u s e r s 4096 Dec 8 0 9 : 3 9 k e v i n r o o t 16384 Dec 6 1 3 : 2 5 l o s t+f o u n d u s e r s 4096 Dec 8 0 9 : 1 0 p a u l u s e r s 0 Dec 8 0 9 : 5 8 b e s t a n d
Versie 1.0
User management
Process management
User management - File mode bits
1 2 3 4 5 6 7
kevin@slackbak :˜ $ t o t a l 28 drwxr −x r −x 2 r o o t drwxr −x−−x 3 k e v i n drwx−−−−−− 2 r o o t drwx−−x−−x 2 p a u l −rw−r−−r−− 1 k e v i n
l s − l /home/ root 4096 Feb 13 2010 f t p u s e r s 4096 Dec 8 0 9 : 3 9 k e v i n r o o t 16384 Dec 6 1 3 : 2 5 l o s t+f o u n d u s e r s 4096 Dec 8 0 9 : 1 0 p a u l u s e r s 0 Dec 8 0 9 : 5 8 b e s t a n d
eerste kolom defineert rechten
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
User management - File mode bits
1 2 3 4 5 6 7
kevin@slackbak :˜ $ t o t a l 28 drwxr −x r −x 2 r o o t drwxr −x−−x 3 k e v i n drwx−−−−−− 2 r o o t drwx−−x−−x 2 p a u l −rw−r−−r−− 1 k e v i n
l s − l /home/ root 4096 Feb 13 2010 f t p u s e r s 4096 Dec 8 0 9 : 3 9 k e v i n r o o t 16384 Dec 6 1 3 : 2 5 l o s t+f o u n d u s e r s 4096 Dec 8 0 9 : 1 0 p a u l u s e r s 0 Dec 8 0 9 : 5 8 b e s t a n d
eerste kolom defineert rechten specifieke betekenis beschreven in dictaat: pagina 52
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - Commando’s
top
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - Commando’s
top ps
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - Commando’s
top ps kill
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - PID, UID PPID in ps
PID: process ID
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - PID, UID PPID in ps
PID: process ID UID: effective UID het process onder draait
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - PID, UID PPID in ps
PID: process ID UID: effective UID het process onder draait PPID: parent process id
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - PID, UID PPID in ps
PID: process ID UID: effective UID het process onder draait PPID: parent process id Zie voor verdere uitleg, dictaat bladzijde 57
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - Terminations
process be¨endigen met kill
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - Terminations
process be¨endigen met kill gebruikt signals
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0
User management
Process management
Process management - Terminations
process be¨endigen met kill gebruikt signals zombies killen kan enkel via parent
Paul Sohier, Kevin van der Vlist Keuzevak Linux - Week 3
Versie 1.0