LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo to solve this error "tar: Error exit delayed from previous errors" ? (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-to-solve-this-error-tar-error-exit-delayed-from-previous-errors-892274/)

xombboxer 07-18-2011 04:50 AM

sudo to solve this error "tar: Error exit delayed from previous errors" ?
 
Hi,

I have been running tar command to extract file using root user, but now i have to do this from non root user.
i just came to know about sudo, but i dont know how to use that.
i read this post about sudo and tar error.

what i know about sudo:

to run sudo command i have to make non root user sudo compatible.

use sudo prefix before the commnad like
Code:

sudo <commnad>
now i am a sud'ed user i am running the command with sudo prefix. but still i am getting this error

tar: Error exit delayed from previous errors

can anybody tell where am i going wrong?

AlucardZero 07-18-2011 08:33 AM

What are the previous errors?

xombboxer 07-19-2011 05:19 AM

this is the actula error:

Code:

tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hda3: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtd5: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hda: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtd9: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/loop15: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sdb: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sr1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hdc4: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtdr6: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtd1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hda5: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/ram1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/loop8: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sda2: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/loop9: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/console: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sdb1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtdblock10: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hdc1: Cannot mknod: Operation not permitted

i am trying to use tar with sudo command.

devUnix 07-19-2011 07:19 AM

Any system admin related command will require super user's (su) or in other words root's permissions.

For example:

sudo /sbin/ifup eth0


would bring up the network interface.


But you will be prompted for a valid password. Prefixing "sudo " will not work unless you add an entry to visudoers file by issuing the command:

Code:

visudo

Example:
Code:

[test@server ~]$ sudo /sbin/ifconfig

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

        #1) Respect the privacy of others.
        #2) Think before you type.

Password:
test is not in the sudoers file.  This incident will be reported.
[test@server ~]$


Learn about sudoers file and visudo command. How to use "sudo" is already explained.

xombboxer 07-19-2011 07:39 AM

what is the meaning of colorsi n ls -l command
 
if you do ls -l u will find files with different color. what each color denotes, for example symlink shows in some color

xombboxer 07-19-2011 07:46 AM

Hi devUnix You are right,

every thing is fine..

i am in visudoers list and i am using sudo prefix before the command but still im not able to extract all the files
this is what i am doing
Code:

sudo tar -xzvf rootfs_m*.tgz
i have problem extracting to ../..?/?/dev/ folder

(? is folder name)

xombboxer 07-21-2011 04:51 AM

More information:

I am doing this from view context. Inside the vob..

in my lunux home directory i can un tar with sudo, but inside view i cannot untar

if i do it from inside clearcase view this is what i am getting

Code:

tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hdc1: Cannot mknod: No such device or address
and slso

problematic file name starts with c and b what is this c and b BTW?

alexdw1 03-13-2012 02:26 AM

Clearcase and mknod
 
Hi,

Did you ever solve untar a device node in a clearcase view? If so, please tell..
please email alexdw1 gmail.com

Thanks
Alex


All times are GMT -5. The time now is 04:34 PM.