By default, the file will be created with the Primary Group of the user creating the file, so field 4 in /etc/passwd although this can be changed with the newgrp but there are things to consider in the manual page for that too.
You can try to set a file to be a certain grep with the chgrp command.
I would also point out that it would be sensible to ensure that the ID number of the groups should match between the servers. The files are marked as owned by a user number and group number. These number are translated for humans when you use ls -l and similar commands.
If you copy files from one server to another keeping the permissions then the displayed names may change if the user account numbers and group numbers are not consistent.
The file will be created by mfpts user and will be accessed and modified by another program. Since the other program which modify the file is not having access to this file because it is not created with the csp group. The program is not getting executed and no error in log file it is a zero byte file
Since the other program which modify the file is not having access to this file because it is not created with the csp group. The program is not getting executed and no error in log file it is a zero byte file
This is exactly what i suspected in my post #5 above. You need to make sure that the file is created with the correct group membership. There are several ways to achieve this, but the perhaps most safe one is to set the sticky bit for the group membership of the directory in which the file is going to land. You have shown us a direcctory listing of the file but not one for the directory in which it resides. If the files full path name is /path/to/file issue:
to find out about that. This directory should have a group membership of "csp" AND it should have a file mode of "2775" (or rwxrws-r-- in the ls-output, what counts is the "s" in the middle). This will make all created files in this directory to be owned by the same group as the directory owners group, hence, "csp".
On each server, could you show us the output from:-
This may help us understand. Please wrap each block of output in CODE tags for clarity so it's easy to see which is a working server and which is a failing server.
Thanks, in advance,
Robin
Last edited by rbatte1; 01-17-2017 at 09:23 AM..
Reason: Moved comment futher right
May be below should shed some lights
Can you please let me know why this is happening . If you see below the file I created with one login is having the user as the same id I logged. The other one it getting different user id than I logged in
I'm trying to return only one row with the highest value for PCT_MAX_USED. Any suggestions?
When I add this code, I get the ORA-00937 error.
trunc(max(decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100))) pct_max_used
This is the original and returns all rows.
select (select... (3 Replies)
Hi,
I have 9 files which are generated dynamically & if there is a some condition which doesn't meet the criteria then file is not created or is of zero size.
so further i am unable to consolidate the files based on following code 1
awk -F, -v ptime="201407" 'FNR==1... (3 Replies)
hi,
I am trying to get the FileType using the File command. I have one file, which holds Group separator along with ASCII character.
It's a Text file.
But when I ran the File command the FileType is coming as "data".
It should be "ASCII, Text file".
Is the latest version of File... (6 Replies)
hi,
I want to create a volume group of 200 GB and then create different file systems on that.
please help me out. Its becomes confusing when the PP calculating PP.
I don't understand this concept. (2 Replies)
I've this file and need to sort the data in each group
File would look like this ...
cat file1.txt
Reason : ABC
12345-0023
32123-5400
32442-5333
Reason : DEF
42523-3453
23345-3311
Reason : HIJ
454553-0001
I would like to sort each group on the last 4 fileds and print them... (11 Replies)
Hi All
I do have a file like this with 6 columns. Groups of data merge together and the group number is indicated above each group.
1
1 12 26 289 3.2e-027 GCGTATGGCGGC
2 12 26 215 6.7e+006 TTCCACCTTTTG
3 9 26 175 ... (1 Reply)
I have a file in the following format. Groups of data merge together and the group number is indicated above each group.
1
adrf
dfgr
dfg
2
dfgr
dfgr
3
dfef
dfr
fd
4
fgrt
fgr
fgg
5
fgrt
fgr (3 Replies)
I can't seem to make sense of this.
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga)
$
$ mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on... (6 Replies)