Authorizations of /dev/ttyACMx set
Over at all as a user ttyACM the DEVICE to use to be allowed we must change only the authorizations. Owing to UDEV that can be done quite simply. In addition we put on simply a new file 51-my.permissions in /etc/udev/permissions.d/ . (Who has already its own XX-abc.permissions file can this naturally there accommodate). In this file we let UDEV connect with a ACM DEVICE the rights to 0770 to set and change the group affiliation of the group of roots to the group tty. Now your main user must become only member of the group tty and already may on the DEVICE write and read.
touch of /etc/udev/permissions.d/51-my.permissions echo ttyACM*: root: tty: 0770 > /etc/udev/permissions.d/51-my.permissions
Unfortunately p2ktest does not function under a user then yet, but it accesses nevertheless already times the telephone and says P2k Phone found. Afterwards the telephone separates however the connection to the PC and I gets only errors. If someone the problem solve-solves please this error message then raus schmeissen. Thanks
$ p2ktest P2k test DEVICE cunning: 22b8: 4902: [] [] 0000:0000: [] [] 046d: c50e: [] [] 06a3: 052d: [] [] 0000:0000: [] [] Switching ton of P2K P2k Phone found (E_p2k_connect. - 3: Unable ton set configuration) error: [error sending control message: Operation emergency permitted] (E_p2k_getPhoneName. - 14: E001) CAN emergency GET phone model error: [error sending control message: Operation emergency permitted] (E_p2k_getDriveName. - 14: E001) CAN emergency GET drive name error: [error sending control message: Operation emergency permitted] (E_p2k_freeSpace. - 14: E001) CAN emergency GET free space error: [error sending control message: Operation emergency permitted] (E_p2k_fileCount. - 14: E001) CAN emergency GET file COUNT error: [error sending control message: Operation emergency permitted] (E_p2k_fileCount. - 14: E001) (E_p2k_fileList. - 14: E000)
A cheap and careless solution would be:
chmod +s /usr/local/bin/p2ktest
[work on]