File group issues


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers File group issues
# 15  
Old 01-17-2017
Did some more analysis and find that mftps is id that is creating the file. And the program running is from different id don't have access

In the not working place the file created is like below and the running program ffrprocess group is like

Code:
-rw-rw-r-- 1  mftp   mftp  0 Jan 17 00:14 117001.log
lnx001:fzaprocess>) groups fzaprocess 
fzaprocess :  csu
lnx001:fzaprocess>) groups  mftp  
mftp  : mftp  csu  cfr

In the working place the file created is like.and the running program fzaprocess group is like

Code:
-rw-rw-r-- 1  mftp   cfr Jan 17 00:14 117001.log
lnx001:ffrprocess>) groups ffrprocess 
ffrprocess :  cfr
lnx001:ffrprocess>) groups  mftp  
mftp  : mftp  csu  cfr


mftp is the login that is creating the file. But how.. for one process it is created with right group csu and other it is not creating with the mft even though the groups is set and added

---------- Post updated at 09:51 PM ---------- Previous update was at 09:32 PM ----------

Code:
 egrep "^frn:|^mftp:" /etc/passwd
mftp:x:628:23016:Transfer mftp:/opt/mftp:/bin/bash

 egrep "^sfd:|^mftp:" /etc/passwd
mftp:x:628:23016:Transfer mftp:/opt/mftp:/bin/bash


Last edited by arunkumar_mca; 01-17-2017 at 12:05 PM.. Reason: Added new groups
# 16  
Old 01-18-2017
Quote:
Originally Posted by arunkumar_mca
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


Code:
(Lnx01:frn:/frn/log>) ll test
-rw-rw-r-- 1 frn ffr 0 Jan 17 10:31 test

(Lnx01:sfd:/sfd/log>) ll test
-rw-rw-r-- 1 pproc ffs 0 Jan 17 10:35 test

I already told you why - in fact i told you twice! Do the following two commands

Code:
ls -ld /frn/log
ls -ld /sfd/log

and post their output. It is most probably exactly what i told you in post #5 and post #10. You can of course choose to ignore my help further. Miracles have been described in all the holy books worldwide and one might just happen for you.

bakunin
This User Gave Thanks to bakunin For This Post:
# 17  
Old 01-18-2017
Hi bakunnin... Offcourse not ignoring you. Sorry missed it. Below is the result of the command


Code:
ls -ld /frn/log
drwxrwxr-x 3 mgreu frn 307200 Jan 18 09:43 /frn/log

ls -ld /sfd/log
drwxrwsr-x 3 mgreu sfd 2084864 Jan 18 19:20/sfd/log

Thanks in Advance
# 18  
Old 01-19-2017
Now compare what you see below to what i wrote in post #10. I have marked the relevant part bold:

Quote:
Originally Posted by arunkumar_mca
Code:
ls -ld /frn/log
drwxrwxr-x 3 mgreu frn 307200 Jan 18 09:43 /frn/log

ls -ld /sfd/log
drwxrwsr-x 3 mgreu sfd 2084864 Jan 18 19:20/sfd/log

You need to get the other directory the same rights and group membership. Issue:

Code:
chown mgreu:sfd /frn/log
chmod 2775 /frn/log

to change /frn/log. I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 19  
Old 01-19-2017
Hurrayyyy.... That worked thanks a ton for help
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Sql ORA-00937: not a single-group group function

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)
Discussion started by: progkcp
3 Replies

2. Shell Programming and Scripting

Awk: File Checking Issues with 9 multiple file

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)
Discussion started by: siramitsharma
3 Replies

3. UNIX for Advanced & Expert Users

File command return wrong filetype while file holds group separator char.

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)
Discussion started by: Arpitak29
6 Replies

4. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

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)
Discussion started by: kamaldev
2 Replies

5. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

6. Shell Programming and Scripting

Sort the file contents in each group....print the group title as well

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)
Discussion started by: prash184u
11 Replies

7. Shell Programming and Scripting

Merge group numbers and add a column containing group names

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)
Discussion started by: Lucky Ali
1 Replies

8. Shell Programming and Scripting

Merge group numbers and add a column containing group names

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)
Discussion started by: Lucky Ali
3 Replies

9. Red Hat

Issues with LDAP user/group permissions on NFS share

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)
Discussion started by: dfinn
6 Replies
Login or Register to Ask a Question