sudoers: how to disable requiretty per user

You said that you want one particular user to not require a tty. That’s the default behavior. Nevertheless, you can explicitly set that like this: Defaults:username !requiretty If you want everyone else to require a tty, then you’ll have to uncommment the line.

Using variables in Apache config files to reduce duplication?

You could use mod_macro, which has been included in Apache httpd since version 2.4 Before that it had to be installed separately, see mod_macro. For example on Debian: apt-get install libapache2-mod-macro; a2enmod macro. Example configuration /etc/apache2/conf.d/vhost.macro <Macro VHost $host $port> <VirtualHost $host:$port> ServerName $host DocumentRoot /var/vhosts/$host <Directory /var/vhosts/$host> # do something here… </Directory> </VirtualHost> </Macro> … Read more

Apache2 config variable is not defined

[Fri Nov 29 17:35:43.942472 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined This message is displayed because you directly executed the apache2 binary. In Ubuntu/Debian the apache config relies on the envvar file which is only activated. If you start apache with the init script or apachectl. Your original problem is that … Read more

How to view connected users to open vpn server?

There should be a status log you can look at to show you, mine is, for examle: cat /etc/openvpn/openvpn-status.log EDIT: As an alternative, adding the flag –management IP port [pw-file] or adding that same directive to your server.conf, for example: management localhost 7505 This would allow you to telnet to that port and offer you … Read more

Multiple data centers and HTTP traffic: DNS Round Robin is the ONLY way to assure instant fail-over?

When I use the term “DNS Round Robin” I generally mean in in the sense of the “cheap load balancing technique” as OP describes it. But that’s not the only way DNS can be used for global high availability. Most of the time, it’s just hard for people with different (technology) backgrounds to communicate well. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)