Command "ip link set can0 up" required sudo

Hi,

I am using Jetson Xavier AGX with Ubuntu 20.04. I have a USB to CAN connected to it. When I use command “ip link set can0 up” I get below error.
“rtnetlink answers operation not permitted”.
If I use the same command with sudo that works. But I don’t want to use sudo. I checked the groups and they are below:
root
daemon
bin
sys
adm
tty
disk
lp
mail
news
uucp
man
proxy
kmem
dialout
fax
voice
cdrom
floppy
tape
sudo
audio
dip
www-data
backup
operator
list
irc
src
gnats
shadow
utmp
video
sasl
plugdev
staff
games
users
nogroup
input
kvm
render
ssh
dhcpd
netdev
systemd-timesync
systemd-journal
systemd-network
systemd-resolve
messagebus
rdma
i2c
tss
crontab
lpadmin
bluetooth
ssl-cert
whoopsie
geoclue
scanner
pulse
pulse-access
avahi-autoipd
saned
rtkit
colord
avahi
nm-openvpn
gdm
syslog
gpio
trusty
crypto
weston-launch
debug
systemd-coredump
collinsaerospace
sambashare
fwupd-refresh
mosquitto

ip-link belongs to which group so that I can add the user to that group which will not require sudo privilege

Hi ashish.shrikhande,

Are you using the devkit or custom board?
Is that Xavier AGX or Xaver NX?

What’s your Jetpack version in use?

Is there any purpose for you to not use sudo?

Could you help to run the following command on your board?

$which ip

if it showed /usr/sbin/ip, then run the following command and check if it could help for your issue.

$chmod u+x /usr/sbin/ip

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.