Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 10356  / 2 Years ago, thu, december 9, 2021, 12:54:10

I have Ubuntu Server 12.04 LTS and on it I have installed gammu. I use it to control my "Nokia 5310 Xpress music" cell phone.



Now when I run "gammu --identify" it does not work, says I dont have the right device permissions, but it works with sudo gammu --identify



Now my Nokia device is listed as ttyACM0 in my /dev/ directory... its permissions are rw for root and dialout... I tried to change these permissions so that I can use this device with gammu without sudo ... I did sudo chmod 777 /dev/ttyACM0 and it changed the permissions, but still it did not work...



I even went and added a file in /etc/udev/rules.d/ by the name of 40-41-descriptive-name.rules which contained the following line:



SUBSYSTEM=="usb", ATTR{idVendor}=="0421", ATTR{idProduct}=="006b", MODE="0600", OWNER="MyUserName"


and then restarted udev but still no luck...



I even did sudo chown myusername /dev/ttyACM0 and gave myself the ownership of the device but still I needed to use sudo to get things done...



btw if I do lsusb I get the following info:



BUS 002 Device 003: ID 0421:006b Nokia Mobile Phones


I tried all these ways to change the device permissions so that i could use "gammu --identify" instead of sudo gammu --identify but no luck.



How can i fix this dilemma?


More From » server

 Answers
2

Taking help from fellow answers I found the solution to my problem...



In my gammu configuration file I changed the port to /dev/phone



Then I went to /etc/udev/rules/ directory and in it I created a file name 99-phone.rules, then in that file I wrote the following line:



SUBSYSTEM=="usb", ATTRS{idVendor}=="0421", ATTRS{idProduct}=="006b", MODE="0666" , SYMLINK+="phone"



Then I rebooted my system and then when I connected my Nokia phone, I was able to run commands on it without using sudo!



Thanks Everyone especially @firusvg !!


[#34484] Friday, December 10, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hirtieve

Total Points: 207
Total Questions: 104
Total Answers: 114

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
;