05-07-2008
cpio
try
cd orig_dir
find . -print | cpio -pudl /dest_dir
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have used several Linux Flavors and now I need to know something. I have the ROOT user and then I have my personal user. What I need to do is for my normal user to be able to write files to directories where appearntly, only the root user has privileges.
For example, to write files to... (1 Reply)
Discussion started by: gdboling
1 Replies
2. UNIX for Dummies Questions & Answers
I have a website that I am working on and one of the pages allows people to upload pictures to be used on other pages. My question is: is it safe to set the privileges to 777 on the folder that the pictures are saved in? Or would that open up my site to be hacked, bugged, wormed...and everything... (1 Reply)
Discussion started by: paladaxar
1 Replies
3. Programming
Hi
I have make a program that needs root privleges but any user can try to run it, so what I want it is, when any user tries( other than root ) to run the program, an input prompt would open to enter root password ( if user knows ) and program will run ( otherwise exit ), and after completing... (21 Replies)
Discussion started by: sumsin
21 Replies
4. UNIX for Dummies Questions & Answers
I'm trying to give everyone execute privileges on one of my small scripts. BUT, I don't want them to be able to view the file, just execute it.
As USER1, I have:
/usrhome/ncora/script_test CDS> $ls -la
drwxrw-rw- 2 ncora ncd 96 Jan 13 15:58 .
drwxrwxrwx 7 ncora ncd ... (10 Replies)
Discussion started by: FredSmith
10 Replies
5. UNIX for Dummies Questions & Answers
Hello genius..!
what do y'all think of these questions...? help appreciated...!
Access Control Lists and privileges....
# Why both file ACLs and user permissions/privileges (not to be confused with rights in ACLs) are used in Windows access control (why not just use one of these)?
# In... (1 Reply)
Discussion started by: heroine
1 Replies
6. UNIX for Dummies Questions & Answers
Hello,
As admin with root rights, to execute any command from another user without password-ask, I do : su - <user> -c "<cmd>"
But how can I do to give the same rights to another physical user without using root user ? :confused:
I've try to create another user "toor" with the same primary... (4 Replies)
Discussion started by: madmat
4 Replies
7. Shell Programming and Scripting
Hey there
I have a problem and i was hoping that you guys could help me out
I want to copy a user privileges to a group and i need to copy all privileges(Recursively) every directory with all its sub directories and I tried some solution and it did not work. I used the following command:-
... (14 Replies)
Discussion started by: The Dark Knight
14 Replies
8. Web Development
Salamo Alikom
i had install MySQL 5.1.33 binary version for FreeBSD ,when i logging to phpMyAdmin as root i see no privilege
to create database ,how can i solve this problem ? (1 Reply)
Discussion started by: SIFE
1 Replies
9. Shell Programming and Scripting
My English is no very good.
I must make a bash scripting sh create like a backdoor, and when execute the script a user without privileges convert in super user or root, whithout introducing the password.
In Spanish:
Crear un script que sirva como puerta trasera al sistema, de manera que al... (1 Reply)
Discussion started by: kitievbr
1 Replies
10. UNIX for Dummies Questions & Answers
Hi
What privileges I need to install X11?
Or, in other words, can I install X11 without root privileges? The only user that installed X11 will use it.
If it depends on OS version, here is the list of operating systems:
Linux Red Hat Enterprise AS/ES 4.0/4.5/5
... (1 Reply)
Discussion started by: lleontiev
1 Replies
cpio(5) File Formats Manual cpio(5)
Name
cpio - format of cpio archive
Description
The header structure, when the option of is not used, is:
struct {
short h_magic,
h_dev;
ushort h_ino,
h_mode,
h_uid,
h_gid;
short h_nlink,
h_rdev
h_mtime[2],
h_namesize,
h_filesize[2]'
char h_name[h_namesize rounded to word];
} Hdr;
When the option is used, the header information is described by:
sscanf(Chdr,"%6o%6o%6o%6o%6o%6o%6o%6o%11lo%6o%11lo%s",
&Hdr.h_magic, &Hdr.h_dev, &Hdr.h_ino, &Hdr.h_mode,
&Hdr.h_uid, &Hdr.h_gid, &Hdr.h_nlink, &Hdr.h_rdev,
&Longtime, &Hdr.h_namesize,&Longfile,Hdr.h_name);
The Longtime and Longfile are equivalent to Hdr.h_mtime and Hdr.h_filesize, respectively. The contents of each file are recorded in an
element of the array of varying length structures, archive, together with other items describing the file. Every instance of h_magic con-
tains the constant 070707 (octal). The items h_dev through h_mtime have meanings explained in The length of the null-terminated path name
h_name, including the null byte, is given by h_namesize.
The last record of the archive always contains the name Special files, directories, and the trailer are recorded with h_filesize equal to
zero.
See Also
cpio(1), find(1), stat(2)
cpio(5)