View previous topic :: View next topic |
Author |
Message |
swit Tux's lil' helper
Joined: 22 Nov 2004 Posts: 87 Location: /Europe/Italy/Toscany/Lucca
|
Posted: Sun May 15, 2005 10:58 am Post subject: come impostare permessi +rw su ttyS0? |
|
|
salve,
ho appena emerso "digitemp" un applicativo usatop per comandare dei componenti elettronici della Dallas.
Per funzionare correttamente ha bisogno dei permessi +rw sulla seriale (dove è attacato il circuito).
Ho fatto una ricerca nel forum e anche altre persone hanno avuto lo stesso problema, ma non lo hanno risolto, qualcuno potrebbe darmi una mano?
questi sono i thread che ho trovato in merito:
https://forums.gentoo.org/viewtopic-t-291280-highlight-digitemp.html
https://forums.gentoo.org/viewtopic-t-210130-highlight-digitemp.html
https://forums.gentoo.org/viewtopic-t-123268-highlight-digitemp.html
questi i permessi sui device seriali.
Code: | server dev # ls -l | grep ttyS0
lr-xr-xr-x 1 root root 5 May 15 14:14 ttyS0 -> tts/0
server dev # cd tts
server tts # ls -l
total 0
crw------- 1 root root 4, 64 May 15 14:31 0
crw------- 1 root root 4, 65 May 15 14:21 1
crw------- 1 root root 4, 66 Jan 1 1970 2
crw------- 1 root root 4, 67 Jan 1 1970 3
crw------- 1 root root 4, 68 Jan 1 1970 4
crw------- 1 root root 4, 69 Jan 1 1970 5
crw------- 1 root root 4, 70 Jan 1 1970 6
crw------- 1 root root 4, 71 Jan 1 1970 7 |
ps: uso devfs come gestore delle periferiche
vi ringrazio anticipatamente |
|
Back to top |
|
|
X-Drum Advocate
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Sun May 15, 2005 11:57 am Post subject: |
|
|
beh intanto puoi usare chmod,
ad esempio:
Code: | chmod 766 /dev/ttyS0 |
oppure con il tuo utente associato ad uno specifico gruppo:
Code: | chown root:gruppo_specifico /dev/ttyS0
chmod 765 /dev/ttyS0 |
una volta stabilita la mask che piu' ti soddisfa
per rendere permanenti le modifiche ai permessi
edita il file /etc/devfsd.conf
comunque qui trovi una guida su devfsd _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|