installing LTIB problem and cant set the user privilege section
when I was installing Linux Target Image Builder(LTIB) I got the follwing errors
[rohith@sdalinar cwf]$ cd /home/rohith/cwf/ltib-mpc8555cds-20060124/
[rohith@sdalinar ltib-mpc8555cds-20060124]$ ./ltib
I ran the command: sudo -S -l which returned:
Password:
This means you don't have sudo permission to execute rpm commands as root
without a password. This is needed for this build script to operate correctly.
To configure this, as root using the command "/usr/sbin/visudo",
and add the following line in the User privilege section:
rohith ALL = NOPASSWD: /bin/rpm, /opt/freescale/ltib/usr/bin/rpm
Started: Tue Feb 5 10:12:17 2008
Ended: Tue Feb 5 10:12:21 2008
Elapsed: 4 seconds
Build failures :
Abnormal exit : yes
Exiting on error or interrupt
-----------------------------------------------
and when I opened vi /usr/sbin/visudo
it shows like this
^?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@p<94> ^D^H4^@^@^@,£^A^@^@^@^@^@4^@ ^@^H^@(^@^^^@^]^@^F^@^@^@4^@^@^@4p^D^H4p^D^H^@^A^@^@^@^A^@^@^E^@^ @^@^D^@^@^@^C^@^@^@4^A^@^@4q^D^H4q^D^H^S^@^@^@^S^@ ^@^@^D^@^@^@^A^@^@^@^A^@^@^@^@^@^@^@^@p^D^H^@p^D^H ^L<93>^A^@^L<93>^A^@^E^@^@^@^@^P^@^@^A^@^@^@^L<93> ^A^@^L^S^F^H^L^S^F^H¼ ^@^@^P+^@^@^F^@^@^@^@^P^@^@^B^@^@^@ <93>^A^@ ^S^F^H ^S^F^HÈ^@^@^@È^@^@^@^F^@^@^@^D^@^@^@^D^@^@^@H^A^@^ @Hq^D^HHq^D^H ^@^@^@ ^@^@^@^D^@^@^@^D^@^@^@Påtd8<85>^A^@8õ^E^H8õ^E^HÔ^B ^@^@Ô^B^@^@^D^@^@^@^D^@^@^@Qåtd^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^F^@^@^@^D^@^@^@/lib/ld-linux.so.2^@^@^D^@^@^@^P^@^@^@^A^@^@^@GNU^@^@^@^@^ @^B^@^@^@^F^@^@^@ ^@^@^@^@__gmon_start__^@libc.so.6^@_IO_stdin_used^ @lfind^@vasprintf^@__printf_chk^@execv^@_IO_putc^@ fopen^@strncmp^@optind^@strrchr^@__progname^@getpw uid^@fork^@warnx^@sigprocmask^@futimes^@unlink^@re alloc^@stdin^@_exit^@chmod^@rewind^@strtok^@isatty ^@fgetc^@strlen^@lockf^@sigemptyset^@warn^@__errno _location^@fseek^@getopt^@clearerr^@__fprintf_chk^ @sigaddset^@stdout^@fputc^@fputs^@memcpy^@fclose^@ __strtol_internal^@malloc^@strcasecmp^@getenv^@__c type_b_loc^@optarg^@stderr^@__snprintf_chk^@getuid ^@lsearch^@__fxstat^@fileno^@chown^@fwrite^@fread^ @gettimeofday^@sigaction^@rename^@waitpid^@strchr^ @__xstat^@errx^@_IO_getc^@strcmp^@__libc_start_mai n^@ferror^@sysconf^@free^@program_invocation_short _name^@__stack_chk_fail^@match^@used_runas^@sudo_d efs_table^@sudolineno^@yyout^@yyleng^@errorlineno^ @Argv^@yytext^@yychar^@clearaliases^@yyin^@quiet^@ yylval^@yynerrs^@parse_error^@pedantic^@sudo_user^ @Argc^@GLIBC_2.4^@GLIBC_2.1^@GLIBC_2.3^@GLIBC_2.3. 4^@GLIBC_2.0^@/lib/ld-linux.so.2^@^P^@^@^@<9b><98><99>G²'ÑB^@^@^@^@^@^@^ @^@]^C^@^@<9b><98><99>GE^Oa¢^@^@^@^@^@^@^@^@tþ<8d>K^A^ @^@^@Øÿÿÿxþ<8d>K^A^@^@^@^A^@^@^@<80>þ<8d>K^A^@^@^@ üÿÿÿ<84>þ<8d>K^A^@^@^@^A^@^@^@<98>þ<8d>K^A^@^@^@Äÿ ÿÿ þ<8d>
"/usr/sbin/visudo" [noeol][converted] 289L, 140965C
I was unable to add this line
rohith ALL = NOPASSWD: /bin/rpm, /opt/freescale/ltib/usr/bin/rpm
to the user privilege section , so where shall i add the above line
prethanks to helper
|