Quantcast
Browsing all 40 articles
Browse latest View live

Answer by Matthew Flaschen for How to grant a user to run "sudo sh" without...

Put:A ALL=NOPASSWD: ALLin /etc/sudoers. If you only want to allow sh, change the second ALL to /bin/sh.

View Article


Answer by Matthew Flaschen for i want my Android mobile to become my server

There is a project for this called i-jetty. It's a port of the Jetty web server.

View Article


Answer by Matthew Flaschen for mysql config, mysql5, macports, python, django

The username should be the MySQL user with rights to the database. When you're logged on as that user, and enter:SHOW GRANTS;into the console, you should see a reference to the database name jenniwren....

View Article

Answer by Matthew Flaschen for Unable to Install Samba after uninstalling?

You have a incompatible shared library in /usr/local. That was installed separately, not as part of a Debian package (Debian packages are not allowed to install to /usr/local). You should remove it,...

View Article

Answer by Matthew Flaschen for does a 302 redirect force another DNS lookup?

No, there's nothing special about a 302 response that should force a DNS lookup. However, depending on how the local DNS settings are configured, a DNS result could expire at any time. So you have to...

View Article


Answer by Matthew Flaschen for Detect CPU during boot

Try the cpuid command. There is a manual section listing all commands.

View Article

Answer by Matthew Flaschen for Problem with postfix packages

As suggested in the message, this error is often caused by failing to run apt-get update.As root, run:apt-get update && apt-get install postfix

View Article

Answer by Matthew Flaschen for Subversion on RHEL/CentOS 4

CollabNet offers the latest version with RHEL 4 support. They don't charge, but registration is required.

View Article


Answer by Matthew Flaschen for How to create a user in ubuntu for ftp, and...

This tutorial explains how you can lock a user in a chroot jail with vsftpd. The key option is:chroot_local_user=YESThis means the user can not leave their home directory. There are multiple ways to...

View Article


Answer by Matthew Flaschen for Problems with sudo in path

Your test is misleading, because PATH is expanded before calling sudo. Instead, do:sudo sh -c 'echo $PATH'and you will see that there is a different path.To include /home/nomemory/.scriptfarm/scripts...

View Article

Answer by Matthew Flaschen for How to find out the exact location of the...

Assuming you mean geographic location, you can use IP geolocation. There are many different solutions for this. This search for prior Server Fault questions is a good start.Okay, it looks like you want...

View Article

Answer by Matthew Flaschen for Is it possible to use a top level domain for a...

Yes. The computers have no way of telling the difference. There are many different available DNS servers. One relatively simple one is dnsmasq. It even lets you load the DNS mappings from your...

View Article

Answer by Matthew Flaschen for Is it safe to allot an IP address to a...

Sure. TCP/IP can be used for anything, including connecting to databases. For instance, you might be interested in the MySQL wire protocol.Of course, your database server must be properly secured. You...

View Article


Answer by Matthew Flaschen for How to fix broken MySQL server?

Try running the command prompt as administrator. You should be able to right-click the command prompt shortcut and click "Run as administrator."Then, do the commands you tried earlier.

View Article

Answer by Matthew Flaschen for How can I pass in a FTP username and password...

Use /parameter and %1% and %2% in the script:WinSCP.com /console /parameter username password /script=some.scriptIn some.script:open ftp://%1%:%2%@servername

View Article


Answer by Matthew Flaschen for Is it possible to keep the .hg directory in...

There's no way to do exactly what you want. The closest would be to have a symlink .hg pointing to the real one. Please see this thread.

View Article

How do I run a Debian init.d script manually, not at boot?

How do I stop an init.d server from running on boot, but still allow running it manually?

View Article


Forward single SSH key to given host

How do I forward a single arbitrary SSH key to a given host?Forwarding keys is a security tradeoff, so when you do it, it's ideal to send only what you need.

View Article

Answer by Matthew Flaschen for Forward single SSH key to given host

Start up a ssh-agent just for this connection, add the desired key, then SSH in the subshell.ssh-agent bash -c 'ssh-add /home/username/.ssh/some_key_id_rsa; ssh -A some_host'

View Article

Answer by Matthew Flaschen for What does MediaWiki's $wgMaxShellMemory...

First, the memory limit only applies to GNU/Linux, not e.g. Windows.Short answer: It's a per-process limit for the bash script, which will probably (this is true on the "its children" systems, and the...

View Article
Browsing all 40 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>