O que isso significa “Você não tem permissões para o dispositivo / dev / ttyACM1!”?

5

Eu tenho tentado conectar meu celular Nokia E65 ao meu Ubuntu 12.04 via wammu. Eu tentei a opção de "Pesquisar automaticamente o telefone". Mas eu recebo as mensagens de erro como esta na tela:

Wammu is now searching for phone:
You don't have permissions for /dev/ttyS0 device!
You don't have permissions for /dev/ttyS1 device!
You don't have permissions for /dev/ttyS2 device!
You don't have permissions for /dev/ttyS3 device!
You don't have permissions for /dev/ttyS4 device!
You don't have permissions for /dev/ttyS5 device!
You don't have permissions for /dev/ttyS6 device!
You don't have permissions for /dev/ttyS7 device!
You don't have permissions for /dev/ttyS8 device!
You don't have permissions for /dev/ttyS9 device!
You don't have permissions for /dev/ttyS10 device!
You don't have permissions for /dev/ttyS11 device!
You don't have permissions for /dev/ttyS12 device!
You don't have permissions for /dev/ttyS13 device!
You don't have permissions for /dev/ttyS14 device!
You don't have permissions for /dev/ttyS15 device!
You don't have permissions for /dev/ttyS16 device!
You don't have permissions for /dev/ttyS17 device!
You don't have permissions for /dev/ttyS18 device!
You don't have permissions for /dev/ttyS19 device!
You don't have permissions for /dev/ttyACM0 device!
You don't have permissions for /dev/ttyACM1 device!
Discovering Bluetooth devices using PyBluez
Could not access Bluetooth subsystem (error accessing bluetooth device)
All finished, found 0 phones
No phone has been found!

O que isso significa? Como superar esse erro?

Obrigado antecipadamente.

    
por Ant's 16.05.2012 / 05:14

3 respostas

5

Isso significa que seu usuário não tem permissão para acessar / dev (devices).

Tente: sudo wammu

para obter permissões de acesso aos dispositivos

Outra coisa que você pode fazer é colocar seu usuário no sistema de grupo bluetooth

    
por Octávio Filipe Gonçalves 16.05.2012 / 05:21
2

No Ubuntu 12.04 todos os dispositivos seriais pertencem ao grupo de discagem. Você pode verificar rapidamente isso por

ls -a /dev/ttyS*

você deve ver algo como

crw-rw---- 1 root dialout 4, 64 May 30 18:22 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 May 30 18:22 /dev/ttyS1
crw-rw---- 1 root dialout 4, 74 May 30 18:22 /dev/ttyS10
crw-rw---- 1 root dialout 4, 75 May 30 18:22 /dev/ttyS11
crw-rw---- 1 root dialout 4, 76 May 30 18:22 /dev/ttyS12
crw-rw---- 1 root dialout 4, 77 May 30 18:22 /dev/ttyS13
crw-rw---- 1 root dialout 4, 78 May 30 18:22 /dev/ttyS14
crw-rw---- 1 root dialout 4, 79 May 30 18:22 /dev/ttyS15
crw-rw---- 1 root dialout 4, 80 May 30 18:22 /dev/ttyS16
crw-rw---- 1 root dialout 4, 81 May 30 18:22 /dev/ttyS17

assumindo que seu nome de usuário é keith , você pode se adicionar a esse grupo executando

sudo adduser keith dialout

reinicie e tente novamente. tudo deveria estar funcionando bem.

    
por ekowabaka 30.05.2012 / 20:32
-1

Altere a permissão da porta do dispositivo para:

chmod a+rw /dev/ttyXXX
    
por Rafique 04.01.2014 / 22:26