get php uptime function out of apache chroot jail?
hello, I want to put a php script in a site on an openbsd 4.2 webserver. >From what I understand because apache is chrooted, a function that uses an exec to a system call cannot work. ie. only echoes epoch time, "This server is up 14300 days, 5 hours, 49 minutes and 24seconds" any ideas how to fix this?
sshd.config and AllowUsers
I have a few seperate users on my server, one user for which I want to dissallow ssh login. Now I've read the man page for sshd and I've read a lot of the documentation on this, but I'm still not clear one one point. By default, /etc/ssh/sshd.config shows all entries are commented out. I want to add something like this: AllowUsers user1, user2, user3 I added that in but also with an # in front like all the other entries. Now I find that I can still ssh to the box with a user acct that I didn't include in the entry. Should it be in there without the #? And if so, do I also then have to uncomment all the other entries?? Thanks
Re: sshd.config and AllowUsers
Thanks for pointing me in the right direction, got it working properly now; found out the hard way to separate users by whitespace only, NOT commas. thanks On 3/26/07, Serge Basterot <[EMAIL PROTECTED]> wrote: > > Hello, > > On Mon, Mar 26, 2007 at 01:33:17PM -0400, Jerome Santos wrote: > > [...] > > > I want to add something like this: > > > > AllowUsers user1, user2, user3 > > AllowUsers is a list of "user name patterns, separated by _spaces_". > Also take a look at the AllowGroups parameter. > > -- > Serge
time is always 10 minutes fast!
Hi there I've been trying to sync my system time using ntpd. I followed the FAQ on how to do this but it always seems that my time is 10 minutes fast. my /etc/ntpd.conf: # $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) listen on * #sync to a single server server 0.north-america.pool.ntp.prg server 1.north-america.pool.ntp.org server 2.north-america.pool.ntp.org # use a random selection of 8 public stratum 2 servers # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers servers pool.ntp.org ~ Any hints or pointers much appreciated!! Thanks, Jerome
Re: time is always 10 minutes fast!
**SOLVED** ( I think) First I killed ntpd, then did ntpd -s north-america.pool.ntp.org and got: set local clock to Tue Apr 18 13:28:59 EST 2006 (offset -3558.915779s) Except I want DST, so that it should show 2 PM. I can't figure out how to set this. On 4/18/06, Jerome Santos <[EMAIL PROTECTED]> wrote: > > Hi there I've been trying to sync my system time using ntpd. I followed > the FAQ on how to do this but it always seems that my time is 10 minutes > fast. > > my /etc/ntpd.conf: > > > # $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $ > # sample ntpd configuration file, see ntpd.conf(5) > > # Addresses to listen on (ntpd does not listen by default) > listen on * > > #sync to a single server > server 0.north-america.pool.ntp.prg > server 1.north-america.pool.ntp.org > server 2.north-america.pool.ntp.org > > > # use a random selection of 8 public stratum 2 servers > # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers > servers pool.ntp.org > ~ > > > Any hints or pointers much appreciated!! > > Thanks, Jerome
Re: time is always 10 minutes fast!
That did it! Thanks a lot!!! Jerome On 4/18/06, Stuart Henderson <[EMAIL PROTECTED]> wrote: > > On 2006/04/18 14:34, Jerome Santos wrote: > > Except I want DST, so that it should show 2 PM. I can't figure out how > to > > set this. > > symlink /etc/localtime to /usr/share/zoneinfo/foo.
Can't install vim from ports
Hello I have tried to install vim from /usr/ports/editors/vim by doing: sudo make install and it ends up saying something like >> 6.3.069 doesn't seem to exist on this system. >> Attempting to fetch /usr/ports/distfiles/vim6/6.3.069 from ftp://ftp.vim.org/pub/vim/patches/6.3/. Trying 2001:610:1:80aa:192:87:102:36... ftp: connect to address 2001:610:1:80aa:192:87:102:36: No route to host Trying 192.87.102.36... 100% || 1710 00:00 >> Size matches for /usr/ports/distfiles/vim6/6.3.069 >> 6.3.070 doesn't seem to exist on this system. >> Attempting to fetch /usr/ports/distfiles/vim6/6.3.070 from ftp://ftp.vim.org/pub/vim/patches/6.3/. Trying 2001:610:1:80aa:192:87:102:36... ftp: connect to address 2001:610:1:80aa:192:87:102:36: No route to host Any help is much appreciated!!! Thanks, Jerome