Wednesday 29 October 2008

Root access on Cisco Call Manager 5/6 Server

How to get Root access on Call Manager 5/6 Server

I think it is great that Cisco does not require Engineers to understand the underlying system CallManager is built on, but some of us are curious. These steps will let you to create a user on a CUCM 5/6 server with shell access and root privileges.

WARNING: This should not be performed on a Production System! I am not responsible for any destruction to production systems.

1. Boot the CUCM server with CentOS 5.1 Disk1
2. Type ‘linux rescue’ at the boot: prompt
3. Use the chroot command to change the root to the CUCM partition

Type 'chroot /mnt/sysimage'

4. Backup the /etc/passwd, /etc/group, /etc/shadow and /etc/gshadow files

cp -a /etc/passwd /etc/passwd.bak
cp -a /etc/group /etc/group.bak
cp -a /etc/shadow /etc/shadow.bak
cp -a /etc/gshadow /etc/gshadow.bak

These files are protected by the ext2 immutable flag. Check to see if the immutable flag is set. If the immutable flag is set, you will see an ‘i’.

lsattr /etc/passwd /etc/group /etc/shadow /etc/gshadow

5. Remove the immutable flag

chattr -i /etc/passwd /etc/group /etc/shadow /etc/gshadow

6. Add a new user and set a password

useradd username
passwd username

7. Add the immutable flag

chattr +i /etc/passwd /etc/group /etc/shadow /etc/gshadow

8. Add the new user to the /etc/sudoers file and give root privileges.

vi /etc/sudoers

9. Add the following line to the file to give the new user root privileges.

username All=(ALL) ALL

10. Exit Linux rescue mode
11. Login with the new account
12. Test various root level linux commands with ’sudo’ prefix, take a look at the filesystem and play around

Tuesday 7 October 2008

Easy steps to debrand N95/N95 8GB

Switch off any Anti Virus and disable any firewall

Firstly you will need to Sync your stuff with PC Suite.

DO NOT use backup and restore as this has shown to cause future problems with stability!

If you need your texts message for reference then change the message settings to save on your memory card and you get the option to copy across all existing texts.You will also 'loose' all your installed apps and will have to reinstall these once you have completed the Debrand/upgrade process.

You will also need all your network and internet (data) access settings. You can note them down, get them resent after the debrand/upgrade to your phone by text message from your network provider or from Nokia, or simply get them from here http://www.filesaveas.com/networks.html.

Next step is to download a programme called Nemesis Service Suite (NSS) from here
http://www.b-phreaks.co.uk/files/NSS/NSS103812.zip
Unzip this to a folder that you can find again! Install the application. You may be asked to install the NSS drivers for the N95 so do this when prompted.

Now run NSS and you are starting the debrand process!
When the main NSS window comes up in the top right click scan for new device. Your phone should be detected.

Next click the 'Phone Info' button. This will give a pane to the right of the window and ready should be flashing on the bottom bar. Click the 'Read' button under 'Production Data Edit'. this brings up some phone info including the important 'Product Code'. Your code will relate to your country and network provider and it is this we need to change!
This forum page http://www.allaboutsymbian.com/forum/showthread.php?t=58225 will give you a list of product codes. (while you are on that page consider joining the forum for future assistance).

For most people the generic EURO1 code is what we want so note it down (it doesn't matter whether you use the sand or plum code)!

You now need to input the code in place of the one that NSS returned against it's 'Product Code'
box! Copy and paste will do it! Tick the enable box alongside and then click the 'Write' button. When finished 'Write new values........Done' will appear in the bottom bar at the left. Your 'new' product code will now be shown in the 'Product Code' box.

Your phone is now ready to be upgraded to the latest official Nokia generic firmware release.

Close NSS and open Nokia PC Suite!

Make sure your battery is fully charged.

Click the 'Update phone software' button and the programme will lead you through the process of update. You may be required to download and install a newer version of the 'Nokia Software Updater' so just agree and wait for this to complete.
The NSU (Nokia Sofware Updater) will start and give instructions! It will detect your phone, identify it and search for an available update. Then, if one is available, it will give the option of proceeding with the update. Say yes and once the update has started wait until the process has finished.

Do not touch the phone, do not turn it off, do not disconnect the USB cable.

When the update has finished your phone will restart and you will have installed the latest firmware version of the Operating System.

At this point it does no harm to do a hard reset (see below) just to be sure you have what is refered to as a 'vanilla' phone.
Now re-sync with PC Suite and re-enter your network access and data settings.

Finally, re-install your applicationsto the phone memory (if you use the card memory you can get problems and power consumption goes up so less battery life!

And that's it! You should end up with a stable and zippy phone and the minimum of problems!
I hope all this helps and to anyone undertaking the procedure "GOOD LUCK"

Here are some useful 'Codes' that will interogate the phone

*#06# gives your IMEI (serial) number.

*#0000# gives firmware and phone version.

*#2820# (*#BTA0#) To view Bluetooth device address.

*#62209526# (*#MAC0WLAN) To view the MAC address of the WLAN adapter. This is maybe necessary for wlan encrypted setup.

*#92702689# (*#WAR0ANTY#) To view the life timer information. This is the total time of phone calls in minutes.

Warning : All old data will be lost when hard reset is used.

*#7780# : Soft Reset. Restores ini files from rom but preserves user data (photos, 3rd party apps etc).The phone will ask you a confirmation, enter a security code which is 12345 by default.
*#7370# : Hard (sometimes called 'Deep') Reset. You will get a format of the C: drive. Everything on the drive will be wiped and clean default files will be rewritten. You will be asked to input a security code which is 12345 by default.

There is another method of hard resetting the phone (similar to #*7370#). It is useful in some cases, for example when the phone cannot reboot. Switch off the phone then press and hold Call key (Green key) + * key + 3 key + power button for a couple of seconds. If you hold these buttons until 'Formatting' is shown you will get the same result as using *#7370#