someuser at somesystem# modprobe

Stelios Bounanos sb at dial.pipex.com
Wed Sep 11 04:02:01 EEST 2002


 >>>>> On Tue, 10 Sep 2002 21:39:41 +0000, ch40t1c 1
 >>>>> <ch40t1c_1 at freemail.gr> was rumoured to have said:

 > Geia sas
 > Exo 1 aporia...

 > 1. pos mporo na kano tin /sbin/modprobe na doulepsei me opoiodipote 
 > xristi, me tin ennoia oxi na ektelesthei kai na bgalei lathos alla na 
 > fortosi to module epitixos... Exontas dikaiomata stin modprobe  kai 
 > exontas allaksei ta licenses sto /lib/modules/x.x.x./kernel/drivers/usb 
 > kai ......../usb/* kai sto group kai sto all users kathe arxeiou se oti 
 > itan tou root pairno pali permission create_module: permission denied 
 > lathi apo tin modprobe...

Den einai 8ema permissions twn modules, apla to modprobe prepei na
trexei san root gia na ta fortwsei.

Na merikes pi8anothtes:

a. H profanhs lysh einai na kaneis suid root to modprobe.
Ayto einai Kakh Idea <koynaei apeilhtika to Cluestick +4>

b. Kaneis kati paromoio me to sudo, afhnontas toys xrhstes na kanoyn load
o,ti 8eloyn alla anagkazontas toys na dwsoyn to password toys prwta:

ALL	ALL = PASSWD: /sbin/modprobe

(sto /etc/sudoers)
opote to "sudo modprobe any_module" zhtaei password kai doyleyei.

c. Yparxoyn sygkekrimena modules poy 8eleis na mporoyn na fortwnoyn oi
xrhstes kai den apaiteis password, px:

ALL	ALL = NOPASSWD: /sbin/modprobe *usb*

Perissotera sto sudo(8).

d. Ftiaxneis ena diko soy script (px. se suidperl) poy kanei oloys
toys elegxoys. Ayto mporei na einai boliko, px se syndyasmo me ena module
alias kai merika post-install gia to alias, poy 8a trabhksoyn ola ta
ypoloipa modules.


Rgds,
/-sb.



More information about the Linux-greek-users mailing list