segashiro.com
Joomla replaced with wordPress. its a lost simpler and we will probably never have enough content to need a hard core CMS like Joomla.
Joomla replaced with wordPress. its a lost simpler and we will probably never have enough content to need a hard core CMS like Joomla.
o test if mod_rewrite is available in Apache2, you can go
apache2ctl -M
Optimizing Apache Server Performance
why is logging so fucked up. I’ll have to look into that. At least now logrotate is working
<Directory /the/path/where/drupal/resides>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
All necessary changes to ./sites/default and ./sites/default/settings.php have been made. They have been set to read-only for security.
Tried to create a new database thimorning but the loginpage displays an error. Just what I needed.
The configuration file now needs a secret passphrase (blowfish_secret).
Fixed by updating but could have edited phpmysql
In regards to being pulled over, the only thing you are required to do is produce Licence, Ownership and Insurance, you can be pulled over for no reason at all and you must produce this. After you have produced this, anything more you have the right to refuse, he asked to search your vehicle because until you gave him permission he had no right to.
Legal Rights – Theory and Practice
What are we trying to do?
Police Encounters
Identification
In general, we do not have to carry ID in Canada or identify ourselves to police, even if we are not citizens. Three exceptions:
Police officers are required to identify themselves while on duty by providing their names and/or badge numbers (although they don’t necessarily have to wear their badges).
Detention
In general, we have no obligation to speak to the police or answer their questions – WE ALWAYS HAVE THE RIGHT TO REMAIN SILENT. If you do not want to speak with an officer, you can ask “Am I free to go?” If the answer is yes, you can walk away if you feel comfortable doing so.
If the answer is no, you are under detention. The courts have said that police have a right to briefly detain people if they have articulable cause, meaning some objective facts which give the officer reasonable cause to suspect that you have done something criminal. This is supposed to be more than just a ‘hunch’. But as with all rights in practice rather than theory, whether you were lawfully detained will not be decided until you go to trial on any offences. If you are never charged, you may never know if you were lawfully detained or just harassed.
The police can also detain you if you are going to be arrested. Either way, once you are not free to go, you can do the things described below in the section on Arrest.
If you do decide to speak with an officer, whether you have been detained or not, remember that they do not have to tell you if they are investigating a particular incident or person. Do not talk about or identify others. Do not lie, it can get you into more trouble later.
Search and Seizure
We have the right to be free from unreasonable search and seizure. The police are not supposed to search unless:
Despite these exceptions, NEVER CONSENT TO A SEARCH. Do not physically interfere if the police insist on searching anyway, but keep repeating , “I do not consent to this search.” Ask for the officers’ badge numbers and names. Again, whether the search was lawful will not be determined until you get to court, but your non-consent may help you if evidence found as a result of an illegal search is to be used against you at trial.
Arrest
The police can lawfully arrest you only if:
Remember, if you are not arrested, but are not free to go, you are being detained.
Upon either arrest or detention, you are supposed to have the right to:
*There are two kinds of offences in canada’s Criminal Code: indictable, which are more serious offences with harsher penalties, and summary conviction offences, which are less serious and carry lesser punishments. The kind of charge also determines what level of court you will appear in (i.e. you only have the right to a jury trial if you charged with certain indictable offences, otherwise you are tried by a judge). Most offences start off as hybrid or mixed, meaning that the prosecutor, the Crown Attorney, decides (“elects”) whether you will be tried by indictment or summarily, usually some time after you have been charged and the police and Crown have provided you with disclosure (the evidence they intend to use to prosecute you, such as police notes).
Limitation periods
A summary offence charge must be laid within 6 months of the alleged offence; there is no limitation for indictable offences. But keep in mind that all hybrid offences are deemed indictable until the Crown elects otherwise so for most offences there is really no limitation period.
Right to counsel (a lawyer)
If we are arrested or detained, we have the right to a lawyer. The police are supposed to tell you that you have this right and to give you an opportunity to exercise it reasonably quickly. You should be given access to a phone in privacy. If you do not have a lawyer, the police should give you the number for a 24 hour ‘duty counsel’ line through which you can reach a lawyer who can give you basic advice immediately. The Common Front Legal Committee will try ensure that everyone has the phone number of the legal office to call in case of arrest.
Once you have asked for a lawyer, the police are supposed to stop questioning you. Remember that although the police can ask you questions, you do not have to answer. If you answer questions, remember that any statements you do make may wind up in court later.
Being charged and released
If you are going to be charged with a criminal offence, you can be:
That thorny issue of non-identification
Keep in mind that in the ordinary course of things, people are not released from detention unless the police are certain of their identity. This means that if you are choosing to not identify yourself while in custody, it is unlikely that you will be released under a nickname or anonymously. In a mass arrest situation in which many people refuse to identify, this may change, but we have not had enough experience with this sort of jail solidarity in canada to be able to give more certain advice.
*A reverse onus situation is where the assumption is reversed: the charged person has to show cause why they should be released. This happens if you are charged with murder or a few other extremely serious indictable offences; you are charged with any other indictable offence and were already out on bail on other indictable charges; you are charged with an indictable offence and do not ordinarily live in canada or you are charged with Failing to attend court or Failing to comply with release conditions after you were released for any other outstanding charges.
Common Charges
Below are some of the common criminal offences activists are charged with. As you read the descriptions, please remember that there is a huge difference between being charged with something and being convicted of it.
Assault – This offence involves any direct or indirect application of force on another person without their consent – mere touching may be enough. It also includes attempting or threatening by acts or gestures to apply force to another person. [Hybrid – ss. 265-266]
Assaulting a peace officer (Assault Police) – This is an assault on a peace officer. The maximum penalties are the same as for assault, but sentencing tends to be higher. Also includes an assault with attempt to resist or prevent the lawful arrest of yourself or someone else. [Hybrid – ss. 270] This is what you’re charged with when the cops beat you up.
Obstruct Police – resisting or obstructing an officer in the lawful execution of their duty, which basically means physically interfering. [Hybrid – s. 129] This is the most common charge for resisting your own arrest in a physical way or de-arresting others (again assuming the arrests are lawful). Passive non-cooperation should not be considered interfering – you don’t have to help the cops arrest you (i.e. make them drag you rather than walk), but you can’t make their job harder (i.e. run away).
Obstruction of Justice – includes indemnifying a surety (which means agreeing to pay off a surety if the person skips bail) or if you are a surety, accepting a fee or allowing someone to indemnify you [Hybrid – s. 139(1)]. Also includes the more general offence of attempting to “obstruct, pervert or defeat the course of justice” [Indictable – s. 139(2)].
Mischief to property – To be convicted of this offence you must wilfully destroy or damage property or render property dangerous, useless, inoperative or ineffective or obstruct, interrupt or interfere with the lawful use, enjoyment or operation of property. This is a very common charge and captures a wide variety of actions – note especially that both damaging actual property and simply interfering with the use of property can be mischief. [Hybrid – s. 430. There are separate offences of Mischief over and under $5000, depending on the value of the property the mischief was committed to.]
Breach of the Peace – This is not actually a charge – you cannot be convicted of ‘breach of peace’. This section of the Criminal Code gives the police the right to arrest you to prevent a breach of the peace. They are supposed to release you when the danger is over and in any case within 24 hours.
Causing a disturbance – Includes fighting, screaming, shouting, swearing, singing or using insulting or obscene language in public (not in a home). Also includes being drunk and as well by impeding or molesting other persons. Keep in mind that we have constitutional rights to freedom of assembly and expression which can be used in court as a defence to this charge. [Summary conviction – s. 175(1)]
Intimidation – This is an old anti-union law which prohibits blocking or obstructing a highway (road) and “watching and besetting” (i.e. hanging around all the time) homes or workplaces. Also committed by threatening to commit violence against someone, or following them on a road in “disorderly manner”. [Summary conviction – s. 423]
Unlawful assembly - You can commit this offence by getting together with at least 2 other people with the intent to carry out some common purpose and then assembling in a manner that causes people nearby to fear that (a) you will “disturb the peace tumultuously” (which basically means ‘violently’), or (b) you will needlessly and without reasonable cause provoke others to “disturb the peace tumultuously”. [Summary conviction – ss. 63 and 66]
Participating in a Riot – A riot is an unlawful assembly that has actually begun to disturb the peace tumultuously. [Indictable – ss. 64-65] If a sheriff or sheriff’s deputy etc., reads a proclamation after a riot has started (the “Riot Act”)and you are still around after 30 minutes you will have committed a much more serious offence. This is also true if you interfere with the reading of the magic words. [ss. 67-68]
Note: Both participating in a riot and unlawful assembly are crimes of mere presence. All the Crown needs to demonstrate is that you were part of the “common purpose” (i.e. you were participating in the demo or action), and that you stayed after it became an unlawful assembly. You don’t actually have to have done anything to contribute to the “tumultuous” nature of the assembly. Although the police will usually announce that an assembly has become unlawful (usually by ordering you to disperse) it is not an essential part of the offence.
Disguise with Intent – Wearing a disguise (i.e. a mask) with the intent to commit an indictable offence is an offence in itself. [Indictable – s. 351(2)]
Conspiracy – The essence of this charge is the making of the agreement by at least two people to commit an indictable or summary offence. Nothing has to actually happen – the agreement itself is the crime. You do not have to do anything other than make such an agreement. Be careful about where you talk, and who you talk with and what you say when planning actions. [Indictable if you agree to commit an indictable offence; summary if summary – s. 465].
Counselling offences – Counselling someone to commit an offence, even if they do not commit it can get you convicted of these offences. If they do commit it, you can be charged as a party (see below). [Indictable if indictable offence, summary if summary – ss. 22 and 464]
Being a party or accessory – Includes aiding and abetting others in committing an offence, including after the fact. The result is the same as if you had done the acts yourself. If you are merely passive (i.e. do nothing to stop someone from committing an offence), you should not be found guilty as a party.
Weapons offences
Restricted and Prohibited Weapons – Restricted weapons are mainly various handguns and rifles, but prohibited weapons also include switchblade knives, spiked wristbands, blowguns, mini-handguns, brass knuckles and other things such as Mace, teargas, pepper spray, nunchaku sticks and other devices used in martial arts, dart guns, stun guns, electric probes, and crossbows, among other weapons, including a vast array of firearms. Mere possession in your home, car, or on your person of these weapons is sufficient to be prosecuted under the Criminal Code.
Carrying or being in possession of a weapon, or an imitation weapon, “for a purpose dangerous to the public peace or for the purpose of committing an offence” is an offence under the Criminal Code (“weapons dangerous”). A “weapon” is broadly defined in the Code so as to include many objects which are not designed as weapons such as kitchen knives, a hockey stick, punk rock fashion accessories or pieces of pavement. This open-ended definition is extremely important for activists engaged in direct action, particularly those prepared to defend themselves against police violence, to understand. Similarly, an assault using something that is not necessarily a weapon will be charged as Assault with a weapon (a Hybrid offences which carries high penalties – s. 267).
While Attending a Public Meeting – This offence describes a situation in which “every one who, without lawful excuse, has a weapon in his possession while he is attending or is on his way to attend a public meeting…” There is obviously a serious risk of arrest and conviction for activists who attend these gatherings while possessing prohibited or restricted weapons, but there is also a real danger of arrest and a possibility of conviction where a person is in possession of ambiguous objects like pocket knives, large rings or studded belts which might be found to be weapons.
Consequences
First, keep in mind that it may take a long time for charges to be dealt with – it can take many months to get to trial and there are regular court appearances before trial which you may have to attend.
If you are convicted, judges in canada have wide discretion when it comes to sentencing and they can order lots of punishments short of prison: a discharge (a finding of guilt but no conviction record), probation, conditional sentences (i.e. house arrest), a fine or suspended sentence. Only extremely serious charges carry minimum prison time and the maximum jail terms for most offences are rarely, if ever, ordered. A criminal record, or in some cases a pending charge, can have also affect your life in other ways, particularly for travel (especially to the US) and employment.
At the Action
Whether or not you are a trained and on-duty legal observer, always bring a paper and pen. Use them to:
TAKE DOWN INFORMATION BEFORE THE SHIT HITS THE FAN. You must anticipate, because once the action starts you will not necessarily have time to get enough down. As soon as possible after an incident or arrest (whether your own arrest or someone else’s) – sit down and write out everything you remember about the incident – particularly details like times, locations, movements, statements or conversations, etc – you will be surprised how quickly you can forget details, and the trial may not be for another year or two. Keep these notes in a safe place until after the action and then get them to a trusted legal person.
See the section on indymedia for information on photographs and videocameras.
Bring the number of the legal committee or a lawyer’s phone number. Write it in permanent marker somewhere on your body even if you think you have it memorized.
If you are taking medication or use medical equipment, bring it with you. Any medication should be clearly labelled with a pharmacy label. See the Legal Guide for People with Disabilities and Health Issues for more information on dealing with medical needs.
What not to Bring
Remember that the police have a right to search you if you are arrested and that you may be searched otherwise, lawfully or not.
The upcoming version of OpenSSH (4.8p1 for the GNU/Linux port) features a new configuration option : ChrootDirectory. This has been made possible by a new SFTP subsystem statically linked to sshd.
This makes it easy to replace a basic FTP service without the hassle of configuring encryption and/or bothering with FTP passive and active modes when operating through a NAT router. This is also simpler than packages such as rssh, scponly or other patches because it does not require setting up and maintaining (i.e. security updates) a chroot environment.
To enable it, you obviously need the new version 4.8p1. I personaly use the cvs version and the debian/ directory of the sid package to build a well integrated Debian package 4.8p1~cvs-1.
In /etc/ssh/sshd_config :
You need to configure OpenSSH to use its internal SFTP subsystem.
Subsystem sftp internal-sftp
Then, I configured chroot()ing in a match rule.
Match group sftponly
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
The directory in which to chroot() must be owned by root. After the call to chroot(), sshd changes directory to the home directory relative to the new root directory. That is why I use / as home directory.
# chown root.root /home/user # usermod -d / user # adduser user sftponly
This seems to work a
The only thing I miss is file transfers logging, but I did not investigate this at all. More on this whenever I find some time to do so.
References :