Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: Accessing existing files in a chroot jail

Cut and pasted from LWN:

  how can you have an app that runs in the chroot jail access files that are in more normal locations?

    Debian on AMD64
(Posted Dec 2, 2004 9:16 UTC (Thu) by subscriber gevaerts) (Post reply)

mount /etc/passwd /chroot/etc/passwd -o bind
mount /etc/shadow /chroot/etc/shadow -o bind
mount /etc/group /chroot/etc/group -o bind
mount /home /chroot/home -o bind

should do the trick. Of course, using ldap authentication the first three are not needed.

User Journal

Journal Journal: Vsftp to provide ftp/s

Generation of private key:

openssl genrsa -out vsftpd_key.pem 1024

Generation of Cert:

openssl req -new -x509 -key vsftpd_key.pem -out vsftpd_cert.pem

Combining: cat vsftpd_key.pem >> vsftpd_cert.pem

And this is pointed to in vsftpd.conf: rsa_cert_file=/path/to/cert/vsftpd_cert.pem

Alternatively:

openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/vsftpd.pem -out etc/ssl/private/vsftpd.pem

User Journal

Journal Journal: Perwill / Screener applications OpenLook and WindowManagers

Finally fixed a long-standing problem in that Perwill (and presumably anything else built with the 'Screener' cross-platform toolkit) wouldn't work with any window manager other than MWM or Enlightenment, because it used the OpenLook UI if available, and the menu bar was inaccessible.

A bit of strings & grepping and some luck resulted in:

export SCLOOK=motif

Which works at least with the new multiwm in Cygwin/X x-org

User Journal

Journal Journal: VNC & Nedit

To prevent unrecognised keysym errors when running nedit under vncserver, add this to .xmodmap

keycode any = KP_Enter

User Journal

Journal Journal: What if your firewall blocks realmedia?

Yesterday, I wanted to view a real-media stream off the web. At work, our firewall blocks Real streams...

Eventually I found a neat way round it. Head over to workspot.com, click on the 10-minute no-signup demo, launch mozilla, go to real, download the realplayer8 plugin, fire up a shell and install.

Go the stream URL and open with the newly installed realplayer application. No sound, but job's a goodun - even over the VNC link.

Apart from a font glitch, went pretty smoothly.

What other funky things could you do in 10 minutes ?

User Journal

Journal Journal: Magic incantations for Windows:

To register an arbitrary DLL:

regsvr32 blah.dll

To re-register Office components to stop them complaining on document-opening:

msexcel /unregserver | /regserver

winword /unregserver | /regserver

Slashdot Top Deals

"If I do not want others to quote me, I do not speak." -- Phil Wayne

Working...