# tar -jxvf myfile.tar.bz2
La única jugada ganadora
4 days ago
# tar -jxvf myfile.tar.bz2
#PermitTunnel no
UseDNS no
# no default banner path
ServerName "ProFTPD"
ServerType inetd
DeferWelcome off
DefaultServer on
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultRoot ~ !site-adm
UseIPv6 off
UseReverseDNS off
IdentLookups off
AllowAll
# Report localtime, not GMT
TimesGMT off
[root@cobalt ~]# fidsk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System
/dev/hda1 1 250 2008093+ 83 Linux/dev/hda2 251 500 2008125 83 Linux/dev/hda3 501 625 1004062+ 82 Linux swap/dev/hda4 626 9729 73127880 5 Extended/dev/hda5 626 875 2008093+ 83 Linux/dev/hda6 876 9729 71119723+ 83 LinuxDisk /dev/sda: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System
/dev/sda1 * 1 18242 146521088 7 HPFS/NTFS
[root@cobalt ~]# fdisk /dev/sda1
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 18241.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help):o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 18241.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
# fdisk /dev/sda1
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 18241.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): d
No partition is defined yet!
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-18241, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-18241, default 18241):
Using default value 18241
Command (m for help): t
Selected partition 1
Hex code (type L to list codes):83
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
# mkdir /tmpmnt
# mount /dev/sda1 /tmpmnt
# mkdir /oldhome
# mv /home /oldhome
# mkdir /home
# mount -t ext3 /dev/sda1 /home

WARNING: Re-reading the partition table failed with error 22: Invalid argument.I had this problem until I was able to delete the NTFS partition with FDSIK (the firsts attempts fdisk didn't show the old partition table). Then you can check the results:
The kernel still uses the old table
The new table will be used at the next reboot.
# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 250 2008093+ 83 Linux
/dev/hda2 251 500 2008125 83 Linux
/dev/hda3 501 625 1004062+ 82 Linux swap
/dev/hda4 626 9729 73127880 5 Extended
/dev/hda5 626 875 2008093+ 83 Linux
/dev/hda6 876 9729 71119723+ 83 Linux
Disk /dev/sda: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 18241 146520801 83 Linux
[root@web etc]# yum install perl-suidperlRemeber that lo log in the Statistics page tou need the vsite admin usr and password, not the server admin password!
Setting up Install Process
Setting up repositories
update 100% ========================= 951 B 00:00
BlueQuartz 100% ========================= 951 B 00:00
base 100% ========================= 1.1 kB 00:00
addons 100% ========================= 951 B 00:00
extras 100% ========================= 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS-4 - Addons
Finished
Excluding Packages from CentOS-4 - Extras
Finished
Parsing package install arguments
Resolving Dependencies
> Populating transaction set with selected packages. Please wait.
> Downloading header for perl-suidperl to pack into transaction set.
perl-suidperl-5.8.5-53.el 100% ========================= 20 kB 00:00
> Package perl-suidperl.i386 3:5.8.5-53.el4 set to be updated
> Running transaction check
Dependencies Resolved
================================================================
Package Arch Version Repository Size
================================================================
Installing:
perl-suidperl i386 3:5.8.5-53.el4 update 112 k
Transaction Summary
================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 112 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): perl-suidperl-5.8. 100% ========================= 112 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-suidperl ######################### [1/1]
Installed: perl-suidperl.i386 3:5.8.5-53.el4
Complete!
[root@web etc]#