Showing posts with label freebsd. Show all posts
Showing posts with label freebsd. Show all posts

2007-06-10

Why I can't su on FreeBSD 6.2

by Forrest Sheng Bao http://fsbao.net

The purpose of this article is to provide a short how-to to those who do not want to read the long FreeBSD handbook.

The reason is because only users in wheel group can su to superuser.

So you have to add your user into the wheel group. A possible way is to add it into wheel group when creating the user via adduser.
Please see Example 13.1 in FreeBSD handbook
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/users-modifying.html
When prompted to invite the user you are creating into other groupts, type wheel after the prompt.

Reference:
Section 13.6 Modifying accounts, FreeBSD handbook, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/users-modifying.html

How to mount USB stick on FreeBSD 6.2

Forrest Sheng Bao http://forrest.bao.googlepages.com
The purpose of this article is to provide a short how-to to those who do not want to read the long FreeBSD handbook.

The device name of USB stick is da. For example, the first USB stick is da0 and the second USB stick is da1.
To mount a USB stick in FAT32 file system, run
mount_msdosfs -m 644 -M 755 /dev/da0 /your/mount/point

If you can't, try to add a slice number, for example da0s1. To know this, please do an "ls" in the /dev directory. Sometimes I found the da0s1 becomes da0S1-the s is capitalized.


Reference:
Section 18.5 USB Storage Devices, FreeBSD Handbook
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.html