Se connecter / S'enregistrer
Votre question

Modifications des droits root

Tags :
  • Root
  • Système d'exploitation
Dernière réponse : dans Systèmes d'exploitation
19 Décembre 2005 14:52:34

Bonjour à tous, j'ai entrepris la recompliation du noyau de mon mandrake afin d'installer ma carte audio CMedia. j'ai suivi toutes les étapes d'un tuto, et j'arive a l'avant dernière étape où il faut que je modifie le fichier "modules.conf" et que je rajoute
  1. # ALSA native device support
  2. alias char-major-116 snd
  3. options snd snd_major=116 snd_cards_limit=1
  4. alias snd-card-0 snd-card-cmipci
  5.  
  6. # OSS/Free setup
  7. alias char-major-14 soundcore
  8. alias sound-slot-0 snd-card-0
  9. alias sound-service-0-0 snd-mixer-oss
  10. alias sound-service-0-1 snd-seq-oss
  11. alias sound-service-0-3 snd-pcm-oss
  12. alias sound-service-0-8 snd-seq-oss
  13. alias sound-service-0-12 snd-pcm-oss

Ce qui activera ma carte son. le seul problème, c'est qu'il me dit que je n'ai pas les droits pour modifier ce fichier dans le dossier /etc.
Je demande a tous ceux qui s'y conaissent des informations sur la manière dont je dois procéder.

Autres pages sur : modifications droits root

19 Décembre 2005 16:42:09

il faut que tu utilise la commande chmod sur le fichier( et qur leq dossiers parents si necessaire)
19 Décembre 2005 23:00:00

J'ai trouvé une solution assez simple mais dangereuse. Se connecter en tant qu'utilisateur root. Enfin je n'arivais pas à me conecter en tant que root avant, pour ce faire j'ai du enlever l'interface graphique lors du démarage. Merci pour quand même pour ta réponse.
Contenus similaires
20 Décembre 2005 10:33:24

Je profite de ce post pour vous dire le reste des problèmes que j'encours lors de la compilation de mon noyau. Je suis en train donc d'installer les modules alsa. J'ai réspéctivement 3 fichiers :
alsa-driver-0.5.10.tar
alsa-lib-0.5.3.tar
alsa-utils-0.5.3.tar

Ensuite j'utilise la comande "tar xvf alsa-driver-0.5.10.tar". Mon dossier est ainsi crée. Je me place dedans et je comence à configurer "./configure". Pour le moment aucune erreur.

Alors j'entame la compilation "make" et là j'ai une grande liste d'erreurs.
  1. [root@localhost alsa-driver-0.5.10]# make
  2. make[1]: Entering directory `/home/justin/Desktop/alsa drivers/alsa-driver-0.5.10/support'
  3. gcc -DALSA_BUILD -D__KERNEL__ -O2 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I/usr/src/linux/include -I.. -DEXPORT_SYMTAB -c isapnp.c
  4. In file included from isapnp.c:28:
  5. /usr/include/linux/version.h:2:2: #error "======================================================="
  6. /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
  7. /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
  8. /usr/include/linux/version.h:5:2: #error ""
  9. /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
  10. /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
  11. /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
  12. /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
  13. /usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
  14. /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
  15. /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
  16. /usr/include/linux/version.h:13:2: #error ""
  17. /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
  18. /usr/include/linux/version.h:15:2: #error ""
  19. /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
  20. /usr/include/linux/version.h:17:2: #error ""
  21. /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
  22. /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
  23. /usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
  24. /usr/include/linux/version.h:21:2: #error ""
  25. /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
  26. /usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
  27. /usr/include/linux/version.h:24:2: #error ""
  28. /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
  29. /usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
  30. /usr/include/linux/version.h:27:2: #error ""
  31. /usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
  32. /usr/include/linux/version.h:29:2: #error ""
  33. /usr/include/linux/version.h:30:2: #error " instead of"
  34. /usr/include/linux/version.h:31:2: #error ""
  35. /usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
  36. /usr/include/linux/version.h:33:2: #error ""
  37. /usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
  38. /usr/include/linux/version.h:35:2: #error "======================================================="
  39. isapnp.c:30:40: missing binary operator before token "("
  40. isapnp.c:33:41: missing binary operator before token "("
  41. In file included from /usr/include/linux/cpumask.h:8,
  42. from /usr/include/linux/sched.h:14,
  43. from /usr/include/linux/module.h:9,
  44. from isapnp.c:45:
  45. /usr/include/linux/bitmap.h: In function `bitmap_shift_right':
  46. /usr/include/linux/bitmap.h:85: error: `__shr_tmp' undeclared (first use in this function)
  47. /usr/include/linux/bitmap.h:85: error: (Each undeclared identifier is reported only once
  48. /usr/include/linux/bitmap.h:85: error: for each function it appears in.)
  49. /usr/include/linux/bitmap.h: In function `bitmap_shift_left':
  50. /usr/include/linux/bitmap.h:98: error: `__shl_tmp' undeclared (first use in this function)
  51. In file included from /usr/include/linux/sched.h:14,
  52. from /usr/include/linux/module.h:9,
  53. from isapnp.c:45:
  54. /usr/include/linux/cpumask.h:10:5: missing binary operator before token "("
  55. /usr/include/linux/cpumask.h:34:5: missing binary operator before token "("
  56. In file included from /usr/include/asm/siginfo.h:4,
  57. from /usr/include/linux/signal.h:7,
  58. from /usr/include/linux/sched.h:24,
  59. from /usr/include/linux/module.h:9,
  60. from isapnp.c:45:
  61. /usr/include/asm-generic/siginfo.h: At top level:
  62. /usr/include/asm-generic/siginfo.h:53: error: size of array `_pad' is too large
  63. In file included from /usr/include/linux/gfp.h:4,
  64. from /usr/include/linux/slab.h:15,
  65. from /usr/include/linux/percpu.h:4,
  66. from /usr/include/linux/sched.h:30,
  67. from /usr/include/linux/module.h:9,
  68. from isapnp.c:45:
  69. /usr/include/linux/mmzone.h:333: error: parse error before '(' token
  70. /usr/include/linux/mmzone.h:334: error: parse error before numeric constant
  71. In file included from /usr/include/linux/module.h:20,
  72. from isapnp.c:45:
  73. /usr/include/asm/module.h:54:2: #error unknown processor family
  74. isapnp.c:50:26: linux/malloc.h: No such file or directory
  75. In file included from isapnp.c:55:
  76. /usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
  77. In file included from /usr/include/linux/mm.h:206,
  78. from /usr/include/asm/pci.h:7,
  79. from /usr/include/linux/pci.h:721,
  80. from isapnp.c:56:
  81. /usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
  82. /usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
  83. In file included from isapnp.h:127,
  84. from isapnp.c:64:
  85. /usr/include/linux/version.h:2:2: #error "======================================================="
  86. /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
  87. /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
  88. /usr/include/linux/version.h:5:2: #error ""
  89. /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
  90. /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
  91. /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
  92. /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
  93. /usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
  94. /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
  95. /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
  96. /usr/include/linux/version.h:13:2: #error ""
  97. /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
  98. /usr/include/linux/version.h:15:2: #error ""
  99. /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
  100. /usr/include/linux/version.h:17:2: #error ""
  101. /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
  102. /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
  103. /usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
  104. /usr/include/linux/version.h:21:2: #error ""
  105. /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
  106. /usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
  107. /usr/include/linux/version.h:24:2: #error ""
  108. /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
  109. /usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
  110. /usr/include/linux/version.h:27:2: #error ""
  111. /usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
  112. /usr/include/linux/version.h:29:2: #error ""
  113. /usr/include/linux/version.h:30:2: #error " instead of"
  114. /usr/include/linux/version.h:31:2: #error ""
  115. /usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
  116. /usr/include/linux/version.h:33:2: #error ""
  117. /usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
  118. /usr/include/linux/version.h:35:2: #error "======================================================="
  119. In file included from isapnp.c:64:
  120. isapnp.h:132:41: missing binary operator before token "("
  121. isapnp.h:136:40: missing binary operator before token "("
  122. In file included from isapnp.c:64:
  123. isapnp.h:329: warning: `struct isapnp_card_id' declared inside parameter list
  124. isapnp.h:329: warning: its scope is only this definition or declaration, which is probably not what you want
  125. isapnp.c:142:41: missing binary operator before token "("
  126. isapnp.c:145: error: `MUTEX' undeclared here (not in a function)
  127. isapnp.c: In function `isapnp_next_rdp':
  128. isapnp.c:305: warning: `check_region' is deprecated (declared at /usr/include/linux/ioport.h:119)
  129. isapnp.c: At top level:
  130. isapnp.c:423: error: storage class specified for parameter `isapnp_read_tag'
  131. isapnp.c:424: warning: return type defaults to `int'
  132. isapnp.c: In function `__initfunc':
  133. isapnp.c:431: error: `type' undeclared (first use in this function)
  134. isapnp.c:433: error: `size' undeclared (first use in this function)
  135. isapnp.c: At top level:
  136. isapnp.c:452: error: storage class specified for parameter `isapnp_skip_bytes'
  137. isapnp.c:453: warning: return type defaults to `int'
  138. isapnp.c:453: error: conflicting types for `__initfunc'
  139. isapnp.c:424: error: previous declaration of `__initfunc'
  140. isapnp.c: In function `__initfunc':
  141. isapnp.c:454: error: `count' undeclared (first use in this function)
  142. isapnp.c: In function `isapnp_parse_device':
  143. isapnp.c:473: error: structure has no member named `regs'
  144. isapnp.c:476: error: structure has no member named `regs'
  145. isapnp.c:477: error: structure has no member named `prepare'
  146. isapnp.c:478: error: structure has no member named `activate'
  147. isapnp.c:479: error: structure has no member named `deactivate'
  148. isapnp.c: In function `isapnp_build_resources':
  149. isapnp.c:494: warning: assignment from incompatible pointer type
  150. isapnp.c: In function `isapnp_create_device':
  151. isapnp.c:785: error: incompatible types in assignment
  152. isapnp.c:787: error: structure has no member named `next'
  153. isapnp.c:793: warning: implicit declaration of function `isapnp_read_tag'
  154. isapnp.c:804: error: structure has no member named `sibling'
  155. isapnp.c:805: error: structure has no member named `next'
  156. isapnp.c:875: error: structure has no member named `name'
  157. isapnp.c:877: error: structure has no member named `name'
  158. isapnp.c:878: error: structure has no member named `name'
  159. isapnp.c:902: warning: implicit declaration of function `isapnp_skip_bytes'
  160. isapnp.c: In function `isapnp_parse_resource_map':
  161. isapnp.c:932: error: structure has no member named `pnpver'
  162. isapnp.c:933: error: structure has no member named `productver'
  163. isapnp.c: In function `isapnp_build_device_list':
  164. isapnp.c:1021: error: structure has no member named `vendor'
  165. isapnp.c:1022: error: structure has no member named `device'
  166. isapnp.c:1023: error: structure has no member named `serial'
  167. isapnp.c:1028: error: structure has no member named `checksum'
  168. isapnp.c:1032: error: structure has no member named `next'
  169. isapnp.c:1035: error: structure has no member named `next'
  170. isapnp.c: In function `isapnp_cfg_begin':
  171. isapnp.c:1055: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:495)
  172. isapnp.c: In function `isapnp_cfg_end':
  173. isapnp.c:1075: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:507)
  174. isapnp.c: In function `isapnp_find_card':
  175. isapnp.c:1191: error: structure has no member named `next'
  176. isapnp.c:1193: error: structure has no member named `next'
  177. isapnp.c:1194: error: structure has no member named `vendor'
  178. isapnp.c:1194: error: structure has no member named `device'
  179. isapnp.c: In function `isapnp_find_dev':
  180. isapnp.c:1212: error: structure has no member named `next'
  181. isapnp.c:1214: error: structure has no member named `next'
  182. isapnp.c:1224: error: incompatible types in assignment
  183. isapnp.c:1226: error: structure has no member named `next'
  184. isapnp.c:1230: error: structure has no member named `sibling'
  185. isapnp.c: In function `isapnp_match_card':
  186. isapnp.c:1247: error: dereferencing pointer to incomplete type
  187. isapnp.c:1247: error: dereferencing pointer to incomplete type
  188. isapnp.c:1248: error: dereferencing pointer to incomplete type
  189. isapnp.c:1248: error: `ISAPNP_ANY_ID' undeclared (first use in this function)
  190. isapnp.c:1248: error: dereferencing pointer to incomplete type
  191. isapnp.c:1248: error: structure has no member named `vendor'
  192. isapnp.c:1249: error: dereferencing pointer to incomplete type
  193. isapnp.c:1249: error: dereferencing pointer to incomplete type
  194. isapnp.c:1249: error: structure has no member named `device'
  195. isapnp.c:1250: error: `ISAPNP_CARD_DEVS' undeclared (first use in this function)
  196. isapnp.c:1251: error: dereferencing pointer to incomplete type
  197. isapnp.c:1252: error: dereferencing pointer to incomplete type
  198. isapnp.c:1255: error: dereferencing pointer to incomplete type
  199. isapnp.c:1256: error: dereferencing pointer to incomplete type
  200. isapnp.c:1263: error: increment of pointer to unknown structure
  201. isapnp.c:1263: error: arithmetic on pointer to an incomplete type
  202. isapnp.c: At top level:
  203. isapnp.c:1271: error: conflicting types for `isapnp_probe_cards'
  204. isapnp.h:329: error: previous declaration of `isapnp_probe_cards'
  205. isapnp.c: In function `isapnp_probe_cards':
  206. isapnp.c:1278: error: structure has no member named `next'
  207. isapnp.c: In function `isapnp_config_prepare':
  208. isapnp.c:1332: error: structure has no member named `active'
  209. isapnp.c:1332: error: structure has no member named `ro'
  210. isapnp.c: In function `isapnp_check_port':
  211. isapnp.c:1522: warning: `check_region' is deprecated (declared at /usr/include/linux/ioport.h:119)
  212. isapnp.c:1532: error: structure has no member named `next'
  213. isapnp.c:1533: error: structure has no member named `active'
  214. isapnp.c: In function `isapnp_check_interrupt':
  215. isapnp.c:1629: error: structure has no member named `next'
  216. isapnp.c:1630: error: structure has no member named `active'
  217. isapnp.c:1636: warning: implicit declaration of function `request_irq'
  218. isapnp.c:1638: warning: implicit declaration of function `free_irq'
  219. isapnp.c: In function `isapnp_check_dma':
  220. isapnp.c:1708: error: structure has no member named `next'
  221. isapnp.c:1709: error: structure has no member named `active'
  222. isapnp.c: In function `isapnp_check_mem':
  223. isapnp.c:1788: error: structure has no member named `next'
  224. isapnp.c:1789: error: structure has no member named `active'
  225. isapnp.c: In function `isapnp_config_activate':
  226. isapnp.c:1894: error: structure has no member named `active'
  227. isapnp.c:1942: error: structure has no member named `active'
  228. isapnp.c: In function `isapnp_config_deactivate':
  229. isapnp.c:1969: error: structure has no member named `active'
  230. isapnp.c:1973: error: structure has no member named `active'
  231. isapnp.c: In function `isapnp_free_device':
  232. isapnp.c:2073: error: structure has no member named `sibling'
  233. isapnp.c: In function `isapnp_free_all_resources':
  234. isapnp.c:2111: error: structure has no member named `next'
  235. isapnp.c:2112: error: incompatible type for argument 1 of `isapnp_free_device'
  236. isapnp.c: At top level:
  237. isapnp.c:2118: error: storage class specified for parameter `isapnp_do_reserve_irq'
  238. isapnp.c:2119: warning: return type defaults to `int'
  239. isapnp.c:2119: error: conflicting types for `__initfunc'
  240. isapnp.c:453: error: previous declaration of `__initfunc'
  241. isapnp.c: In function `__initfunc':
  242. isapnp.c:2122: error: `irq' undeclared (first use in this function)
  243. isapnp.c: At top level:
  244. isapnp.c:2187: warning: return type defaults to `int'
  245. isapnp.c:2187: error: conflicting types for `__initfunc'
  246. isapnp.c:2119: error: previous declaration of `__initfunc'
  247. isapnp.c: In function `__initfunc':
  248. isapnp.c:2212: warning: `check_region' is deprecated (declared at /usr/include/linux/ioport.h:119)
  249. isapnp.c:2222: warning: `check_region' is deprecated (declared at /usr/include/linux/ioport.h:119)
  250. isapnp.c:2255: error: structure has no member named `next'
  251. isapnp.c:2258: error: structure has no member named `next'
  252. isapnp.c:2262: error: incompatible types in assignment
  253. isapnp.c:2262: error: structure has no member named `next'
  254. isapnp.c:2263: error: structure has no member named `name'
  255. make[1]: *** [isapnp.o] Erreur 1
  256. make[1]: Leaving directory `/home/justin/Desktop/alsa drivers/alsa-driver-0.5.10/support'
  257. make: *** [compile] Erreur 1


Je décide de renoncer à cette étape la recompilation de mon noyau car je ne sais pas résoudre ces erreurs. Je demande donc à quelqu'un qui veut bien m'aider.
20 Décembre 2005 22:24:35

J'aimerai quand même avoir une réponse, je viens de recompilé mon noyau avec un kernel linux-2.4.32.
22 Décembre 2005 00:27:52

J'ai installé la dernière version de linux, la mandriva 2006 et le son marche impéc. Il s'agit bien de ALSA qui apparament est mieu configuré que sous mandrake 10. Merci quand même à ceux qui ont essayé de m'aider.
Tom's guide dans le monde
  • Allemagne
  • Italie
  • Irlande
  • Royaume Uni
  • Etats Unis
Suivre Tom's Guide
Inscrivez-vous à la Newsletter
  • ajouter à twitter
  • ajouter à facebook
  • ajouter un flux RSS