<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.freebsdwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.freebsdwiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LionKimbro</id>
		<title>FreeBSDwiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.freebsdwiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LionKimbro"/>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php/Special:Contributions/LionKimbro"/>
		<updated>2026-04-29T18:27:15Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://www.freebsdwiki.net/index.php/Users,_modifying</id>
		<title>Users, modifying</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php/Users,_modifying"/>
				<updated>2007-12-08T07:50:44Z</updated>
		
		<summary type="html">&lt;p&gt;LionKimbro: groups&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are many ways to modify existing users on your system, depending on what you want to do; you can even edit the relevant files manually, but beware: the actual files referenced by the system aren't the plaintext editable files, they're compiled database files, so you'll need to use [[pwd_mkdb]] if you try to edit [[ /etc/master.passwd]] directly.&lt;br /&gt;
&lt;br /&gt;
To change a user's shell, use [[chsh]] or [[pw]] '''usermod [username] -s [path to new shell]'''.&lt;br /&gt;
&lt;br /&gt;
To change a user's name, edit [[ /etc/passwd]].&lt;br /&gt;
&lt;br /&gt;
To change a user's login name (account name,) you can edit [[ /etc/passwd]] and [[ /etc/master.passwd]] and recompile them using [[pwd_mkdb]], but another easy (and safe!) way to do it is to add a new user and move the user's files over to the new user and chmod and chown everything to that new user.&lt;br /&gt;
&lt;br /&gt;
To change the user's groups, edit [[/etc/group]]. [http://www.freebsd.org/doc/en/books/handbook/users-groups.html]&lt;br /&gt;
&lt;br /&gt;
[[Category:Common Tasks]]&lt;/div&gt;</summary>
		<author><name>LionKimbro</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php/BIND,_managing</id>
		<title>BIND, managing</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php/BIND,_managing"/>
				<updated>2007-11-13T22:44:54Z</updated>
		
		<summary type="html">&lt;p&gt;LionKimbro: explanation re: increasing SOA serial#&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By far the easiest way to manage BIND is via [[webmin]], which is all GUI click and drop-down menus (see image below). But you should at the very least know how to manage it via command line for systems that you cannot set up [[webmin]] on for whatever reason or for those times when webmin fails.&lt;br /&gt;
&lt;br /&gt;
To add records to a zone, you'll need to find that zone's file, edit it to include the record, '''increase your SOA serial number''' (1st parameter on IN SOA line, commonly with comment &amp;quot;; Serial&amp;quot;) and reload your server with&lt;br /&gt;
 rndc reload&lt;br /&gt;
&lt;br /&gt;
If your server is a slave and you want it to retransfer the records from the master:&lt;br /&gt;
 rndc retransfer&lt;br /&gt;
&lt;br /&gt;
To check the status of your server:&lt;br /&gt;
 rndc status&lt;br /&gt;
&lt;br /&gt;
For example:                        &lt;br /&gt;
 &lt;br /&gt;
    number of zones: 1077&lt;br /&gt;
    debug level: 0&lt;br /&gt;
    xfers running: 0&lt;br /&gt;
    xfers deferred: 0&lt;br /&gt;
    soa queries in progress: 0&lt;br /&gt;
    query logging is OFF&lt;br /&gt;
    recursive clients: 1/0/1000&lt;br /&gt;
    tcp clients: 0/100&lt;br /&gt;
    server is up and running&lt;br /&gt;
&lt;br /&gt;
To stop your server: &lt;br /&gt;
 rndc stop&lt;br /&gt;
&lt;br /&gt;
To flush the DNS cache:&lt;br /&gt;
 rndc flush&lt;br /&gt;
&lt;br /&gt;
BIND can be a pain to manage properly, and not without reason there are thousands of pages on how to do it written. &lt;br /&gt;
&lt;br /&gt;
* [[http://www.bind9.net/manuals BIND9.net Manuals]]&lt;br /&gt;
* bind-users FAQ&lt;br /&gt;
* [[http://www.reedmedia.net/books/bind-dns BIND 9 DNS Administration Reference Book]]&lt;br /&gt;
* [[http://www.netwidget.net/books/apress/dns/ Pro DNS and BIND]]&lt;br /&gt;
&lt;br /&gt;
And here's a screenshot of Webmin's &amp;quot;Bind 9 Dynamic Server&amp;quot; module (which you'll have to install separately from the webmin.com site; the basic webmin BIND module doesn't do views very well and was designed for BIND 8):&lt;br /&gt;
&lt;br /&gt;
[[Image: bind9webmin.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also: ==&lt;br /&gt;
&lt;br /&gt;
[[BIND]]&lt;br /&gt;
&lt;br /&gt;
[[BIND (installing)]]&lt;br /&gt;
&lt;br /&gt;
[[BIND (configuring)]]&lt;br /&gt;
&lt;br /&gt;
[[BIND (securing)]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Configuring FreeBSD]]&lt;br /&gt;
[[Category:Ports and Packages]]&lt;br /&gt;
[[Category:Common Tasks]]&lt;br /&gt;
[[Category:DNS]]&lt;/div&gt;</summary>
		<author><name>LionKimbro</name></author>	</entry>

	<entry>
		<id>http://www.freebsdwiki.net/index.php/Df</id>
		<title>Df</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php/Df"/>
				<updated>2007-06-17T21:22:59Z</updated>
		
		<summary type="html">&lt;p&gt;LionKimbro: Incorrect df due to held files&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[df]] is acronymic for '''disk free'''.&lt;br /&gt;
&lt;br /&gt;
When this command is used with no parameters, it will display the amount of disk space free on each mounted device in a 512-byte per block count, as well as a percentage.&lt;br /&gt;
&lt;br /&gt;
You may specify either a device path or plain directory path to retrieve the associated mount-point information. Also, the parameter '''-h''' may be used to have the output displayed in 'human-readable' format.&lt;br /&gt;
&lt;br /&gt;
 [light@splat ~]$ '''/bin/df'''&lt;br /&gt;
 Filesystem  1K-blocks     Used   Avail Capacity  Mounted on&lt;br /&gt;
 /dev/ad0s1a    128990   104110   14562    88%    /&lt;br /&gt;
 /dev/ad0s1f    257998      146  237214     0%    /tmp&lt;br /&gt;
 /dev/ad0s1g  18809884 15014076 2291018    87%    /usr&lt;br /&gt;
 /dev/ad0s1e    257998   236788     572   100%    /var&lt;br /&gt;
 procfs              4        4       0   100%    /proc&lt;br /&gt;
&lt;br /&gt;
 [light@splat ~]$ '''df /tmp'''&lt;br /&gt;
 Filesystem  1K-blocks     Used   Avail Capacity  Mounted on&lt;br /&gt;
 /dev/ad0s1f    257998      146  237214     0%    /tmp&lt;br /&gt;
&lt;br /&gt;
 [light@splat ~]$ '''df /dev/ad0s1f'''&lt;br /&gt;
 Filesystem  1K-blocks     Used   Avail Capacity  Mounted on&lt;br /&gt;
 /dev/ad0s1f    257998      146  237214     0%    /tmp&lt;br /&gt;
&lt;br /&gt;
 [light@splat ~]$ '''df -h /'''&lt;br /&gt;
 Filesystem    Size   Used  Avail Capacity  Mounted on&lt;br /&gt;
 /dev/ad0s1a   132M   107M    15M    88%    /&lt;br /&gt;
&lt;br /&gt;
== Incorrect df ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, df reports values that are blatantly wrong.&lt;br /&gt;
&lt;br /&gt;
Scenario:  MySQL is giving you error 28's, and you find /var is completely full.  You delete the 200 MB Apache logs, which should put you well within limits... ...for some reason, df still reports that /var appears is completely full?&lt;br /&gt;
&lt;br /&gt;
The problem is that Apache is still holding on to the log file, even though you deleted.&lt;br /&gt;
&lt;br /&gt;
If you restart apache, (perhaps using [[Apachectl]],) Apache releases the log file, and df shows the value right.  MySQL goes back to working.&lt;br /&gt;
&lt;br /&gt;
[[Category:System Commands]]&lt;/div&gt;</summary>
		<author><name>LionKimbro</name></author>	</entry>

	</feed>