I have a script which called by user id (mftp) . The set up is working on two server and not working one server.
Working Server : Non working server
from the above comparison I thought that mftp id was not csp group.So I added the mftp id to csp group. Even after that I am seeing the file is created like .
What should I make to create them as
This is what the o/p of groups
Thanks in Advance
Last edited by arunkumar_mca; 01-17-2017 at 01:41 AM..
Reason: Added missed step
To add to what DonCragun already remarked: in which way does your script "not work"? Is there any error message (if yes: post it), diagnostic message (if yes: post that either), return code (if yes: which one), etc..
Always keep in mind that we a seeing your problem through your description and only know what you tell us.
Hi bakunin,
I agree that a much more explicit statement of what is wrong would help. My assumption is that the group ID on the log file on the working server (csp) is the desired result and the group ID on the non-working server (mftp) is the wrong result.
Hi arunkumar_mca,
My first guess was that the primary group of user mftp is csp on the working servers and is mftp on the non-working server. Another likely possibility is that the directory in which the files are located is configured to use the GID of the containing directory on some of the servers and is configured to use the effective GID of the creating process on some of the servers. In addition to showing us the output of the command:
on each server, please also show us the output from the commands:
on each server while sitting in the directory where 117001.log is located on that server. (Note that the mount command might not be in your normal command search path and might not appear in section 1 of your man pages. On many systems, the command might be /sbin/mount or /etc/mount.) What we are looking for is the permissions on the directory where 117001.log is being created, the filesystem type being used to store that directory, and the operating system (including the release number) being used on each system.
This User Gave Thanks to Don Cragun For This Post:
My assumption is that the group ID on the log file on the working server (csp) is the desired result and the group ID on the non-working server (mftp) is the wrong result.
You are right, this is perhaps the most likely reason. another would be that "failing" means that another (hypothetical) script is relying on the group permissions of the file being "csp" and not "mftp". In this case it would not matter if the "mftp" account is in the group csp or not. All would depend on the user the other script is run under being in the mftp group.
Either way, it would be easier to know (instead of hypothetically debug hypothetical scripts) what is going on.
There is no error in the log. The issue is there is a script which run for 2 countries. Both uses mftp login. When the script is running it is creating file for the working country it is created as below
and for the non working countries it is created as below. We are having group as
Quote:
csp
for the non working country. So I think this is causing the issue
Last edited by arunkumar_mca; 01-17-2017 at 07:46 AM..
Reason: missed tag
You still didn't say WHAT and HOW is "not working", although this has been requested several times. Don't expect any meaningful help unless you supply seriously more detailed info.
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)