Sponsored Content
Full Discussion: File group issues
Top Forums UNIX for Beginners Questions & Answers File group issues Post 302989689 by bakunin on Tuesday 17th of January 2017 08:19:53 AM
Old 01-17-2017
Quote:
Originally Posted by arunkumar_mca
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:

Code:
ls -ld /path/to

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".

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
mkfifo(3C)																mkfifo(3C)

NAME
mkfifo() - make a FIFO file SYNOPSIS
DESCRIPTION
creates a new FIFO (first-in-first-out) file, at the path name to which path points. The file permission bits of the new file are initial- ized from the mode argument, as modified by the process's file creation mask: for each bit set in the process's file mode creation mask, the corresponding bit in the new file's mode is cleared (see umask(2)). Bits in mode other than the file permission bits are ignored. The FIFO owner ID is set to the process's effective-user-ID. The FIFO group ID is set to the group ID of the parent directory if the set- group-ID bit is set on that directory. Otherwise the FIFO group ID is set to the process's effective group ID. For details of the I/O behavior of pipes see read(2) and write(2). The following symbolic constants are defined in the header, and should be used to construct the value of the mode argument. The value passed should be the bitwise inclusive OR of the desired permissions: Read by owner. Write by owner. Read by group. Write by group. Read by other users. Write by other users. RETURN VALUE
returns 0 upon successful completion. Otherwise, it returns -1, no FIFO is created, and is set to indicate the error. ERRORS
fails and the new file is not created if any of the following conditions are encountered: [EACCES] A component of the path prefix denies search permission. [EEXIST] The named file already exists. [EFAULT] The path argument points outside the process's allocated address space. The reliable detection of this error is implementation dependent. [ELOOP] Too many symbolic links encountered in translating the path name. [ENAMETOOLONG] The length of the specified path name exceeds bytes, or the length of a component of the path name exceeds bytes while is in effect. [ENOENT] A component of the path prefix does not exist. [ENOENT] The path argument is null. [ENOSPC] Not enough space on the file system. [ENOTDIR] A component of the path prefix is not a directory. [EROFS] The directory in which the file is being created is located in a read-only file system. AUTHOR
was developed by HP. SEE ALSO
chmod(2), mknod(2), pipe(2), stat(2), umask(2), mknod(5), stat(5), thread_safety(5), types(5). STANDARDS CONFORMANCE
mkfifo(3C)
All times are GMT -4. The time now is 02:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy