Just to make sure that this question wasn't answer before on the forum I did a search with google with this statement:
use of "cp -p"
The second search result is a post on linuxquestions.org
Anyway, the problem has been described by Don Cragun, I'll add that root is the only one that could preserve the GID and UID with cp -p command (I guess).
Hi everyone,
Need help with an issue. The group ownership of files on my Solaris system is getting changed automatically. Could someone tell me the reason why? And how could I correct it? One more info- everytime the ownership changes, it changes to "x".
Thanks :confused: (1 Reply)
does a command exist to add users to more than one group?
i think the usermod command can do this but i'm not really sure. past ways of me doing this has always been to just hack the /etc/group file and put the user in whatever group i need him to be in. however, vi..ing files like /etc/groups... (2 Replies)
Dear Folks :-)
I want to rsync some files between some servers and preserve files owner and group (not UID or GID), in some machines UID and GID are differents, for example:
a) In the rsync server:
# stat vbseo.php
File: `vbseo.php'
Size: 26758 Blocks: 56 IO... (1 Reply)
Hi,
I need a command that to copy files from others and to keep files' ownership.
Example: I copy file.txt from users "abc" to my local, and file.txt is own by user "abc" in local.
Thanks in advance! (3 Replies)
Hi i have written one backup script in linux workstation.The backup script will do zipping files and moved to the backup directory(i,e /net/ts-bcn/sb_backup/sand).
#So while moving zipped files to the backup directory i am getting some error like this
error:mv:failed to preserve ownership... (2 Replies)
hi,
i have records like this
supplier,product, persons involved
10,150,ravi@yahoo.com
30,200,ravi@yahoo.com
20,111,payal@gmail.com
40,211,ravi@yahoo.com
i want to write a command which displays values like this
10,30,40,ravi@yahoo.com
for ravi@yahoo.com if there are n number of... (7 Replies)
Folks,
I have a problem with a particular file, that seems to have some kind of lock on it, that takes around 1 hour approx to timeout. I have used lsof and nothing has an open file handle on it, yet I cannot open it. My user/group owns the file and I can create edit/delete files in... (6 Replies)
i am able to change the mode using chmod and able to change permission.
but i am not able to change group and ownership. getting as invalid
can any one help me regarding this . (4 Replies)
Hi,
I do have question for un tar a file. I have several 'tar'ed files. For example: SRS.tar.bz2. I was trying to untar them in a linux server using the command:
tar xvjf SRS.tar.bz2
It worked perfectly. but when I open this file in my mac computer all the files are extracted into a... (7 Replies)
hi all
below is the input file contains a code followed by amount
input file
345,5.86
346,20.58
399,10.00
400,12.00
i need the output in the following way outputfile
totalsumof345and346,26.44
totalsumof399and400,22.00 (10 Replies)