You are not logged in.

#1 2008-08-15 07:42:27

nahoj
Member
Registered: 2004-11-05
Posts: 30

Changing permissions to ppp0 using udev

Hi

I have installed mobile broadband through Huawei e220 all right.

But I would prefer to be able to reach the device as user not only as root.

I understand the arch-way of doing this is to change permissions in udev rules. The question is:

How should I do that???

There is a udev rule for huawei which states how modules are loaded but nothing on permissions. It looks like this:
 
  SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/opt/he220/bin/huaweiAktBbo"
  SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/bin/sleep 5"
  SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1003"


Computers never saves time - but they help you produce more in the same timespan...

Offline

#2 2008-08-16 11:38:11

Top_se
Member
From: Germany
Registered: 2008-08-03
Posts: 31

Re: Changing permissions to ppp0 using udev

Hello, you could try to define a group that owns the device with the GROUP assignment, see:
http://reactivated.net/writing_udev_rul … #ownership

to add users to a special group, use gpasswd, see:
http://linux.about.com/library/cmd/blcmdl1_gpasswd.htm

good luck!

Offline

#3 2008-08-17 19:43:47

nahoj
Member
Registered: 2004-11-05
Posts: 30

Re: Changing permissions to ppp0 using udev

Thank you. That is part of the answer. Because this is exactly what I wants to do. The plan is to create a group 'mobilenet' or something like it and give the permissions to that group.

But...

What is the syntax? What is the kernel name and how can I find that out? I don't want to go trial-and-error since its a mess when udev doesn't work...

regards.


Computers never saves time - but they help you produce more in the same timespan...

Offline

Board footer

Powered by FluxBB