Questions tagged [freebsd]

FreeBSD is an advanced operating system for a variety of architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley; and is developed and maintained by a large team of individuals. It is a complete Operating System, including the kernel, drivers, and userland utilities such as shells.

Filter by
Sorted by
Tagged with
12 votes
2 answers
20k views

Need to replace disk in zpool ... confused

I need to replace a bad disk in a zpool on FreeNAS. zpool status shows pool: raid-5x3 state: ONLINE scrub: scrub completed after 15h52m with 0 errors on Sun Mar 30 13:52:46 2014 config: ...
d0g's user avatar
  • 969
17 votes
5 answers
43k views

Dovecot user lookup fails when using username@domain format

I have Dovecot v2.0.11 installed on a FreeBSD server and the user lookups for incoming email addresses are failing, but lookups for system users is successful. Dovecot is setup to use system users, ...
cigarman's user avatar
  • 273
16 votes
3 answers
4k views

Log every command executed from root

I want to give access to my root server to an external system administrator, but i want to be sure to double check what he is doing to my server, e.g. copying data i don't want them to do and so on. I ...
cedivad's user avatar
  • 690
6 votes
5 answers
5k views

How do I spamtrap with Postfix?

How do I setup spamtraps with Postfix so clients that send to trapped addresses are prevented from sending me more spam?
sh-beta's user avatar
  • 6,858
133 votes
4 answers
184k views

FreeBSD performance tuning: Sysctl parameter, loader.conf, kernel

I wanted to share knowledge of tuning FreeBSD via sysctl.conf / loader.conf / KENCONF / etc. It was initially based on Igor Sysoev's (author of nginx) presentation about FreeBSD tuning up to 100,000-...
29 votes
10 answers
14k views

I just did a chmod -x chmod

So I did a chmod -x chmod. How I can fix this problem? How do I give execute rights back to chmod?
Rook's user avatar
  • 2,695
12 votes
23 answers
27k views

Best practices to block social sites

In our company we have around 100 workstations with Internet access, and the day-to-day situation is getting worse and worse from the perspective of using Internet access for the purpose of doing ...
11 votes
5 answers
18k views

ZFS Sync over unreliable, slow WAN. ZFS replication, or rsync?

I've been tasked with making an off-site backup work over the WAN. Both storage boxes are FreeBSD based NAS boxes running ZFS. Once or twice a week, 15-60 gigs of photography data gets dumped to the ...
Paul McMillan's user avatar
11 votes
4 answers
9k views

Can I trust that ZFS is consistent between Linux and FreeBSD?

I'm planning to build a FreeNAS box sometime soon, but if ZFS on Linux eventually proves to be reliable, I might want to switch, just to have a more familiar OS. So I'm wondering if I can trust that ...
iconoclast's user avatar
  • 1,830
8 votes
3 answers
7k views

PAM: Execute a command before pam_mkhomedir?

When a user logs into a system and there is no home directory, we would like to to create the user's home directory using pam_mkhomedir. This is a common practice. Here's a quick description of ...
Stefan Lasiewski's user avatar
7 votes
2 answers
22k views

How to use nginx PAM module?

I would like to use nginx PAM module to authenticate a site with existing users on a FreeBSD system. I tried to use pam_unix.so, but no luck. It's just not let me in with my usr/psw pair. :( nginx ...
noirello's user avatar
6 votes
3 answers
13k views

ZFS on enterprise RAID pass-through, and ZFS on FreeBSD root

We've been running ZFS on top of a single hardware RAID on dell poweredge for years. I know most people are against this, but the snapshot/clone, compression and flexible partition of ZFS served us ...
John's user avatar
  • 369
6 votes
1 answer
4k views

Does ZFS replace the need for hardware/software RAID?

I want to provide protection against data loss on my servers. Typically, I'd use hardware RAID 1 or 5, but I've been reading up on ZFS. Is it correct that ZFS itself provides RAID 1 or 5 like data ...
user53744's user avatar
  • 163
6 votes
2 answers
4k views

How can I make bash to log shell commands to syslog?

Bash 4.1 is able to log the history to syslog. However I can't seem to make it work under FreeBSD 8. I've tried re-compiling bash from ports with -DWITH_SYSLOG= but to no avail. Has anyone managed to ...
Eugene Yarmash's user avatar
3 votes
2 answers
10k views

What username for Login to Console on a Digital Ocean Droplet running FreeBSD 12

As an alternative to making an ssh connection to your Droplet on DigitalOcean, they offer a "Console" which is a VNC connection, akin to plugging a monitor and keyboard into your virtual server. When ...
Basil Bourque's user avatar
2 votes
1 answer
1k views

Binary won't execute when run with a path. Eg >./program won't work but >program works fine

I'm getting some weird behaviour for a binary file I'm trying to run. I'm using Mac OSX snow leopard, and the binary itself is part of labkey software .. built from source. If I try to run the file ...
Ira Cooke's user avatar
  • 123
0 votes
4 answers
633 views

How to make proxy on nginx?

How would I set my webservers to work in way described below? Http request: mypublic.com ---> handled normally by nginx as it is set up already (listen 80;) Http request: myprivate.com ---> handled ...
Darj's user avatar
  • 55
0 votes
1 answer
185 views

Setup SunFire 440 Raid Configuration

How can I setup Internal Hard disk RAID5 configuration? I have SunFire 440 machine with 4 internal hard disk. I have never worked on Sun systems except for now and I am exploring google for the above ...
Megamind's user avatar
48 votes
6 answers
13k views

ZFS on FreeBSD: recovery from data corruption

I have several TBs of very valuable personal data in a zpool which I can not access due to data corruption. The pool was originally set up back in 2009 or so on a FreeBSD 7.2 system running inside a ...
ssc's user avatar
  • 1,189
28 votes
3 answers
25k views

FreeBSD: How to know real file size on zfs with compression on?

I'm using zfs on my FreeBSD 9.0 x64 and pretty happy with it, but I find it hard to count directory real, not compressed, size. Surely I can walk over the directory and count every file size with ls,...
Alexander's user avatar
  • 824
25 votes
6 answers
53k views

FreeBSD vs Linux performance? [closed]

I know that FreeBSD is famous for being highly stable, secure and of course open source. So I am going to try it on one of my servers. However, I am wondering what are the pros and cons of Using ...
alfish's user avatar
  • 3,147
19 votes
4 answers
7k views

How do you manage and deploy FreeBSD's ports in a large environment?

I'm curious to how people are deploying FreeBSD's ports in their environment. I assume that most people using FreeBSD are indeed using Ports (and often portupgrade for upgrading with binaries). I am ...
vpetersson's user avatar
19 votes
6 answers
8k views

Backing up a MySQL database via ZFS snapshots

I've found a number of sites talking about doing exactly this, but I'm missing a few important details. The general steps are Run FLUSH TABLES WITH READ LOCK Take the ZFS snapshot Run UNLOCK TABLES ...
Andy Shulman's user avatar
19 votes
6 answers
52k views

Need to identify disk in zpool ... how?

I need to replace a bad disk in a zpool on FreeNAS. zpool status shows gptid/5fe33556-3ff2-11e2-9437-f46d049aaeca UNAVAIL 0 0 0 cannot open How do I find the serial # of that disk? ...
d0g's user avatar
  • 969
14 votes
7 answers
62k views

ZFS import unable to find any pools

I had a ZFS pool -- a mirror containing 2 vdevs -- running on a FreeBSD server. I now have only one of the disks from the mirror, and I am trying to recover files from it. The ZFS data sits in a GPT ...
squidpickles's user avatar
12 votes
3 answers
26k views

NOQUEUE: reject: RCPT from on freebsd and postfix

I am building a server using this config -> http://www.purplehat.org/?page_id=4 and when trying to test basic email capabilities I get -> NOQUEUE: reject: RCPT from when try to send a test email. ...
mine's user avatar
  • 197
11 votes
1 answer
4k views

Newsyslog wildcards - rotate all logs in a directory

I am running FreeBSD 8.1. I am trying to make newsyslog rotate logs defined by a dynamic path: # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] /path/logs/*....
Richard Knop's user avatar
  • 1,169
11 votes
1 answer
4k views

FreeBSD: periodic(8) is too noisy. How can I control the noise level?

FreeBSD & MacOSX ship with the the periodic(8) utility, which is a neatly organized set of utilities to periodically run system functions like ZFS filesystem checks, security checks, checking for ...
Stefan Lasiewski's user avatar
11 votes
5 answers
17k views

FreeBSD Ports: How can I see all dependencies for a port, and all subdependencies for those dependencies?

I'm trying to build a port which depends on apache-ant. I thought I could run make build-depends-list to see all dependencies required by this port: # make build-depends-list /usr/ports/devel/apache-...
Stefan Lasiewski's user avatar
10 votes
5 answers
30k views

How to integrate Active Directory with FreeBSD 10.0 using security/sssd?

What are the required steps to authenticate users from an Active Directory running on Windows Server 2012 R2 in FreeBSD 10.0 using sssd with the AD backend with Kerberos TGT working?
Vinícius Ferrão's user avatar
10 votes
1 answer
69k views

How to print list of users and groups on FreeBSD?

How to print list of users and groups on FreeBSD?
Eonil's user avatar
  • 10.6k
9 votes
6 answers
12k views

Recommendations on ZFS on FreeBSD as a NAS box?

Please note that the answers on this page are from 2009, and should not be relied on as gospel. If you have a specific question about zfs then please click the Ask a Question button and ask a specific ...
grieve's user avatar
  • 1,557
9 votes
4 answers
5k views

ZFS on top of Hardware Mirroring, or just mirror in ZFS?

I have an IBM x346 with dual 3.2Ghz Xeons and 2x36GB 15k SCSI disks. I'm running an entirely ZFS-based install of FreeBSD 8.1. I can configure the bios to mirror the two disks, and then put ZFS on ...
Paul McMillan's user avatar
8 votes
6 answers
30k views

Identify Disks on SuperMicro server running FreeBSD

I am running on a SuperMicro 2U server with 6 disks in a ZPool. I want to identify each drive bay using the Drive Carrier LED from running a command from a tool in FreeBSD. Is there a way to do this? ...
Timothy C. Quinn's user avatar
8 votes
1 answer
3k views

ZFS vdevs accumulate checksum errors, but individual disks do not

I'm running a vendor-specific derivative of FreeNAS 9.3. My trouble started when I installed a new JBOD chassis to add two new vdevs into my pool, and the chassis had a bad board. During this time, I ...
user260467's user avatar
8 votes
1 answer
2k views

Why change net.inet.tcp.tcbhashsize in FreeBSD?

In virtually every FreeBSD network tuning document I can find: # /boot/loader.conf net.inet.tcp.tcbhashsize=4096 This is usually paired with some unhelpful statement like "TCP control-block hash ...
sh-beta's user avatar
  • 6,858
7 votes
1 answer
7k views

Install Java 9, 10, 11, or 12 on FreeBSD 11.1

When I look to my up-to-date Ports collection: cd /usr/ports/java && ls -d openjdk* … I see only versions 6, 7, and 8 of Java in the OpenJDK releases: openjdk6 openjdk6-jre openjdk7 ...
Basil Bourque's user avatar
7 votes
4 answers
1k views

ZFS and non Sun OS's

Is there any other Unix like distros that can read and write to ZFS filesystems. I know its currently unstable in FreeBSD :( The reason I am asking is I love ZFS but don't get on so well with Solaris.
bsdjunkie's user avatar
  • 121
7 votes
4 answers
13k views

PXE boot FreeBSD iso from pxelinux server

I'm using FOG as a TFTP / PXE server and would like to be able to boot a FreeBSD LiveCD (specifically pfSense, but it could be any LiveCD, really); I've found HOWTOs for booting a "netboot" BSD but ...
Andrew's user avatar
  • 8,162
7 votes
3 answers
3k views

FreeBSD server - certified compatible hardware? [closed]

I am looking for recommendations for hardware that is "certified" with FreeBSD (8+) I suspect I am looking for a small server manufacturer that will build me a server that "just works". I have read ...
lifeisstillgood's user avatar
7 votes
1 answer
3k views

zfs pool not automatically mounted

I recently installed freebsd 8 on a file server and created a raidz-pool from 4 drives. It works fine, except the filesystems are not mounted automatically on boot. zpool status and zfs list shows ...
Console's user avatar
  • 447
6 votes
13 answers
16k views

Network monitoring tool for FreeBSD [closed]

I am using FreeBSD 6.1 as router. Now I looking for Network Traffic Monitoring software to see what's happening with internet link. I have two installed LAN cards in my system, one for lan and other ...
adopilot's user avatar
  • 1,531
6 votes
3 answers
11k views

Dropping Cached Memory on FreeBSD

i use FreeNAS server which is built on OS version FreeBSD 8.2-RELEASE-p6. I use ZFS file system with 13TB HDD on my 8GB physical ram installed box. It almost uses all of RAM installed while ...
user1066698's user avatar
6 votes
2 answers
3k views

Easy multi-level authentication for sudo

I have a FreeBSD server with password-based SSH enabled. I would like to enable sudo, but I do not want a potential attacker to be one password away from root access. My current solution is logging ...
Michael Ekstrand's user avatar
6 votes
3 answers
4k views

Is there a tool for managing FreeBSD jails that knows about ZFS?

ZFS under FreeBSD lets one assign filesystems to a jail, such that an account in the jail with the appropriate privileges can access the filesystem, create new subordinate filesystems, and so forth. ...
larsks's user avatar
  • 44.6k
6 votes
5 answers
18k views

Free space on ZFS file system unexpectedly missing

Going to completely rephrase this question since it's still an outstanding production issue several months later. I have a FreeNAS 0.7.2 box, based on FreeBSD 7.3-RELEASE-p1, running ZFS with 4x1TB ...
tomfanning's user avatar
  • 3,378
5 votes
1 answer
4k views

"route add default -iface em1" in rc.conf on FreeBSD

I have two NICs on my FreeBSD server, which are set up like this in rc.conf: ifconfig_em0="10.0.0.1 netmask 255.255.255.0" # LAN NIC ifconfig_em1="DHCP" #...
poplitea's user avatar
  • 467
5 votes
2 answers
3k views

ZFS Reporting (on FreeBSD and Linux via ZoL)

As a longtime mdadm user is was just experiencing a disk error and remembered that I configured a Auto Mail reporting for mdadm on disk errors. Therefore i just had to insert my Mail address inside /...
Daywalker's user avatar
  • 495
5 votes
2 answers
7k views

How can I adjust subversion repository file permissions automatically for use w. Apache/DAV?

I've set-up a subversion server accessible with Apache/DAV and after screwing up the repositories file permissions a couple of days ago I started wondering if there's a better way to do this than the ...
agnul's user avatar
  • 536
5 votes
3 answers
3k views

httpready problem on Apache httpd restart on FreeBSD?

I run Apache HTTPD 2.2 on my FreeBSD 7.2 webserver. I have enabled the httpready and dataready in my /boot/loader.conf, like this: accf_http_load="YES" accf_data_load="YES" That works great when the ...
mikl's user avatar
  • 622