Posts Tagged ‘internet’

error “Access is denied to this folder”

December 7, 2008

normally while working on windows o.s we see this error when we are trying to delete an file or folder here is some  solutions that worked for me and sharing to u all -)

1.

if u want to delete an file like c:\win.exe then u can change its permission type this in command line mode      cacls c:\win.exe /p username:w   this changes the file permission of this file from system account to the account ur using right now and now u can delete this easily.

2.

if No.1 sol doesnt work no probs -) in cmd for folder like virus c:\virus type       rd /S   \?\c:\virus\   and now this folder gone u will not even going to see this in recycle  bin this syntax “\?\” is used by volume shadow copy service and if  you remove it u cant restore it via recycle bin.

3.last but not least you can kill those processes that are accociated with this folder or just kill urs shell porocess explorer.exe in task manager in process section and then try to delete it and also you can also use the free utility called unlocker assistant to delete these folders from here

http://ccollomb.free.fr/unlocker/#download

Advertisements

solution for one minute shutdown error/message

December 6, 2008

i have an permanent solution for this message some times u get it from some other pc in urs network and somtime u get it Via internet by an trojan this following GPO will completely detain that becoz this removes the admin rights of force shutdown

Goto>run>gpedit.msc
Computer Config..\Windows setting\Security settings\local policy\user right mangement on the right side see there like this “Force shutdown from remote system” remove the administrator from there click ok and goto run type gpupdate /force
and ur done this method i found when a guy was irritating me by shut downing my pc at class

I hope u like this 😉

changing windows system source files path

December 6, 2008

actually iam talking about the thing when u install any components from add remove components and u always need to have an CD for this. what if u have an pc where urs all i386 r stored and urs Desktop engineers doesnt need to carry and CD?isnt this would be good to have Centralized pc for this i have lil to share with u all
u can do this via group policy or via registry

for registry Goto
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sourcepath
there u can put like \comutername\share example >> ashu\i386 just copy i386 folder to this pc and put this setting in to registry nd ur done but i386 folder on pc name ashu should be shared to all so that all can access this D

and via group policy go to

computer configuration\administrative template\system at right side see like this “specify windows installation file location”
put the same \comutername\share nd now nobody need to carry an CD for normal windows components installation

For those who already know this already pls ignore this ;) ;)

setting up grub password in shell

December 6, 2008

Setting up grub”s password in gui is very easy but sometimes X server sucks by taking that situation in consideration we can set-up the grub password in shell

First you need to encrypt your password. You can do that by running the “md5crypt” command from
within the GRUB shell. Then you need to add a “password” command to grub.conf that uses that
encrypted password, like this:

#touch grub

#grub-md5-crypt >grub Press Enter

Note: – Nothing will be appear on your screen so don’t hesitate.
Type The Password such as redhat press enter.
Retype the password redhat press enter.

# vi /root/grub /etc/grub.conf

This command will open both the file in vi editor as shown in the above example.

Password:
Retype password:
$1$I2w2s1$EPZtrLn/h2M4qfh48ZL8O0

Now copy the encrypted passwords using yy.

Then press :
and type n (This will switch you to the next file /etc/grub.conf).

And after the splashimage=(hd,0,0) line : –

press pp to paste the encryped password from the previous file.

and add the following line before the encrypted password like this: –

password –md5 $1$I2w2s1$EPZtrLn/h2M4qfh48ZL8O0

Press :wq

Save and exit and reboot your system. ) and ur done

setting up bonding in linux for NIC”s redundancy

December 6, 2008

Step #1: Create a bond0 configuration file

Red Hat Linux stores network configuration in /etc/sysconfig/network-scripts/ directory. First, you need to create bond0 config file:
# vi /etc/sysconfig/network-scripts/ifcfg-bond0Append following lines to it
DEVICE=bond0
IPADDR=192.168.1.11
NETWORK=192.168.1.0
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
Replace above IP address with your actual IP address. Save file and exit to shell prompt.
Step #2: Modify eth0 and eth1 config files:

Open both configuration using vi text editor and make sure file read as follows for eth0 interface# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Modify/append directive as follows:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Open eth1 configuration file using vi text editor:# vi /etc/sysconfig/network-scripts/ifcfg-eth1Make sure file read as follows for eth1 interface:
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Save file and exit to shell prompt.
Step # 3: Load bond driver/module

Make sure bonding module is loaded when the channel-bonding interface (bond0) is brought up. You need to modify kernel modules configuration file:
# vi /etc/modprobe.conf
Append following two lines:
alias bond0 bonding
options bond0 mode=balance-alb miimon=100
Save file and exit to shell prompt.
Step # 4: Test configuration

First, load the bonding module:
# modprobe bonding
Restart networking service in order to bring up bond0 interface:
# service network restart
List all interfaces:
# ifconfig
Output:

bond0 Link encap:Ethernet HWaddr 00:0C:29:82:0F:46
inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe82:f46/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:2313 errors:0 dropped:0 overruns:0 frame:0
TX packets:2372 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1591448 (1.5 MiB) TX bytes:806958 (788.0 KiB)

eth0 Link encap:Ethernet HWaddr 00:0C:29:82:0F:46
inet6 addr: fe80::20c:29ff:fe82:f46/64 Scope:Link
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:2187 errors:0 dropped:0 overruns:0 frame:0
TX packets:1826 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1564864 (1.4 MiB) TX bytes:583939 (570.2 KiB)
Interrupt:185 Base address:0x1400

eth1 Link encap:Ethernet HWaddr 00:0C:29:82:0F:46
inet6 addr: fe80::20c:29ff:fe82:f46/64 Scope:Link
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:126 errors:0 dropped:0 overruns:0 frame:0
TX packets:546 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26584 (25.9 KiB) TX bytes:223019 (217.7 KiB)
Interrupt:169 Base address:0x1480

As u can see now we hav one ip for both NICs in the form of bond0.IF u want to test method given above simply use this command to shutdown the one Nic and try pinging the ip given to bond0
#ifconfig eth1 down
You shold get reply even after shutting down the second nic and this what redundancy is all about ;) )

setting ip address in command line

December 6, 2008

if u want to set up ip address via cmd in windows >>:—

netsh interface ip set address name=”Local Area Connection” static 192.168.0.1 255.255.255.0 192.168.0.1 1
the last 1 indicates the metric and it can be 2,3…

( Metric is the number of hops to the destination. Anything on the local LAN is one hop and each router crossed after that is an additional hop. The Metric is used to determine the best route)

if want to set up dns >>:–

1.netsh interface ip set dns “Local Area Connection” static 192.168.1.28  (THIS IS FOR primary dns server)

2.netsh interface ip add dns name=”Local Area Connection”  192.168.1.67 index=2 (THIS IS FOR secondary dns server)

if want to get ip via dhcp >>:–

netsh interface ip set address name=”Local Area Connection” dhcp

if u wanna have dns via dhcp >>:–

netsh interface ip set dns name=”Local Area Connection” dhcp

I hope this is informative to u guys 🙂