Apache2 and PHP as CGI

2006-03-30 Thread Stephen Le
I'm having some difficultly running PHP4 scripts as CGI with Apache2. I've installed the php4-cgi package and followed the instructions in /usr/share/doc/php4-cgi/README.Debian.gz, and uncommented the following line in my apache.conf: AddType application/x-httpd-php .php But I get a 404 error when

Live CD for Headless Box

2006-01-13 Thread Stephen Le
Does anybody know of any livecds specially targetted towards headless computers? I need a livecd that I can drop into a computer and immediately get SSH access to the system. If nobody knows of such a livecd, does anybody know how I would make one that worked in such a manner? Thanks.

Re: telnet as login shell

2005-10-16 Thread Stephen Le
On 10/16/05, Aurelien Ricard <[EMAIL PROTECTED]> wrote: > Stephen, try to put a telnet session in their ~/.bashrc > I've never tried but it should work. While this works, it is insecure. A user can easily run a command like 'ssh [EMAIL PROTECTED] rm .bashrc' to delete the .bashrc file and get full

telnet as login shell

2005-10-15 Thread Stephen Le
Is it possible to change a user's login shell to an instance of telnet to a user-unique port? When a user logs into my server, I'd like them to be immediately dropped into a telnet session on a specific port running on the server and to be disconnected when their telnet session ends. Thanks.

Re: Cacti Problems

2005-05-13 Thread Stephen Le
On 5/13/05, Robert Vangel <[EMAIL PROTECTED]> wrote: > Stephen Le wrote: > > I'm running Debian-testing and I've been unable to get Cacti to > > produce any graphs. When I manually attempt to execute poller.php, I > > get the following error: > >

Cacti Problems

2005-05-13 Thread Stephen Le
I'm running Debian-testing and I've been unable to get Cacti to produce any graphs. When I manually attempt to execute poller.php, I get the following error: Fatal error: Call to undefined function: mysql_connect() in /usr/share/cacti/site/lib/adodb/drivers/adodb-mysql.inc.php on line 339 I've v

Re: Limiting User Commands

2004-11-20 Thread Stephen Le
t;untrusted". Everything seems to be working fine. Oh, and I've enabled process accounting. If a user does indeed find a way to execute a restricted command without permission, I'll find out about it. -Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Limiting User Commands

2004-11-09 Thread Stephen Le
;what if" factors by choosing the most effective means to accomplish what I want done. No method is perfect, but some methods are certainly better than others. -Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Limiting User Commands

2004-11-09 Thread Stephen Le
it, some easier than others depending > on what's in /usr/local/rbin. This won't prevent users from executing banned commands with Perl scripts called by Apache. I'm opposed to using rbash for this reason and because some users might want to use a non-bash shell. -Stephen Le -- To U

Re: Limiting User Commands

2004-11-07 Thread Stephen Le
They might be able to accomplish what I need, but I'll have to read more of the documentation. -Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Limiting User Commands

2004-11-07 Thread Stephen Le
ode statically and exectute that remotely. > > No need for C. Perl suffices. I should be able to restrict a user's Perl scripts using Apache's suEXEC. I don't see how a user would be able to remotely execute a compiled C program outside of their priviledges. -Stephen Le -- To UN

Re: Limiting User Commands

2004-11-07 Thread Stephen Le
mands available on the system, though. I might also want to allow another set of users to be able to run the commands unavailable to normal users. In other words, I'd like to restrict normal users more than the default permissions setup. -Stephen Le -- To UNSUBSCRIBE, email to [E

Re: Limiting User Commands

2004-11-06 Thread Stephen Le
increases, the number of independent Apache processes running could get out of hand. However, suEXEC looks like the tool I need to ensure that a user's Perl scripts run with their priviledges and not Apache's. Do you know if suEXEC would also apply to PHP scripts? Thanks, Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Limiting User Commands

2004-11-06 Thread Stephen Le
ve execute access from all commands and grant them on a command by command basis, requiring each users to prefix _every_ command with 'sudo'. -Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: How to activate a theme look of gtk/gnome application when I usen't gnome session ?

2004-11-06 Thread Stephen Le
aemon --oaf-ior-fd=35 Executing just "gnome-settings-daemon &" should also work fine. Going back to the original question, it might be easier to just use a theme that looks the same in both KDE and Gnome. -Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject

Re: Problems with RealPlayer10GOLD

2004-11-05 Thread Stephen Le
art realplay. If that doesn't work, consider using strace to see what's up. -Stephen Le

Re: Can't use kb3 to copy cd's.

2004-11-05 Thread Stephen Le
.7. Version 0.11.17 is in unstable. [1] http://www.k3b.org/ -Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Limiting User Commands

2004-11-05 Thread Stephen Le
oot, but that's really impractical... > Use of chroot with bash started as rbash sems to be what you need. > > Or use of rbash with with PATH pointing to custom location where > commands exist. See the example above. Users would still be able to upload their own Perl scripts and

Re: Limiting User Commands

2004-11-05 Thread Stephen Le
ds. Besides, telling users to prefix every command they run with 'sudo' would be awkward and cumbersome. -Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Limiting User Commands

2004-11-05 Thread Stephen Le
ess to if they write a Perl script calling one of the banned commands and getting Apache to execute that script. In other words, would the script execute with the script owner's priviledges or with Apache's priviledges? Thanks, Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED]

Limiting User Commands

2004-11-05 Thread Stephen Le
uldn't be able to execute. In regards to the latter method, would it be possible for me to change the group ownership of the commands I don't want users to have access to and revoke execute permission from that group? Thanks, Stephen Le -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with

Re: backing up to ftp server

2004-07-05 Thread Stephen Le
On Mon, 5 Jul 2004 01:12:06 -0700 (PDT), Alvin Oga <[EMAIL PROTECTED]> wrote: > > Why ftp? Why not use rsync? > > because rsync doesn't keep a copy of the last set of changes > before it overwrite it ?? Actually, rsync can be used to make incremental backups. Please see: http://www.mikerubel.org

Re: Visual C++?????

2004-06-29 Thread Stephen Le
Being educated does not make you a good teacher. On Tue, 29 Jun 2004 19:42:02 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > To be a professor and have tenure in a institution of higher learning > one usually must have a Ph.D. or at least a masters unless the school > in question sucks;