Re: Monitoring users cd'ing out of their ~

But if you chroot the logins you will never
get to suitably punnish the offender.

How about rewriting the 'cd' command
to check the home path against going outside, and log it.
Then you get to punnish people now and then,

Of course with the new virtual hardware cpu's, which home directory
on which virtual machine are you checking?

On Tue, 06 Mar 2007 11:46:36 -0800, Sir Jackery wrote:

On Mon, 5 Mar 2007, Colin McKinnon wrote:

Adam wrote:

I'm running a fairly strict hosting server

(not yet you're not)

and I'd like to be able to
monitor when users cd out of their home dir and then write a perl
daemon to automatically do something suitably punishing.

Sounds a lot like hard work. Why not just give them chroot logins?


That's what I would do. A chroot jail is the textbook way to allow others
command line access securely.

--Sir Jackery


Relevant Pages

  • Re: groupadd -R problem
    ... When I want to add a group to the system, I usually specify the name ... with the vigr command, as well, but you have to remember to type ... file (in the file specified as the chroot directory for the jail) to ...
  • Re: Problems Installing Fedora x86_64
    ... After exit the chroot and the shell reboot. ... Rescue splash screen with an error message. ... The "mount" command returns the following: ... 'grub-install /dev/sda' should give you an error. ...
  • Re: moving /var
    ... edit /etc/fstab to point /var to the new partition, ... As far as running a command from within the partition (e.g. chroot) from ... menu (including installing grub or lilo), I would just do that if need ...
  • Re: Broken System After Update
    ... This should rebuild the initrd ... bash: update-initramfs: command not found. ... chroot into your system do you have that command there? ... I prefer to bind mount all of them instead of creating a second ...
  • Re: Warnings when doing a chroot.
    ... Are you running this command inside /srv/chroot on the host system? ... I would guess that schroot tries to cd to the corresponding ... The directory does not exist inside the chroot. ... current working directory inside the chroot. ...