Visualizzazioni totali

venerdì 15 aprile 2011

Linux aggiungere un utente

Utilizzare i seguenti comandi sostituendo a nomeutente, nome e cognome i giusti valori:

useradd -d /home/nomeutente -s /bin/bash -c "nome cognome" nomeutente

mkdir /home/nomeutente && chown nomeutente /home/nomeutemte && passwd nomeutente

Visualizzare i gruppi di appartenenza:


grep nomeutente /etc/group

Aggiungere l'utente ad uno o più gruppi:

usermod -a -G cdrom,floppy,audio,dip,video,plugdev nomeutente

lunedì 11 aprile 2011

Sincronizzazione delle password di Notes e di Web/Internet di Domino

Se l'amministratore ha abilitato questa funzione, è possibile sincronizzare la password di Lotus Notes con la password Web/Internet di Domino, abilitando l'uso della password Lotus Notes sia per l'accesso a Lotus Notes che per l'accesso a Internet.

Informazioni su questa attività
L'amministratore potrebbe aver assegnato all'utente una password per l'ID utente IBM® Lotus Notes e una password Web/Internet di IBM Lotus Domino. La password per l'ID utente Lotus Notes deve essere usata per accedere a Lotus Notes, Lotus Domino Designer, o Lotus Domino Administrator o a qualsiasi altro programma basato su Lotus Notes che richieda un ID utente Lotus Notes per concedere l'accesso. La password Web/Internet di Domino deve essere usata per accedere a un applicazione di Lotus Notes attraverso un browser Web, ad esempio la posta Lotus Notes (se è configurata per essere accessibile attraverso un browser) o un'applicazione Web di Domino.

Se l'amministratore non ha abilitato la sincronizzazione della password, è possibile disabilitare la capacità dell'amministratore di sincronizzare le password in un secondo tempo.

Nota: Se si usa una Smartcard per accedere a Lotus Notes o se l'ID utente è protetto da più password, la funzione di sincronizzazione della password Web/Internet di Domino non è supportata.
Risultati
Per abilitare (o disabilitare) la sincronizzazione della password di Notes con la password Web/Internet di Domino
Informazioni su questa attività
Questa procedura è disponibile all'utente solo se l'amministratore ha abilitato la sincronizzazione delle password. Quando si sincronizzano le password, per l'accesso si usa la password Lotus Notes.

Fare clic su File > Sicurezza > Sicurezza utente (Per gli utenti Mac OS X: Lotus Notes > Sicurezza > Sicurezza utente).
Fare clic su Impostazioni generali di sicurezza.
Selezionare o deselezionare "Impostare sempre la password Web/Internet Domino coincidente con la password Lotus Notes (minore sicurezza)" in "Impostazioni di accesso e password". (Questa opzione è visibile in Sicurezza utente solo se l'amministratore ha abilitato la sincronizzazione delle password).
Autenticarsi di nuovo con il server Lotus Notes per abilitare la sincronizzazione. Usare la password Lotus Notes la volta successiva che si accede a un browser Web, a Lotus Notes, o a un programma basato su Lotus Notes.
Nota: La sincronizzazione non viene eseguita immediatamente ed è soggetta ai tempi di esecuzione pianificati nel Processo di amministrazione del server.
Risultati
Per disabilitare la sincronizzazione delle password Notes e Web/Internet di Domino da parte dell'amministratore
Informazioni su questa attività
Eseguendo questa procedura, si impedisce all'amministratore di essere in grado di attivare la sincronizzazione delle password per conto dell'utente. Se l'amministratore decide di abilitare la sincronizzazione in un secondo tempo, l'opzione di sincronizzazione della password sarà disabilitata, salvo che non venga riattivata dall'utente stesso (è possibile abilitarla, procedendo come descritto precedentemente).

Questa procedura è disponibile agli utenti solo se l'amministratore non ha abilitato la sincronizzazione dell'utente.

Fare clic su File > Sicurezza > Sicurezza utente (Per gli utenti Mac OS X: Lotus Notes > Sicurezza > Sicurezza utente).
Fare clic su Impostazioni generali di sicurezza.
elezionare "Non consentire agli amministratori di impostare la password Web/Internet di Domino affinché coincida con la password di Notes" in "Impostazioni di accesso e password". (Questa opzione è visibile solo in Sicurezza utente se l'amministratore non ha abilitato la sincronizzazione delle password.)

giovedì 7 aprile 2011

Estendere un logical volume su una virtual machine Linux KB:1006371


To extend the logical volume:


Note: These steps only apply to EXT3 file systems.


Caution: VMware recommends having a complete backup of the virtual machine prior making these changes.
Power off the virtual machine.
Edit the virtual machine settings and extend the virtual disk size. For more information, see Increasing the size of a virtual disk (1004047).
Power on the virtual machine.
Identify the device name, which is by default /dev/sda, and confirm the new size by running the command:


fdisk -l


Create a new primary partition:
Run the command:


fdisk /dev/sda (depending the results of the step 4)


Press p to print the partition table to identify the number of partitions. By default there are 2: sda1 and sda2.
Press n to create a new primary partition. 
Press p for primary.
Press 3 for the partition number, depending the output of the partition table print.
Press Enter two times.
Press w to write the changes to the partition table.


Restart the virtual machine.
Run this command to verify that the changes were saved to the partition table and that the new partition has an 83 type:


fdisk -l


Run this command to convert the new partition to a physical volume:


pvcreate /dev/sda3


Run this command to extend the physical volume:


vgextend VolGroup00 /dev/sda3


Run this command to verify how many physical extents are available to the Volume Group:


vgdisplay VolGroup00 | grep "Free"


Run the following command to extend the Logical Volume:


lvextend -L+#G /dev/VolGroup00/LogVol00


Where # is the number of Free space in GB available as per the previous command.


Run the following command to expand the ext3 filesystem online, inside of the Logical Volume:


ext2online /dev/VolGroup00/LogVol00


Note: Use resize2fs instead of ext2online if it is not a Red Hat virtual machine.


Run the following command to verify that the / filesystem has the new space available:


df -h /

    Uasare Repadmin per rimuovere lingering objects

    Se il comando repadmin /showrepl evidenzia un'errore simile a questo:



    ==== INBOUND NEIGHBORS==========================

    DC=pippo,DC=intra
        Sede-Ancona\SERVERPIPPO via RPC
            DC object GUID: 8672740d-c193-483c-9c5c-e33010e51fe8
            Last attempt @ 2011-04-07 08:50:14 failed, result 8606 (0x219e):
                Insufficient attributes were given to create an object.  This object
     may not exist because it may have been deleted and already garbage collected.
            4031 consecutive failure(s).
    =================================================


    è possibile utilizzare il comando seguente per cancellare l'oggetto in questione:


    repadmin /removelingeringobjects SERVERPIPPO 8672740d-c193-483c-9c5c-e33010e51fe8 DC=pippo,DC=intra /advisory_mode


    in caso di esito positivo ripeter il comando senza il parametro 
    /advisory_mode


    repadmin /removelingeringobjects SERVERPIPPO 8672740d-c193-483c-9c5c-e33010e51fe8 DC=pippo,DC=intra

    venerdì 1 aprile 2011

    Trasferire i logins da SQL 2000 a SQL 2008

    1 - Eseguire questo script da QA su SQL 2000
    --------------------------------------------------------------

    DECLARE login_curs CURSOR FOR
    SELECT sid, name, xstatus, password FROM master..sysxlogins
    WHERE srvid IS NULL AND name = @login_name
    OPEN login_curs
    FETCH NEXT FROM login_curs INTO @SID_varbinary, @name, @xstatus, @binpwd
    IF (@@fetch_status = -1)
    BEGIN
    PRINT 'No login(s) found.'
    CLOSE login_curs
    DEALLOCATE login_curs
    RETURN -1
    END
    SET @tmpstr = '/* sp_help_revlogin script '
    PRINT @tmpstr
    SET @tmpstr = '** Generated '
    + CONVERT (varchar, GETDATE()) + ' on ' + @@SERVERNAME + ' */'
    PRINT @tmpstr
    PRINT ''
    PRINT 'DECLARE @pwd sysname'
    WHILE (@@fetch_status <> -1)
    BEGIN
    IF (@@fetch_status <> -2)
    BEGIN
    PRINT ''
    SET @tmpstr = '-- Login: ' + @name
    PRINT @tmpstr
    IF (@xstatus & 4) = 4
    BEGIN -- NT authenticated account/group
    IF (@xstatus & 1) = 1
    BEGIN -- NT login is denied access
    SET @tmpstr = 'EXEC master..sp_denylogin ''' + @name + ''''
    PRINT @tmpstr
    END
    ELSE BEGIN -- NT login has access
    SET @tmpstr = 'EXEC master..sp_grantlogin ''' + @name + ''''
    PRINT @tmpstr
    END
    END
    ELSE BEGIN -- SQL Server authentication
    IF (@binpwd IS NOT NULL)
    BEGIN -- Non-null password
    EXEC sp_hexadecimal @binpwd, @txtpwd OUT
    IF (@xstatus & 2048) = 2048
    SET @tmpstr = 'SET @pwd = CONVERT (varchar(256), ' + @txtpwd + ')'
    ELSE
    SET @tmpstr = 'SET @pwd = CONVERT (varbinary(256), ' + @txtpwd +
    ')'
    PRINT @tmpstr
    EXEC sp_hexadecimal @SID_varbinary,@SID_string OUT
    SET @tmpstr = 'EXEC master..sp_addlogin ''' + @name
    + ''', @pwd, @sid = ' + @SID_string + ', @encryptopt = '
    END
    ELSE BEGIN
    -- Null password
    EXEC sp_hexadecimal @SID_varbinary,@SID_string OUT
    SET @tmpstr = 'EXEC master..sp_addlogin ''' + @name
    + ''', NULL, @sid = ' + @SID_string + ', @encryptopt = '
    END
    IF (@xstatus & 2048) = 2048
    -- login upgraded from 6.5
    SET @tmpstr = @tmpstr + '''skip_encryption_old'''
    ELSE
    SET @tmpstr = @tmpstr + '''skip_encryption'''
    PRINT @tmpstr
    END
    END
    FETCH NEXT FROM login_curs INTO @SID_varbinary, @name, @xstatus, @binpwd
    END
    CLOSE login_curs
    DEALLOCATE login_curs
    RETURN 0
    GO
    ---------------------------------------------------------------

    2 - eseguire  da QA la SP:

    EXEC sp_help_revlogin

    3 - Copiare l'output su una nuova query di SQL 2008, eseguire...
    4 - Staccate i DB da SQL 2000 e attaccate i DB su DB su SQL 2008