Tag Info

Hot answers tagged

5

pw is the command you are looking for. To add user klaatu to the group foo, do: pw groupmod foo -m klaatu Here is the FreeBSD handbook page on the subject. It's an easy and informative read: Users and Basic Account Management


5

[[ is a bashism. /bin/sh is not guaranted to be the Bourne Again shell. Even on Linux operating systems, it could be the Debian Almquist shell, or the Policy-Compliant Ordinary shell. On the BSDs, it is not the Bourne Again shell out of the box because on the BSDs the Bourne Again shell is an optional add-on to the operating system proper. It's in the ...


4

You can use the make targets delete-old and delete-old-libs to remove obsolete files. They run interactively, unless you set BATCH_DELETE_OLD_FILES: # pwd /usr/src # make -DBATCH_DELETE_OLD_FILES delete-old Run them after make installworld. Have a look at build(7) for more details. A word of warning - be careful with delete-old-libs - it will delete ...


3

You set options in pfctl.conf with a set limit { ... } statement. You can modify the packet filter state while it is running by passing the `-m' (merge) option to pfctl(8), ie FreeBSD 9.3-RELEASE-p10 (GENERIC) #0: Tue Feb 24 21:28:03 UTC 2015 # pfctl -sm No ALTQ support in kernel ALTQ related functions disabled states hard limit ...


2

The [[ syntax is a ksh and bash thing and is not present in all shells. Your FreeBSD default shell is probably sh (or bash acting like sh), not bash. The equivalent syntax that should work on all shells is: case $1 in *[/\\] ) echo "Yes";; esac


2

The --batch option was added in gpg v2. Prior to that, in v1, there is a --no-use-agent option which you might need if you're doing scripted operations. That said, I don't understand how you're entering the key at time of decryption. ...? You're using --no-tty (which prevents gpg from asking you anything) but at least according to what you shared with us, ...


2

You can see which TCP congestion control algorithms are available by looking at the net.inet.tcp.cc.available sysctl. By default, only newreno is available, so it is the one that is used. There are several different algorithms available, look for modules named cc_something in /boot/kernel. You can load them via kldload, such as kldload cc_vegas. After you ...


2

For compiling kernel module you should create Makefile and to include kernel module makefile /usr/src/share/mk/bsd.kmod.mk for example: # Note: It is important to make sure you include the <bsd.kmod.mk> makefile after declaring the KMOD and SRCS variables. # Declare Name of kernel module KMOD = module # Enumerate Source files for kernel module ...


1

Usually *BSD provides different options for compiling a program, these are usually called flavours, this is also true for most Linux distributions. Read the Makefile in the directory of the port to see what options are available. Vim can be compiled with many features, for example, you may be in an environment where X11 isn't installed, so you have no need ...


1

The other answers are all good. This also works: pw usermod john -G mygroup


1

Wheel is famous for FreeBSD, if you want to need to use su command, you need to be member of wheel group, So pw groupadd get a groupName and -m get members of your group.Old style of the following command you needed to extra command. pw groupadd wheel -m mohsen,ali,john,Hilary,Kate


1

You're not seeing a driver for that modem in dmesg because one isn't loaded, which likely means that FreeBSD doesn't have one for it. This in turn is because that modem uses the CX11252-15 chipset and is not a hardware modem, but a "softmodem" or "winmodem" with closed-source drivers. FreeBSD does not include out of the box support for any winmodems. ...


1

The [[ construct doesn't exist in all sh variants. It's a ksh thing that was adopted by bash and zsh. FreeBSD's sh is an ash derivative and doesn't support [[. If you want to use [[ in a script, use a shebang line that calls a shell that supports [[. You can install bash or ksh93 or mksh as a package on FreeBSD; all of them support [[. Packages are ...


1

I don't have a bsd box to test on, but it appears that you need to use this form: date -f "some format" "$datum" "+%Y-%m-%d" and you have to specify the format of the incoming datum so it can be parsed.


1

Virtualbox allows to configure two types of SCSI controllers, one being LSILOGIC the other Buslogic compatible. Those should be supported by the bt(4) and mpt(4) drivers. You can remove all other SCSI controllers If you use IDE/SATA controllers you can remove all SCSI drivers.



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