Ask a Question related to Linux Setup, Configuration & Administration, Design and Development.
-
Antoine Logean #1
disk image creation & restauration
Hi everybody,
How can I create and copy (with which program) a disk image of my /
partition to a /backup partition ? And more important how can I restore
it at the boot time ? The best solution whould be to have the different
images on a server and to restore them on each client.
What kind of solutions exist on Linux ?
thanks for your help
Antoine
Antoine Logean Guest
-
Image control runtime creation issue
I am having problems getting the Image control to actually display the image I specify in the source property. The Image control is created in... -
PHP Image Creation Libraries
I'm pretty confused on what to download, and how to install Image Creation library's for PHP. I have the latest version of PHP and am running... -
[Q] Image Creation problems & MacOSX
I've got a fairly simple php script which creates a simple gif image. Now, if I use this script on my primary webhost, everything works correctly... -
Software Disk Image
Currently have SCO Enterprise 5.0.6 running with some production software installed on a Compaq ProLiant. We have just aquired a second hard disk... -
Image Creation Without GD Library
Greetings, My hosting provider does not support GD libraries yet. I want to generate simple graphics on-the-fly. Anyone have a working sample... -
Antoine Logean #2
Re: disk image creation & restauration
the problem is that there are 12 clients that have to be reinstalled
every morning in a pretty simple way.
Now imagine you copy the huge tar file of the / partition on the backup
partition. Ok. But how can you restore it automatically if the /
partition is destroyed ? I can not boot manually each client with a
rescue disk, reformat the /, untar the think and copy it to /. I would
have to come at 5 AM every morning !
do you understand my problem ?
Antoine
Antoine Logean Guest
-
Peter T. Breuer #3
Re: disk image creation & restauration
In comp.os.linux.setup Antoine Logean <al@biolinux.ch> wrote:
> the problem is that there are 12 clients that have to be reinstalled
> every morning in a pretty simple way.By making the partition first! Next silly question?> Now imagine you copy the huge tar file of the / partition on the backup
> partition. Ok. But how can you restore it automatically if the /
> partition is destroyed ? I can not boot manually each client with a
> rescue disk, reformat the /, untar the think and copy it to /. I would
> have to come at 5 AM every morning !No. You are an idiot. Have you ever heard of scripting? It appears> do you understand my problem ?
NOT. Here, have a free conslutancy:
sfdisk < sfdisk.save
mke2fs /dev/hda5
mkswap /dev/hda2
mount /dev/hda5 /mnt
tar xzvfC /image.tgz /mnt
Put it in /bin/rc on the live cdrom, and boot with init=/bin/rc.
That will be $0. Plus the cost of my education. Which makes up for
yours.
Peter
Peter T. Breuer Guest
-
Nico Kadel-Garcia #4
Re: disk image creation & restauration
Antoine Logean wrote:
Ooof. Dude, you need to learn how to use tftp to install disk images> the problem is that there are 12 clients that have to be reinstalled
> every morning in a pretty simple way.
>
> Now imagine you copy the huge tar file of the / partition on the backup
> partition. Ok. But how can you restore it automatically if the /
> partition is destroyed ? I can not boot manually each client with a
> rescue disk, reformat the /, untar the think and copy it to /. I would
> have to come at 5 AM every morning !
online. And include the details when you ask for solutions, the devil is
in the details.
Also, geneerally ignore Peter. he cops a really hard attitude on the
newbies, and his answers often leave out critical bits.
Nico Kadel-Garcia Guest
-
Jean-David Beyer #5
Re: disk image creation & restauration
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Antoine Logean wrote:
| Hi everybody,
|
| How can I create and copy (with which program) a disk image of my /
| partition to a /backup partition ? And more important how can I restore
| it at the boot time ? The best solution whould be to have the different
| images on a server and to restore them on each client.
|
| What kind of solutions exist on Linux ?
|
| thanks for your help
|
| Antoine
|
You could use find and cpio (in -p mode) to do the copy from / to /backup.
You could use it the other way to restore.
Why would you want to restore at boot time? If your hardware is so bad
that a total restore is required every time you boot, you should spend
your time getting the hardware fixed.
As a user, I would find having my files all restored to some time in the
past quite intolerable. It would mean that nothing I did between reboots
would, in fact, have been done.
What is the real problem you are trying to solve?
- --
~ .~. Jean-David Beyer Registered Linux User 85642.
~ /V\ Registered Machine 73926.
~ /( )\ Shrewsbury, New Jersey [url]http://counter.li.org[/url]
~ ^^-^^ 7:10am up 15 days, 12:03, 2 users, load average: 2.23, 1.98, 1.53
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - [url]http://enigmail.mozdev.org[/url]
iD8DBQE/MOOxPtu2XpovyZoRAppIAJ9fy3XyInHYahZKfmLNQGL90jlQKg CcD6M7
2z9d2FlOMna2cw0ht+9KnA8=
=l6js
-----END PGP SIGNATURE-----
Jean-David Beyer Guest
-
Nico Kadel-Garcia #6
Re: disk image creation & restauration
Peter T. Breuer wrote:
*Sigh*. The bit that Peter entirely left out, under the "pay no> In comp.os.linux.setup Antoine Logean <al@biolinux.ch> wrote:
>>>>the problem is that there are 12 clients that have to be reinstalled
>>every morning in a pretty simple way.
>>>>Now imagine you copy the huge tar file of the / partition on the backup
>>partition. Ok. But how can you restore it automatically if the /
>>partition is destroyed ? I can not boot manually each client with a
>
> By making the partition first! Next silly question?
>
>>>>rescue disk, reformat the /, untar the think and copy it to /. I would
>>have to come at 5 AM every morning !
>>>>do you understand my problem ?
>
> No. You are an idiot. Have you ever heard of scripting? It appears
> NOT. Here, have a free conslutancy:
>
> sfdisk < sfdisk.save
> mke2fs /dev/hda5
> mkswap /dev/hda2
> mount /dev/hda5 /mnt
> tar xzvfC /image.tgz /mnt
>
> Put it in /bin/rc on the live cdrom, and boot with init=/bin/rc.
>
> That will be $0. Plus the cost of my education. Which makes up for
> yours.
attention to that man behind the curtain" approach to technical support,
is the part where the machine has to auto-reboot every morning at 5am
and load the scripting to do this.
There are a couple of ways. A locked down partition that has these tools
embedded in it and manipulates the LILO reboot arguments or grub.conf
arguments to reboot once and once only with the newly installed
partition is possible, and reload the whole mess every time after that,
is one trick. But this can be done more gracefully with tools such as
tftp and various auto-installation tools.
Another is to leave a spare partition to install the OS image into,
usually in scratch space or another disk, reboot to that partition, then
recopy *that* OS image back to the original partition. You can get away
with quite a lot of tweaking this way.
Keeping the tarball or other image up to date is its own problem. Either
designate a machine as "the source machine(tm)", or once you've made a
tarball, you can uncompress the tarball to a specific directory and
"chroot" to that directory to do all sorts of reconfiguration, update,
etc. without even requiring a dedicated machine to work from.
Nico Kadel-Garcia Guest
-
Nico Kadel-Garcia #7
Re: disk image creation & restauration
Jean-David Beyer wrote:
This is extremely common in computing cluster machines where user's do> Why would you want to restore at boot time? If your hardware is so bad
> that a total restore is required every time you boot, you should spend
> your time getting the hardware fixed.
>
> As a user, I would find having my files all restored to some time in the
> past quite intolerable. It would mean that nothing I did between reboots
> would, in fact, have been done.
>
> What is the real problem you are trying to solve?
not *have* local home directories, and all software should be
re-installed regularly to prevent people leaving littls packages or
messed up configurations for each other.
Nico Kadel-Garcia Guest
-
Jean-David Beyer #8
Re: disk image creation & restauration
Nico Kadel-Garcia wrote:
I never heard of such a thing. If a user has no local home directory,> Jean-David Beyer wrote:
>
>>>> Why would you want to restore at boot time? If your hardware is so bad
>> that a total restore is required every time you boot, you should spend
>> your time getting the hardware fixed.
>>
>> As a user, I would find having my files all restored to some time in the
>> past quite intolerable. It would mean that nothing I did between reboots
>> would, in fact, have been done.
>>
>> What is the real problem you are trying to solve?
>
> This is extremely common in computing cluster machines where user's do
> not *have* local home directories, and all software should be
> re-installed regularly to prevent people leaving littls packages or
> messed up configurations for each other.
>
how do people leave little packages for a user? Surely the ordinary
users are not in a position to create home directories on the local
machine for other users (or even themselves). If I understand the
situation you describe, I would assume you set it up so no local files
of any kind can be created (except by the super user), so local users
cannot cause any problems like this.
Anyone screwing around would have to do it on the remote file server,
and that should be set up so users can affect only their own files.
What am I missing?
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey [url]http://counter.li.org[/url]
^^-^^ 7:55am up 15 days, 12:48, 2 users, load average: 2.07, 2.08, 2.08
Jean-David Beyer Guest
-
Antoine Logean #9
Re: disk image creation & restauration
Thanks Peter,
Your are rude with newbies but generous in your answer !
I will try what you propose ...
thanks again
Antoine
Antoine Logean Guest
-
Antoine Logean #10
Re: disk image creation & restauration
thanks Jean-David,
I will also try cpio. Seem to be a powerfull tool.
The different workstations are dedicated to lessons on computer
security. The students will try different tools in order to challenge
the security of the platform.
Although they will have limited privileges we want to have a simple
restore procedure that can establish a clean, uncompromised lab
environment if needed after certain activities. (The next time I will
explain all the details at the begining of the discussion, sorry Peter).
Antoine
Antoine Logean Guest
-
Antoine Logean #11
Re: disk image creation & restauration
Thanks Nico,
I will need some time to digest and try what you propose.
here other solutions proposed by Erich Lerch and Felix Rauch:
Partition Image [url]http://www.partimage.org/[/url]
mondo rescue: [url]http://www.microwerks.net/~hugo/download/download.html[/url]
Dolly
[url]http://rpmfind.net/linux/RPM/cooker/contrib/alpha/dolly-0.2-1mdk.alpha.html[/url]
Antoine Logean Guest
-
Nico Kadel-Garcia #12
Re: disk image creation & restauration
Jean-David Beyer wrote:
> Nico Kadel-Garcia wrote:Home directories are AFS or NFS or SMB mounted from a local server.> I never heard of such a thing. If a user has no local home directory,>> This is extremely common in computing cluster machines where user's do
>> not *have* local home directories, and all software should be
>> re-installed regularly to prevent people leaving littls packages or
>> messed up configurations for each other.
>>
> how do people leave little packages for a user? Surely the ordinary
> users are not in a position to create home directories on the local
> machine for other users (or even themselves). If I understand the
> situation you describe, I would assume you set it up so no local files
> of any kind can be created (except by the super user), so local users
> cannot cause any problems like this.
Experience. If you leave machines up and running 24x7 with no flushing> Anyone screwing around would have to do it on the remote file server,
> and that should be set up so users can affect only their own files.
>
> What am I missing?
of the OS, people *do* leave little love packages. And because
UNIX/Linux are such fun and powerful operating systems, and because if
you have shell or X windows access you can run programs out of "/tmp"
which absolutely must be read-write-execute for all, you can't really
prevent them from running installing and running programs locally.
It's often fairly trivial to set up a server for FTP, IRC, pirate
software web sites, etc. running on a port for your buddies to use as a
server from off-site, or given some time to play around you can run a
fake login interface that steals people's passwords, or lock the screen
on the machine so no one else can use it until you unlock it or the
machine is reboot it, etc., etc. Take a look at the David LaMacchia case
at MIT from a few years back for examples of what can happen.
Also, the "flush me every day completely" is a good way to make sure the
machines get *all* the upgrades and are in a configuration known to the
admins, without having to integrate a new set of patches on top of an
older running operating system and make sure you wound up with the same
expected state.
Nico Kadel-Garcia Guest
-
Felix Rauch #13
Re: disk image creation & restauration
[f'up to comp.os.linux.setup]
In comp.os.linux.setup Antoine Logean <al@biolinux.ch> wrote:[...]> here other solutions proposed by Erich Lerch and Felix Rauch:I would suggest to use a more recent version of dolly. The most recent> Dolly
> [url]http://rpmfind.net/linux/RPM/cooker/contrib/alpha/dolly-0.2-1mdk.alpha.html[/url]
is 0.57 (see [1]) and is thus much more recent than 0.2.
Please note that Dolly is only a tool to distribute large (files) or
partitions to any number of nodes in a switched network. To do what
you want to do I'd suggest to boot your nodes with PXE into a small
RAM-disk--based environment. Then, start Dolly remotely on all clients
and clone your disk from the master.
- Felix
[1] [url]http://www.cs.inf.ethz.ch/CoPs/patagonia/#dolly[/url]
--
Felix Rauch, research assistant at laboratory for computersystems, ETH Zuerich
[url]http://www.nice.ch/~felix/[/url] Member of Swiss Internet User Group: [url]www.siug.ch[/url]
This article contains my personal view only! Use of my addresses for marketing
purposes is hereby strictly prohibited according to swiss privacy laws.
Felix Rauch Guest
-
Peter T. Breuer #14
Re: disk image creation & restauration
In comp.os.linux.setup Nico Kadel-Garcia <nkadel@verizon.net> wrote:
> Jean-David Beyer wrote:>> As a user, I would find having my files all restored to some time in the
>> past quite intolerable. It would mean that nothing I did between reboots
>> would, in fact, have been done.
>>
>> What is the real problem you are trying to solve?But they can't do that on linux.> This is extremely common in computing cluster machines where user's do
> not *have* local home directories, and all software should be
> re-installed regularly to prevent people leaving littls packages or
> messed up configurations for each other.
In any case, the standard solution to that situation is a boot via
bootp and an nfs root. Heck ... they can even spend some time during
the boot copying stuff to local.
Peter
Peter T. Breuer Guest
-
Peter T. Breuer #15
Re: disk image creation & restauration
In comp.os.linux.setup Nico Kadel-Garcia <nkadel@verizon.net> wrote:
> Jean-David Beyer wrote:>> Nico Kadel-Garcia wrote:>> I never heard of such a thing. If a user has no local home directory,>>> This is extremely common in computing cluster machines where user's do
>>> not *have* local home directories, and all software should be
>>> re-installed regularly to prevent people leaving littls packages or
>>> messed up configurations for each other.
>>>
>> how do people leave little packages for a user? Surely the ordinary
>> users are not in a position to create home directories on the local
>> machine for other users (or even themselves). If I understand the
>> situation you describe, I would assume you set it up so no local files
>> of any kind can be created (except by the super user), so local users
>> cannot cause any problems like this.> Home directories are AFS or NFS or SMB mounted from a local server.>> Anyone screwing around would have to do it on the remote file server,
>> and that should be set up so users can affect only their own files.
>>
>> What am I missing?They can't. As to what they do in /tmp or their home directory (nfs> Experience. If you leave machines up and running 24x7 with no flushing
> of the OS, people *do* leave little love packages. And because
mount), that's their business.
They don't install. They can put whatever they like in /tmp. There's no> UNIX/Linux are such fun and powerful operating systems, and because if
> you have shell or X windows access you can run programs out of "/tmp"
> which absolutely must be read-write-execute for all, you can't really
> prevent them from running installing and running programs locally.
harm at all in that.
It's trivial, and stopped by closing access for ports above 1024.> It's often fairly trivial to set up a server for FTP, IRC, pirate
> software web sites, etc. running on a port for your buddies to use as a
They always have the right to run such things. If they didn't, then> server from off-site, or given some time to play around you can run a
> fake login interface that steals people's passwords, or lock the screen
wouldonly have a finite number of programs they could run and therefore
they would not be using a general purpose computing machine, but an
appliance.
Anyone can break a screen lock with ctl-alt-bkspace.> on the machine so no one else can use it until you unlock it or the
> machine is reboot it, etc., etc. Take a look at the David LaMacchia case
> at MIT from a few years back for examples of what can happen.I simply check the md5sums of every file every day. There are no> Also, the "flush me every day completely" is a good way to make sure the
> machines get *all* the upgrades and are in a configuration known to the
problems with what people put in tmp. Mind you, if somebody did invent a
fake login screen I'd give him extra marks ...
All files are crosschecked all the time. Typical output:> admins, without having to integrate a new set of patches on top of an
> older running operating system and make sure you wound up with the same
> expected state.
--- /etc/md5check-1 Tue Aug 5 08:57:58 2003
+++ /etc/md5check-1.new Wed Aug 6 08:59:17 2003
@@ -1,14 +1,8 @@
-There are 4 scanned files that differ between machines
+There are 2 scanned files that differ between machines
---------------------------------------------------------------------
-/.viminfo: ( 1) 9702c9c5f9a0667dd85dea94ccbc08c3
- : it018 !UNIQUE FILE!
DEBUG sigs = 20, file = /boot/map
--------------------------------------------------------------------
-/lost+found/#6845: ( 1) 6f6043049187e557ddb24cce457eda19
- : it007 !UNIQUE FILE!
---------------------------------------------------------------------
-/lost+found/#6863: ( 1) b7d8a76f482fbc2ea5ac5ea1ec6f2d1a
- : it007 !UNIQUE FILE!
+/lost+found/#6850: ( 1) b7d8a76f482fbc2ea5ac5ea1ec6f2d1a
+ : it008 !UNIQUE FILE!
--------------------------------------------------------------------
One example of rogue sysadmin, and some random minor corruptions.
Peter
Peter T. Breuer Guest
-
Peter T. Breuer #16
Re: disk image creation & restauration
Antoine Logean <al@biolinux.ch> wrote:
> thanks Jean-David,
> I will also try cpio. Seem to be a powerfull tool.Hey - that's getting more interesting. In that case, yes, you do want> The different workstations are dedicated to lessons on computer
> security. The students will try different tools in order to challenge
> the security of the platform.
> Although they will have limited privileges we want to have a simple
> restore procedure that can establish a clean, uncompromised lab
> environment if needed after certain activities. (The next time I will
> explain all the details at the begining of the discussion, sorry Peter).
them to have a local system, and you do want to restore it to zero
every day. The easiest thing is to mount from a secure boot medium (can
be cdrom, can be bootp plus nfsroot) and do
mount /dev/hda5 /mnt
rsync -cavz --delete remotemirror:/ /mnt/
sending the output to yourself via mail.
Peter
Peter T. Breuer Guest
-
Nico Kadel-Garcia #17
Re: disk image creation & restauration
Peter T. Breuer wrote:
> In comp.os.linux.setup Nico Kadel-Garcia <nkadel@verizon.net> wrote:Not on a cluster or shared machine. Installing it in "/tmp" counts as>>>Experience. If you leave machines up and running 24x7 with no flushing
>>of the OS, people *do* leave little love packages. And because
>
> They can't. As to what they do in /tmp or their home directory (nfs
> mount), that's their business.
installing it, and running an inappropriate or unauthorized service
after you've logged out (which such love packages can easily do) is a
potentially serious problem. Shared workstations should not be used by
people not logged into them unless that's local policy to permit it, and
it rarely is.
Horse pucks. If I leave a pirate FTP or FSP server running out of /tmp,>>>UNIX/Linux are such fun and powerful operating systems, and because if
>>you have shell or X windows access you can run programs out of "/tmp"
>>which absolutely must be read-write-execute for all, you can't really
>>prevent them from running installing and running programs locally.
>
> They don't install. They can put whatever they like in /tmp. There's no
> harm at all in that.
or a lovely little Xtank server for everyone to use after I leave the
cluster and log out, I can easily cause all sorts of bandwidth problems
for the cluster as well as making the machine unusable for others. And
that sort of abuse is simply too easy to do.
Horse pucks. Getting the firewall configuration just right to restrict>>>It's often fairly trivial to set up a server for FTP, IRC, pirate
>>software web sites, etc. running on a port for your buddies to use as a
>
> It's trivial, and stopped by closing access for ports above 1024.
incoming access for ports above 1024 is often a nightmare. And you can't
entirely restrict it, since TCP does a fascinating bit of handing off of
ports to allow the services on remote machines to actually respond back
on a non-privileged port.
While they're logged in, sure. After they log off and leave the cluster?>>>server from off-site, or given some time to play around you can run a
>>fake login interface that steals people's passwords, or lock the screen
>
> They always have the right to run such things. If they didn't, then
> wouldonly have a finite number of programs they could run and therefore
> they would not be using a general purpose computing machine, but an
> appliance.
Or leave it running more than 24 hours tying up public or shared
machines? Nuh-uh.
Nonsense. In can vlock all the terminal sessions and turn off the X server.>>>on the machine so no one else can use it until you unlock it or the
>
> Anyone can break a screen lock with ctl-alt-bkspace.
This requires your kernel/glibc not to be screwed with. There are some>>>Also, the "flush me every day completely" is a good way to make sure the
>>machines get *all* the upgrades and are in a configuration known to the
>
> I simply check the md5sums of every file every day. There are no
> problems with what people put in tmp. Mind you, if somebody did invent a
> fake login screen I'd give him extra marks ...
*nasty* hacks going around that actually trick the md5sum into
misreporting the checksums, including some loadable kernel module hacks.
And you just entirely gave up on monitoring /tmp contents, which are
therefore dangerous.
Nico Kadel-Garcia Guest
-
Nico Kadel-Garcia #18
Re: disk image creation & restauration
Jean-David Beyer wrote:
> Nico Kadel-Garcia wrote:
>>> Jean-David Beyer wrote:Good for you. Longer for you on UNIX, much less on Linux. I assume you>>>>>> Anyone screwing around would have to do it on the remote file server,
>>> and that should be set up so users can affect only their own files.
>>>
>>> What am I missing?
>>
>>
>> Experience.
>
> You are probably right about that. I have been running UNIX only since
> the early 1970s, and Linux only since 1998.
also haven't really tried to run cluster or workgroup machines extensively?
You forgot /usr/tmp, the TeX/LaTeX mkfont capabilities, various servers>> > If you leave machines up and running 24x7 with no flushing>>> of the OS, people *do* leave little love packages.
>
> They would not leave them in / (root), /usr, /bin, /sbin, /lib,
> /usr/bin, /usr/lib, because you would have set the permissions
> accordingly, with both chmod and chattr, right? That leaves /tmp and
> /var. You could mount /tmp and /var noexec and then there would be no
> point in sticking any binaries there because they could not be executed
> even if their execute bits were set on.
that put binaries in /var (such as /var/ftp for FTP anonymous login,
/var/www/cgi-bin for some Apache implementations, etc., etc.)
If your site can work with that kind of restriction, fine. But You'd
effectively break some of the default funcationality of a typical
machine and potentially generate a very serious maintenance headache
which could get you slapped down by your manager or the users themselves
revolting.
Because people may be logged in and doing work at 2:01 AM. If you're> So instead of all this bother, why do you not just scan /tmp and /var
> for files not owned by root and delete them? Make this an announced
> policy that you do at 2:01AM everyday, so no one would be surprised?
going to kick them off the systems anyway, why not just do a clean
system flush? It also avoids a lot of the potential headaches of trying
to maintain systems in the field and keep the security patches up to
date, since they all get flushed on a regular basis.
*Sigh*. It's non-trivial, to say the least, to chroot users so that> Now if you were really security conscious, you would change-root all
> these users to give each of them a dummy version of /tmp and /var,
> visible only to the user in question. Furthermore, with chroot, you
> could deprive them of access to things that might compromise security,
> though there are less of these nowadays than 20 years ago. You can no
> longer give files away. You cannot change permissions of stuff that is
> not yours, etc.
*only* /tmp and /var are made distinct from other users. I've done some
interesting work with chroot, for OpenSSH use, and it's a very powerful
tool, but has limitations.
For example: if you want to provide such users access to local copies of
perl or gcc and avoid the potentially quite serious performance and
mixed environment maintenance hits of running it from a remote
fileserver, you'd have to either NFS read-only mount or hard-link /usr
into *every chroot user's home directory*. This way lies utter support
madness.
You've also just stuck the "/tmp" directory in everybody's home>>> And because UNIX/Linux are such fun and powerful operating systems,
>> and because if you have shell or X windows access you can run programs
>> out of "/tmp" which absolutely must be read-write-execute for all, you
>> can't really prevent them from running installing and running programs
>> locally.
>
> No, as above: mount /tmp noexec.
directories, and potentially expanded the required disk space of your
primary fileserver by a huge factor.
I think not.
Well, true. But it flushes the machine every night and helps prevent it>>> It's often fairly trivial to set up a server for FTP, IRC, pirate
>> software web sites, etc. running on a port for your buddies to use as
>> a server from off-site, or given some time to play around you can run
>> a fake login interface that steals people's passwords, or lock the
>> screen on the machine so no one else can use it until you unlock it or
>> the machine is reboot it, etc., etc.
>
> Probably difficult to set up a server for anything on a machine where
> the only file space you can write on is mounted noexec, so nothing there
> can be executed. So the abuser must put it in his own home directory on
> the nfs (or whatever) file server. And restoring the local machine will
> not protect against that.
from being a widely published/"reliable" warez site.
You upgrade the backup image. This is straightforward by uncompressing>>> Take a look at the David LaMacchia case at MIT from a few years back
>> for examples of what can happen.
>>
>> Also, the "flush me every day completely" is a good way to make sure
>> the machines get *all* the upgrades
>
> How does it do that? If you restore the machine from what it had when
> you made the backup, no updates go in.
*that* into a local directory on a specified work server, chrooting into
that directory, making the changes, then exiting and rebuilding your
backup image. I've done that extensively and successfully for any number
of systems.
It doesn't, really, but it does have to do with his followup that the> I am not sure what this has to do with the original question.>> and are in a configuration known to the admins, without having to
>> integrate a new set of patches on top of an older running operating
>> system and make sure you wound up with the same expected state.
>>
systems are for students to learn security tools on a nightly rebuilt
set of systems. Installation of some security tools and software tools
depends on what order they were done in, and whether there were previous
software configurations or changes made first. The differences aren't
huge, but they can be quite confusing when upgrading versions of, say,
Apache or PHP that make post-installation script based modifications to
the configuration files. Voila, two machines that nominally have the
same software have differentn checksums and potentially different
behavior because of when their software updates were done and in what
order, whether an intermediate software update has been discarded and
replaced with a newer one, etc., etc.
I've got scars from this kind of whackiness. It's why I really, really
like working from a spanking clean disk image.
Nico Kadel-Garcia Guest
-
Peter T. Breuer #19
Re: disk image creation & restauration
In comp.os.linux.setup Nico Kadel-Garcia <nkadel@verizon.net> wrote:
> Peter T. Breuer wrote:>> In comp.os.linux.setup Nico Kadel-Garcia <nkadel@verizon.net> wrote:>>>>>Experience. If you leave machines up and running 24x7 with no flushing
>>>of the OS, people *do* leave little love packages. And because
>>
>> They can't. As to what they do in /tmp or their home directory (nfs
>> mount), that's their business.It doesn't. It's just "there", not installed ...> Not on a cluster or shared machine. Installing it in "/tmp" counts as
> installing it, and running an inappropriate or unauthorized service
That I agree with. So firewall off the high ports.> after you've logged out (which such love packages can easily do) is a
> potentially serious problem.
Uh .... no http servers? No ftp servers .. well, I suppose it depends> Shared workstations should not be used by
> people not logged into them unless that's local policy to permit it, and
what you mean by logged in. Authenticated and authorised, shall we say?
>> They don't install. They can put whatever they like in /tmp. There's no
>> harm at all in that.That's different. Putting stuff in /tmp is fine. Running a service is> Horse pucks. If I leave a pirate FTP or FSP server running out of /tmp,
different.
>> It's trivial, and stopped by closing access for ports above 1024.I've never had any trouble - you can simply close them all off to nonlocal> Horse pucks. Getting the firewall configuration just right to restrict
> incoming access for ports above 1024 is often a nightmare. And you can't
> entirely restrict it, since TCP does a fascinating bit of handing off of
> ports to allow the services on remote machines to actually respond back
> on a non-privileged port.
IPs, which should do nicely and never mind the niceties.
>> They always have the right to run such things. If they didn't, then
>> would only have a finite number of programs they could run and therefore
>> they would not be using a general purpose computing machine, but an
>> appliance.You can reap old processes, but I for one certainly don't object to> While they're logged in, sure. After they log off and leave the cluster?
people runningf jobswhile they're not logged in!
Well, I would frown on that, but it's not a disaster. Too much of that> Or leave it running more than 24 hours tying up public or shared
> machines? Nuh-uh.
and I might warn them.
>>>>>on the machine so no one else can use it until you unlock it or the
>> Anyone can break a screen lock with ctl-alt-bkspace.Hit the reboot button.> Nonsense. I can vlock all the terminal sessions and turn off the X server.
>>>>>Also, the "flush me every day completely" is a good way to make sure the
>>>machines get *all* the upgrades and are in a configuration known to the
>>
>> I simply check the md5sums of every file every day. There are no
>> problems with what people put in tmp. Mind you, if somebody did invent a
>> fake login screen I'd give him extra marks ...That's OK. It'd be caught next reboot.> This requires your kernel/glibc not to be screwed with. There are some
Don't worry about it. I know about them. One can see the module load> *nasty* hacks going around that actually trick the md5sum into
> misreporting the checksums, including some loadable kernel module hacks.
via anomalous behaviour, inclusing a miscount of processes and entries
under /proc.
I don't monitor /tmp contents, just as I don't monitor the contents of> And you just entirely gave up on monitoring /tmp contents, which are
> therefore dangerous.
peoples $HOME. They can put what they like there.
Peter
Peter T. Breuer Guest
-
James Knott #20
Re: disk image creation & restauration
Jean-David Beyer wrote:
Put 'em on the server and mount an NFS share.> I never heard of such a thing. If a user has no local home directory,
> how do people leave little packages for a user?
--
Fundamentalism is fundamentally wrong.
To reply to this message, replace everything to the left of "@" with
james.knott.
James Knott Guest



Reply With Quote

