Archive for the 'Basic Settings' Category

fails in sysinstall Fdisk Label

Posted by: admin at 1 Monday 30th, 2009

[w] I receive the following message in the press, not updated
 You've already written out your changes - if you wish to overwrite them, you'll have to restart sysinstall first.
 
Changes are already written. If you want to overwrite it, first you need to restart sysinstall.
So that, sysinstall restart.
LiveFS CD from when you use fixit mode, you must restart the system.

Can not unmount
The sysinstall and run the Fdisk Label menu, just create a partition slice DE無KU will automatically mount the mount point.
Fixit may receive an error message like: you try to unmount mode.
 Fixit# umount /mnt
umount: umount of /mnt failed: Device busy
 
Please check the following.
The current directory, the directory is not trying to unmount?
 Fixit# pwd
/mnt
 
In this case, move to another directory.
 Fixit# cd /
 

The directory you are trying to unmount, or do not have another mount?
 Fixit# ls /mnt
.snap/  dev/    home/   usr/    var/
 
In this case, in order to unmount.
 Fixit# umount /mnt/var
Fixit# umount /mnt/usr
Fixit# umount /mnt/home
Fixit# umount /mnt/dev
Fixit# umount /mnt
 

Strange to me
Please try the following steps to be done.
  1. exit sysinstall (LiveFS CD if you boot from a boot fixit mode) and then mount the partition if it is created, and then unmount.
     Fixit# ls /mnt
    .snap/  dev/    home/   usr/    var/
     
     Fixit# cd /
    Fixit# umount /mnt/var
    Fixit# umount /mnt/usr
    Fixit# umount /mnt/home
    Fixit# umount /mnt/dev
    Fixit# umount /mnt
     

  2. Make sure the swap partition.
     Fixit# swapinfo
    Device          1K-blocks      Used     Avail Capacity
     /dev/ad0s1b        1048576         0   1048576     0%
     
    If you see the device name, stop it being used by the swap partition.
     Fixit# swapoff  /dev/ad0s1b 
     
    (Underlined part is the device name that appears in swapinfo)

  3. Start sysinstall (LiveFS CD if you start from a restart).

Filed under Preferences |

1 Comment »

Partition (slice) on the alphabet come to the end of the

Posted by: admin at 1 Monday 25th, 2009

a - the root partition (/). This will create a boot disk only.
b - is the swap partition.
c - the whole disk
d - Generic
e - General Purpose
f - Generic
g - General Purpose
h - Generic

Specifically, if the general繋IDA the IDE primary master hard disk is as follows.
ad0s1a - /
ad0s1b - Swap
ad0s1d - / var
ad0s1e - / usr
ad0s1f - / home

Filed under Preferences |

No Comments »

Enable inetd

Posted by: admin at 11 Monday 8th, 2008

FreeBSD 5.0 and later versions, by default, inetd is disabled.
The following methods will be effective.
/etc/rc.conf
 inetd_enable="YES" 

If necessary /etc/inetd.conf and then restart it or change.
 # shutdown -r now 

Filed under Preferences |

No Comments »

Fold the top in the FTP directory

Posted by: admin at 11 Monday 3rd, 2008

If you have multiple users, but has been watching the user's system directory and not the other.
The most permissions, and unauthorized access is possible, when I saw a list of other users on the server has been previously rented and borrowed a fright.
/etc/ftpchroot
 USERNAME01 
 USERNAME02 
 USERNAME03 
 USERNAME ...
 USERNAME ...
 USERNAME ... 
There is no user name is the group name.

Filed under Preferences |

No Comments »

Network Settings

Posted by: admin at 11 Monday 3rd, 2008

/etc/rc.conf
 # ネットワークアドレスが 192.168.0.0/24 の場合
defaultrouter="192.168.0.1"
hostname="HOSTNAME.DOMAIN.NAME"
ifconfig_em0="inet 192.168.0.2 netmask 255.255.255.0" 
ifconfig_em0 of em0 is configuration NIC by the changes, dmesg dmesg NIC, etc. NIC check.

/etc/resolv.conf
 domain		DOMAIN.NAME
nameserver	xxx.xxx.xxx.xxx
nameserver	yyy.yyy.yyy.yyy 

Filed under Preferences |

No Comments »

Change Password

Posted by: admin at 10 Monday 31st, 2008

Log in to the user to change password
 $ passwd 

Filed under Preferences |

No Comments »

Delete User

Posted by: admin at 10 Monday 31st, 2008

 # userdel -n USERNAME -r 
-r option to delete the home directory.
, Why is the server's home directory public_html may not remove a directory.

Filed under Preferences |

No Comments »

Add User

Posted by: admin at 10 Monday 31st, 2008

 # pw useradd USERNAME -m -h fd 
adduser or pw to add
/usr/share/skel files in the directory, the directory is copied to the user.
Every object is to remove unnecessary to advance the idea to add what you need, it is very easy to add users.

In my vpopmail we are using the Maildir directory are also deleted, because the environment would be quite wrong to delete the directory (even出来NAKU be logged in) need to be careful.

Filed under Preferences |

No Comments »