programming:bash:miscellaneous_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
programming:bash:miscellaneous_notes [2012/05/08 14:36] – sbolay | programming:bash:miscellaneous_notes [2012/05/09 05:27] – sbolay | ||
---|---|---|---|
Line 1045: | Line 1045: | ||
If a user can not login normally on the XP computer: | If a user can not login normally on the XP computer: | ||
- | printers can not be add correctly (error 5 given by Kixtart - rights error) | + | - printers can not be add correctly (error 5 given by Kixtart - rights error) |
- | Users can simply not loggin on the computer (windows says pw error!) | + | |
I dont know exactly the reason of that but it seems that is caused by a sid error or something like this. To get right of this problem we have to clean the user profile. | I dont know exactly the reason of that but it seems that is caused by a sid error or something like this. To get right of this problem we have to clean the user profile. | ||
- | Loggoff the user witch as the problematic profile | + | - Loggoff the user witch as the problematic profile |
- | mv / | + | |
- | mkdir / | + | |
- | chmod and chown | + | |
- | To resolve this you can either: | + | |
- | Logon on a machine where the user does not yet has a saved profile with is username and pw to recreate a “clean” profile or | + | |
- | Logon to the machine usually used by the user as local/ | + | |
- | Suppress the local copy of profiles: My Computer -> properties -> Advanced -> UserProfiles… | + | |
- | settings: remove all profiles except local\administrator | + | |
- | regedit the registry and suppress everything about the user (make some searches with specific keywords) | + | |
- | Restart the computer | + | |
- | loggin | + | - login as network\administrator (to install and reset the registry with clean values - see kixtart script) |
- | loggoff | + | - logoff |
- | loggin | + | - login as the user to recreate a “clean” profile |
- | loggoff | + | - logoff |
- | On the server copy all relevant/ | + | |
- | chmod / chown on this folders | + | |
- | Done… and the user can loggin back on computers and everything should be ok. | + | |
- | WARNING: Do not mv but cp data from the backuped folder to the new one and keep it for days to be able to give user back some possible forgotten data! | + | |
- | mapping a windows group to a UNIX/LINUX group | + | <note warning> |
+ | |||
+ | ==== mapping a windows group to a UNIX/LINUX group ==== | ||
net groupmap add ntgroup=“Users” UNIXgroup=users net groupmap list | net groupmap add ntgroup=“Users” UNIXgroup=users net groupmap list | ||
pour recuperer vos anciens profils, il faut les migrer de l' | pour recuperer vos anciens profils, il faut les migrer de l' | ||
+ | * les mettre sur le serveur en mode itinerant (c'est mieux avec samba au depart pour la migration | ||
+ | * partager le dossier comme necessaire (voir la doc de samba sur les profils) | ||
+ | * une fois tous les profils sur le serveur disons dans le dossier /users dans chaque dossier utilisateur / | ||
- | les mettre sur le serveur en mode itinerant (c'est mieux avec samba au depart pour la migration | ||
- | partager le dossier comme necessaire (voir la doc de samba sur les profils) | ||
- | une fois tous les profils sur le serveur disons dans le dossier /users dans chaque dossier utilisateur / | ||
donc la marche a suivre est la suivante : | donc la marche a suivre est la suivante : | ||
+ | * vous creez les users dans samba: smbpasswd etc… | ||
+ | * vous recuperez le SID de l' | ||
+ | * pdbedit -Lv user1 et cherchez la ligne SID (sous l forme S-X-……) | ||
- | vous creez les users dans samba: smbpasswd etc… | ||
- | vous recuperez le SID de l' | ||
- | pdbedit -Lv user1 et cherchez la ligne SID (sous l forme S-X-……) | ||
ensuite c'est simple, profiles ntuser.dat va vous afficher plein de lignes cherchez le SID dedans et faite un remplacement comme ceci: | ensuite c'est simple, profiles ntuser.dat va vous afficher plein de lignes cherchez le SID dedans et faite un remplacement comme ceci: | ||
+ | * profiles ntuser.dat OLDSID NEWSID sur les PC | ||
+ | * ensuite dans document and settings supprimez TOUS les profils sur toutes les machines correspondants a ceux que vous avez envoyé sur le serveur. | ||
+ | * y a plus qu'a vous logguer et vous n' | ||
- | profiles ntuser.dat OLDSID NEWSID sur les PC | + | ===== inetd / xinetd |
- | ensuite dans document and settings supprimez TOUS les profils sur toutes les machines correspondants a ceux que vous avez envoyé sur le serveur. | + | |
- | y a plus qu'a vous logguer et vous n' | + | |
- | inetd / xinetd | + | |
all ports are listed in / | all ports are listed in / | ||
Line 1095: | Line 1097: | ||
starting the xinetd daemon: sudo / | starting the xinetd daemon: sudo / | ||
+ | <code bash> | ||
su | su | ||
ps -u root | grep xinetd (get PID of xinetd) | ps -u root | grep xinetd (get PID of xinetd) | ||
kill -s SIGUSR1 "PID of xinetd" | kill -s SIGUSR1 "PID of xinetd" | ||
+ | </ | ||
+ | |||
Now you can simply / | Now you can simply / | ||
- | nmap / xnmap | + | ===== nmap / xnmap ===== |
test open ports on an given host nmap / xnmap (==nmapfe) (from package nmap-gtk which is a nmap frontend) example: nmap localhost | test open ports on an given host nmap / xnmap (==nmapfe) (from package nmap-gtk which is a nmap frontend) example: nmap localhost |
programming/bash/miscellaneous_notes.txt · Last modified: 2012/05/09 19:24 by sbolay