Hot answers tagged

6

With Python 3.4 and later, you can use the ensurepip module to install pip on FreeBSD and elsewhere. python3.4 -m ensurepip should install pip as pip3.4.


5

Removing /etc/localtime will default the system to UTC because there's no "local" time zone (this is what happens when you run tzsetup, as you surmised). For an automated install you simply remove the tzsetup bit from the bsdinstall time script - that script then does nothing and leaves you with an installation that expects a UTC system clock and operates in ...


5

As Kassandry said, you can't do this with a command within the jail itself. What you could do, however, would be to create a separate user (who I will henceforth call closer on the host system. This user should be blocked so that it can only log in with an SSH key. Your jailed user should have the private key and the password for the key. On the host ...


5

Does it mean that someone is using my username (MYEMAIL@example.com) to send spam? YES This log line was the proof of it. Aug 4 11:09:17 mail postfix/smtpd[71597]: 1AE3B7EC3D: client=unknown[59.88.35.206], sasl_method=PLAIN, sasl_username=MYEMAIL@example.com As you have permit_sasl_authenticated in main.cf, then you authorize anyone who knows your ...


5

the chroot=... does not work. No, there is nothing like that in the manual page for sshd, describing the format of authorized_keys file. If you would put chroot into command=, you would not be able to use internal-sftp, because it is substitution of internal function call inside sshd. Recommended way is set up more users, if you need separation. You ...


5

Alternatively, are there other SFTP servers that can do what I want? yes, you can use proftpd Prepare user environment. With ProFTPD there is no need to give to user a valid shell. # useradd -m -d /vhosts/backup/user1/ -s /sbin/nologin user1 # passwd --lock user1 Locking password for user user1. passwd: Success # mkdir /vhosts/backup/user1/.sftp/ # ...


4

The log shows that someone has obtained the password for the mail account MYEMAIL@MYDOMAIN.COM and is using it to send SPAM through the server. The entry at time 11:09:17 shows a successful SASL authentication from IP address 59.88.35.206 with username MYEMAIL@MYDOMAIN.COM. The entry at 11:09:30 shows reception and queuing of a message with sender address ...


4

Jail is already a chrooted environment so you can't gain more benefits chrooting jailed software.


3

Jails specifically forbid the shutdown commands, per the manual page here. Normal machine shutdown commands, such as halt(8), reboot(8), and shutdown(8), cannot be used successfully within the jail. Additionally quoting from The Design and Implementation of the FreeBSD Operating System, Processes running within a jail are not permitted to perform ...


3

Check out the whole FreeBSD src tree, not just one subdirectory. The FreeBSD builsystem uses a lot of Makefiles which are including each other. Your build fails because one of the required Makefiles doesn't exist on your filesystem.


3

The message is normal because ALTQ is not compiled into the stock FreeBSD kernel. Unless you need to use ALTQ it doesn't matter. The start up of the firewall interrupts all current connections, including your ssh session, which stops responding. Just open another terminal and log in again. The original session will eventually time out. It's a good idea to ...


3

That's how stable distribution releases work. They "lock" the version of the software in place, so that bugs aren't inadvertently introduced when you do a mass-upgrade to fix security vulnerabilities. If you want to track "the latest and greatest" of everything, you'll need to modify your list of package sources to include those package repositories where ...


3

I have a similar configuration with an AD joined server sharing from zfs, and have experienced the 'sleep' issue in FreeBSD 10.1 and 11.0, and several versions of Samba 3 and 4. I began to notice the lockup would occur mainly on changes to existing files, and not creation or deletion. After running very high samba debug levels, and catching a couple of ...


3

Yes. It is possible to change the host field in logstash output with ruby filter without much hassle. ruby { code => " event['host'] = event['message'].split(' ')[3] " } Here I assumed in the syslog server logs, the host field is the fourth field where white space is the separator.


3

First of all, installing FreeBSD on a Sun hardware is a serious crime, you could be decapitated in some countries (however, I think that several years in prison camp on Chukotka will be enough) ! Second, 10.x version family includes a bsdinstall pretty capable of installing FreeBSD on ZFS root without the need of emulating sunrise by hand. Third, there's ...


3

The standard unix-style file permissions used by sftp does not support the thing you are looking for.


3

There are a few things going on here. Let's break it down. Unless you've configured a reverse zone for 10.168.192.in-addr.arpa, your recursive server has to get this information from somewhere else. You have not mentioned setting up such a zone, so I will assume that it does not exist. RFC 1918 private networks are not routed on the internet. If a DNS ...


2

Check the permissions of the winbind privileged pipe - the user that FreeRADIUS runs as needs to be able to access it. You probably need to add your FreeRADIUS user into the winbindd_priv group, and then make sure that the privileged pipe is owned by root:winbindd_priv. The winbind privileged pipe is usually in /var/lib/samba/winbindd_privileged/, or a ...


2

From commentary (from the opening poster): I edited the ZFS sources on my FreeBSD installation, and made them bypass all sanity checks. After disabling enough of those, I managed to get the pool imported.


2

On FreeBSD-10.2 there's a new option to allow this: freebsd-update install --not-running-from-cron From the manpage: --not-running-from-cron Force freebsd-update fetch to proceed when there is no controlling tty. This is for use by automated scripts and orchestration tools. Please do not run freebsd-update fetch from ...


2

I know this is an old question, but it gave me a few of the pieces I put together, and i thought i'd shoot back the script i came up with, since this is an almost exact match to my situation: it requires sas2ircu: http://www.avagotech.com/docs-and-downloads/host-bus-adapters/host-bus-adapters-common-files/sas_sata_6g_p20/SAS2IRCU_P20.zip and from the ports, ...


2

If zpool clear doesn't fix it, you can make zfs forget the disk using zpool labelclear <partition> (available in http://zfsonlinux.org since zfs-v0.6.2). Be aware that even if you created the zpool using a whole device e.g. /dev/sda you have to specify the partition which zfs has created, e.g. /dev/sda1. (Credits go to DeHackEd, https://github.com/...


2

Your problem is most likely related to MySQL. Less so HeidiSQL and least FreeBSD. You give precious little details but we can say the following: Misconceptions: The FreeBSD system "root" and the MySQL "root" users are not related! You do not need to log into the FreeBSD system as "root" to work within the MySQL database as MySQL "root" You do not need to ...


2

Ok, so I needed to route my LUN through the special device /dev/zvol. So instead path /tank/volumes/images I needed path /dev/zvol/tank/volumes/images. And that was it.


2

You can control the PERC H730 and H330 using the LSI MegaCLI utility as both of these cards are Dell PERC badged LSI cards. There is an excellent article and tutorial on how to do this at https://calomel.org/megacli_lsi_commands.html I know that zfsonlinux has a ZFS Event Daemon (ZED) which you can use to cause particular things to happen on certain events ...


2

Try this (or similar): cp /usr/share/zoneinfo/UTC /etc/localtime (found) You may be able to do it as a symlink, too: ln -s /usr/share/zoneinfo/UTC /etc/localtime


2

You can use the mount command The system maintains a list of currently mounted file systems. If no arguments are given to mount, this list is printed. Then parse the output looking for the disks you are interested in.


2

I'm reluctant to make this an answer since it turned out to be a silly error. Moreover, the original question of the difference of behavior between the two distributions could still up in the air to some extent. In any case, I had forgotten about the ZFS property I had set on the parent dataset: router:/root# zfs get sharenfs parent NAME PROPERTY VALUE ...


2

When inspecting version 9.x of the if.hfile in different versions of the FreeBSD kernel, "IFCAP_HWSTATS" was missing. In Version 10 it was present again, maybe FreeBSD developers have changed or broken this in version 9.x? As the latest driver by Intel in version 2.8.2 requires this declaration the compilation breaks - sadly. For this reason, you should ...


2

As it turns out, the problem has nothing to do with spamassassin itself, it is the way it is used by exim. In my exims configuration I had this line in its ACL section: warn spam = nobody when I replaced that with warn spam = spamd everything worked as intended



Only top voted, non community-wiki answers of a minimum length are eligible