Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[devfsd] Permessi in /dev [Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Legolas80
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 128

PostPosted: Sat Sep 13, 2003 7:28 am    Post subject: [devfsd] Permessi in /dev [Risolto] Reply with quote

Ho combinato un pò di casini :oops: cambiando manualmente i permessi di alcuni device in /dev. Ora vorrei tornare alle impostazioni di default. Documentandomi ho letto che devfsd registra i cambiamenti fatti ai device in /lib/dev-state, e li ripristina ad ogni boot. Io credo che cancellando tutto il contenuto di /lib/dev-state dovrei ottenere il risultato sperato, ma non vorrei sbagliare... perciò chiedo consiglio a voi :wink:

Grazie...


Last edited by Legolas80 on Sat Sep 13, 2003 12:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 13, 2003 9:49 am    Post subject: Reply with quote

I permessi vengono cambiati tramite devfsd.conf: se non hai modificato quel file ti basta fare un reboot.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Legolas80
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 128

PostPosted: Sat Sep 13, 2003 10:20 am    Post subject: Reply with quote

Dai un'occhiata a http://www.gentoo.org/doc/en/devfs-guide.xml#doc_chap4 nella sezione Manually set permissions and have devfsd save it e dimmi cosa ne pensi.

Grazie.
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 13, 2003 10:27 am    Post subject: Reply with quote

Mmmmhhhh.... non lo sapevo. Grazie per il trick.
A questo punto: cosa dice il file /lib/dev-state?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Legolas80
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 128

PostPosted: Sat Sep 13, 2003 10:36 am    Post subject: Reply with quote

Non è un file, è una directory che contiene un link al file /sbin/MAKEDEV e poi l'albero dei device che (imho) sono stati modificati con chown e chmod

Code:
# ls -l /lib/dev/state
totale 6
crw-------    1 root     root       5,   1 2003-09-11 16:55 console
drwxr-xr-t    2 root     root           72 2003-09-13 12:05 dri
drwxr-xr-x    2 root     root           96 2003-09-10 17:25 fb
drwxr-xr-x    2 root     root          432 2003-09-10 17:25 floppy
drwxr-xr-x    3 root     root           72 2003-09-10 17:25 ide
lrwxrwxrwx    1 root     root           18 2003-09-12 17:02 MAKEDEV -> ../../sbin/MAKEDEV
drwxr-xr-x    4 root     root           96 2003-09-13 12:03 scsi
drwxr-xr-x    2 root     root          272 2003-09-11 16:07 snd
drwxr-xr-x    2 root     root          216 2003-09-11 16:07 sound
drwxr-xr-x    2 root     root           96 2003-09-10 17:25 tts
drwxr-xr-x    2 root     root           72 2003-09-11 14:19 usb
drwxr-xr-x    2 root     root          240 2003-09-10 14:44 vc


Io credo che cancellando tutto (tranne il link a MAKEDEV) si riporti la situazione alla normalità, in quanto i device creati dal kernel non vengono sovrascritti da quelli presenti in questa directory... Ma non vorrei fare ca..ate :roll:

P.S. - Insegnarti qualcosa è sempre un motivo di vanto 8)
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Sat Sep 13, 2003 10:58 am    Post subject: Reply with quote

Legolas80 wrote:

Io credo che cancellando tutto (tranne il link a MAKEDEV) si riporti la situazione alla normalità, in quanto i device creati dal kernel non vengono sovrascritti da quelli presenti in questa directory... Ma non vorrei fare ca..ate :roll:


Perchè non fai il backup dei file/cartelle in questione, elimini gli originali e provi se la tua intuizione è valida? Male che vada live-cd/chroot e sistemi tutto ;)

/me declina ogni responsabilità :lol:
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sat Sep 13, 2003 11:20 am    Post subject: Reply with quote

Una domanda: ma perche' hai modificato i permessi?
CMQ e' ovvio che cancellandoli tutti si torna alle impostazioni originale che devono funzionare per forza :)
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Legolas80
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2003
Posts: 128

PostPosted: Sat Sep 13, 2003 12:23 pm    Post subject: Reply with quote

Stavo giocando un pò con i gruppi per fare delle restrizioni per gli utenti, tipo connettersi a internet, utilizzare i dischi rimovibili, ecc. :roll: senza sapere che ciò può essere fatto con devfsd e pam.

Cmq, ora è tornato tutto ok.

Grazie.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
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