Passing network to wheel user

I have added anonymous as a wheel group user and I've used internet till date by using "dhclient ue1"

For it, I use "su" command and become root. But only with su can I access internet. I want to pass the network to the user anonymous.
I cannot use dhclient ue1 as anonymous

I want to prevent using internet as root and use internet in firefox. Please help
 
You don't "pass the network" to a user. If the machine has network access, any user can use that network.

Just add this to /etc/rc.conf:
Code:
ifconfig_ue1="DHCP"
Then it will be automatically started when the machine boots.
 
Sir dice, thank you. It did work. Firefox doesn't have internet but pkg search works, so there is network.
I use mobile tethering so at bootup ue1 doesn't exist. I did my usual routine with su and dhclient ue1 and then when I came back to anonymous, net is available.

What did we do here exactly? It seems network was earlier just upto su anonymous and now it is available for all! Did we configure DHCP for all users?
 
Did we configure DHCP for all users?
No, as I said, you don't configure the network for users, you configure the network on the OS. The user is irrelevant. Only root is able to configure the network, that's why you have to run dhclient(8) as root. Once the OS has a working network all users and process can use it.
 
Back
Top