Set ip permission denied

Hy!

I'm new with BSD.

I try to change my ipv4 adress like this:
Code:
ifconfig em0 inet 192.168.10.1 netmask 255.255.255.0

But in return I have this:

Code:
ifconfig: ioct1 (SIOCDIFADDR): permission dinied

I tried to change the /etc/rc.conf but it's in reading only and I can't change it.

If someone have an idea!

Thanks
 
You do realize you need to be root to be able to make those changes? Regular users are not allowed to make changes to the system's configuration.
 
Back
Top