Posts Tagged ‘linux’

how to reset the root pasword (openSUSE 11)

Monday, September 21st, 2009

Well, shit happens. You’ve lost your root password, you’re not a GOD any more. Don’t worry, in three simple steps you can reset the root password.

First, reboot the machine. When it starts choose the normal boot menu from the list, and in the Boot options type:

init=/bin/bash

It will start in a privileged mode, where you can change the password:

(none):/> passwd
Changing password for root.
New Password:
Reenter New Password:
Password changed.
(none):/>

Presto, you’re done!

cyrus mailbox recovery

Monday, February 23rd, 2009

Inconsistencies in mailboxes occur rarely, but they occur. There are three main reasons for an inconsistency:

• An email file deleted on the server (by an admin)
• Email files copied in the mailbox dir (back-up of emails deleted by the user)
• Corrupted files (disk errors, broken communication)

Emails are stored in files named like 8242. and there are two files that keep track of emails: cyrus.header and cyrus.index. If an email is missing on the server but it appears in these files, your user won’t be able to get email headers from the server. Outlook will report a 0x800CCC90 error while receiving mails, and Squirrelmail will say ERROR: Could not complete request. Unknown response from IMAP server: 1.* OK Message 8242 no longer exists.

To fix this problem you should use the tool called reconstruct. It searches for email files and updates the header and index file. Depending on your distribution of Linux, reconstruct can be found in different directories. In my case it was in /usr/lib/cyrus-imapd. reconstruct must be ran as the user cyrus, otherwise it will mess up dir permissions. Supposing you want to repair the mailbox of the user dummy, here are the commands you should use:

su cyrus
/usr/lib/cyrus-imapd/reconstruct -r user.dummy

deletemailbox: Permission denied

Tuesday, February 3rd, 2009

Having to disable some email accounts using cyradm, I’ve issued the command dm user.old_account. The response was deletemailbox: Permission denied. It seems that for security reasons the admin users don’t have permission to delete an account.

Assigning “d” access level (Delete a message and/or the mailbox itself) still doesn’t fix the problem. You have assign “c” (Create a new mailbox below the top-level mailbox) access level in order to delete an account. Here is the commands you need to delete the account “old_account”:

cyradm -u cyrus localhost
sam user.old_account cyrus c
dm user.old_account

linuxist = satanist

Tuesday, August 19th, 2008

Deci utilizatorii de linux sunt satanisti. Sau , ma rog, asa cred unii, De unde asta
Vine nus’ ce cunostina de-a lu shefu azi la el si il roaga sa il dea pe baitu de la service ca ala stie linux. Adica eu. Ce se dorea. O biserica baptista primiseara un amarat de server isi luasera net si vroiau sa faca un server de http sa puna pagina de web pe el
Ma duc la biserica, ma uit la rabla aia , cu un baiat care chinuia un webserver pe  un windows.
Domne ca nu vrea si cu asta basta. Il intreb pe asta de ma adus : ce fac?
-baga linux
Bun, scot cd-ul cu linux, ( dstributia mucles sa nu fac reclama) si punete pe clapetat. Muncesc eu ce muncesc, si la un momentdat ma intreaba al cu wingozu ce fac acolo. Ii raspund amabil iti fac serverul . Bine.
Dupa 15 minute ma bate cineva pe umar. Cand ma intorc sa fac cu inima. Politia.
-Ba ce faci aici.
Eu: – fac un server de http.
S-a uitat ala la mine, ma rug nu stiu cat o fi inteles ce i-am zis, unfla pieptul si ridica tonu.
-Ba s-a raportat aici ca cineva tulbura linistea publica cu apucaturi satanice.
Ma uit in jurul meu, si ii zic
-Domne cat am fost aici a fost liniste.
Robocop deja nu mai stia ce sa ma intrebe. Se intoarce catre ala cu wingoaza si il intreaba.
-Unde e ala cu satanismul.
Precizez ca robocop era pregatit cu bulanul pt exorcizare, iar pe fata lui se vedea ca avea cateva la activ.
Nea wingoz indreapta catre mine degetul si zbiara.
-Domne ala e , uite ce face pe comp. Numa cifre etc etc si numai incantatii scrie acolo.
Va dati seama ca pt garcea era deja prea mult. Sta se scarpina dupa ureche, se invarte si concluzioneaza. Merem la sectie dati declaratie.
Da neica si de la un amarat de server am ajuns sa dau declaratii la sectie. Norocul meu ca acolo am gasit un client de al meu care era goanga mai mare , si dupa ce a ascultat povestea razand cu lacrimi  , m-a lasat sa plec
Asa ca aveti grije ce mai satanizati pe la compuri

Preluata de aici. 10x Sese

How to authenticate Apache from LDAP

Monday, April 28th, 2008

A new episode from the LDAP tutorials can be found here on my wiki page.