university of pisa computer science department system administration adduser stefano bistarelli...
TRANSCRIPT
University of PisaComputer Science Department
System Administration
adduserStefano Bistarelli
University of PisaComputer Science [email protected]://www.di.unipi.it/~bista/
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Outline
lun mar mer gio ven sab dom
1 2 3 4 5 6 7
8 9 10 11 lab 12 lab 13 14
15 lab 16 17 18 lab 19 lab 20 21
22 lab 23selfstudy 24 25lab 26 lab 27 28
29 lab 30 selfstudy 31
2001
Gennaio
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Outline
lun mar mer gio ven sab dom
1 2 lab 3 4
5 lab 6 7 Ripasso in
aula / Selfstudy 8 lab 9l ab 10 11
12 Exam 13 Exam 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28
2001
Febbraio
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Prima Settimana
9Introduzione
W2K•Installazione win2K (anche studenti)•Backup
Riferimenti:-Lucidi-Cap 1,2,15 libro
10W2K•registri•Active Directory•Gestione computer
Linux-Installazione Linux
Riferimenti:-Lucidi-Cap 4,5 libro-RH inst.guide
11 lab
-Linux utente1
12 lab
-Linux utente2
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Seconda settimana
15 lab 16W2K•Booting and ShutdownDisco ripristino
Linux•Booting and Shutdown•Inst. Linux (studenti)
Riferimenti:-Lucidi- fotocopie
17W2K•Utenti
Linux•Backup•multi boot•Utenti•superuser
Riferimenti:-Libro Cap. 7-Lucidi- fotocopie
18 lab
Esercitazioni su:Backup (N-P-F)Ripasso quanto fatto finoraDomande studentiInst. office
19 lab
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Adduser - useradd
Edit passwd (vipw)e shadow Make home directory Edit group (vigr) Copy startup files (/etc/skel) Set initial psw Set disk quota accounting
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
\etc\passwd
Login name (unico, 8 char max) /etc/aliases per nomi piu’lunghi (posta)
Passwd encrypted (o x se usiamo shadow) passwd o grafico userpasswd
Uid NON RIUTILIZZARE GLI UID! Gid (initial group, comando newgrp) Gcos (nome,ufficio, extension, home phone)
Chfn , userinfo Homedir Login shell
chsh
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
\etc\shadow
sp_namp - pointer to null-terminated user name. sp_pwdp - pointer to null-terminated password.. sp_lstchg - days since Jan 1, 1970 password was last changed. sp_min - days before which password may not be changed. sp_max - days after which password must be changed. sp_warn - days before password is to expire that user is warned of
pending password expiration. sp_inact - days after password expires that account is considered
inactive and disabled. sp_expire - days since Jan 1, 1970 when account will be disabled. sp_flag - reserved for future use.
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
\etc\group
Nome Pswd Gid Lista utenti
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Homedir e shell
Creare /home/nomeuser Mkdir gimli Chown gimli /home/gimli Chgrp user /home/gimli
shell! Varie (/etc/shells)
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Lab: 30 min
Inserire utente sulla macchina
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Lab: inserire altri utenti
Usare Adduser Schermata grafica
Linuxconf Control-panel Altre trovarle!!! (almeno altre 2)
• Chi le trova fa break!
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
Disabilitare e rimuovere user
Mettere * sul campo della psw A volte dopo * si mette data della
disabilitazione
Eliminare e’ piu’ difficile Passwd,group, aliases,shadow File su homedir, /var/spool/mail
dr. Stefano Bistarelli: System AdministrationUniversity of PisaComputer Science Department
varie
chfn(1), chsh(1), crypt(3), groupadd(8), groupdel(8), groupmod(8), passwd(1), useradd(8), userdel(8), usermod(8)