cannot execute nmcli under normal user



Sorry for my poor English!

I have  installed network-manager-0.9.8.0 !

I want to  execute nmcli command under a normal user  on my board just like follow:

root emnas:~# sudo -u emnas nmcli dev status       // under a normal user of emnas, show warning

** (process:3666): WARNING **: Could not create object for /org/freedesktop/NetworkManager/Settings/1: No session found for uid 999 (No session found for uid 999)

** (process:3666): WARNING **: handle_property_changed: failed to update property 'available-connections' of object type NMDeviceWifi.

** (process:3666): WARNING **: Could not create object for /org/freedesktop/NetworkManager/Settings/0: No session found for uid 999 (No session found for uid 999)

** (process:3666): WARNING **: handle_property_changed: failed to update property 'available-connections' of object type NMDeviceEthernet.
DEVICE     TYPE              STATE       
eth0       802-3-ethernet    connected   
wlan0      802-11-wireless   connected   
p2p0       802-11-wireless   disconnected
root emnas:~#

root emnas:~#  nmcli dev status       // under root user, ok
DEVICE     TYPE              STATE       
eth0       802-3-ethernet    connected   
wlan0      802-11-wireless   connected   
p2p0       802-11-wireless   disconnected
root emnas:~#

As you can see, I had a warning under a normal user and I want to know how to solve this.


Thanks.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]