Sponsored Content
Full Discussion: File group issues
Top Forums UNIX for Beginners Questions & Answers File group issues Post 302989676 by arunkumar_mca on Tuesday 17th of January 2017 06:45:11 AM
Old 01-17-2017
Thanks for you reply.

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

Code:
-rw-rw-r-- 1  mftp   csu 0 Jan 17 00:14 117001.log

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


Code:
-rw-rw-r-- 1  mftp   mftp 0 Jan 17 00:14 117001.log


Last edited by arunkumar_mca; 01-17-2017 at 07:46 AM.. Reason: missed tag
 

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
chown(1)						      General Commands Manual							  chown(1)

NAME
chown, chgrp - change file owner or group SYNOPSIS
] ] ownergroup] file ... ] ] group file ... DESCRIPTION
The command changes the owner ID of each specified file to owner and optionally the group ID of each specified file to group. The command changes the group ID of each specified file to group. In order to change the owner or group, you must own the file and have the CHOWN privilege (see setprivgrp(1M)). If either command is invoked on a regular file by other than the superuser, the set-user-ID and set-group-ID bits of the file mode (04000 and 02000 respec- tively) are cleared. Note that a given user's or group's ability to use this command can be restricted by (see setprivgrp(1M)). Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. If the option is specified and a symbolic link referencing a directory is specified on the command line, the owner or group of the directory referenced by the symbolic link and all files in the file hierarchy below it are changed. If the option is specified and a symbolic link referencing a directory is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the directory referenced by the symbolic link and all files in the file hierar- chy below it are changed. If the option is specified and a symbolic link is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the symbolic link are changed. The utility shall not follow the symbolic link to any other part of the file hierarchy. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. Operands and recognize the following operands: file Target file for which the ownership is changed. group Either a decimal group ID or a group name found in the file. owner Either a decimal user ID or a login name found in the file. Access Control Lists - HFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see acl(5)). When using in conjunction with HFS ACLs, if the new owner and/or group of a file does not have an optional ACL entry corre- sponding to and/or in the file's access control list, the file's access permission bits remain unchanged. However, if the new owner and/or group is already designated by an optional ACL entry of and/or in the file's ACL, sets the corresponding file access permission bits (and the corresponding base ACL entries) to the permissions contained in that entry. Access Control Lists - JFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see aclv(5)). When using in conjunction with JFS ACLs, if the new owner and/or group of a file have optional ACL entries corresponding to and/or in the file's access control list, those entries remain in the ACL but no longer have any effect, being superseded by the file's and/or entries. Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. RETURN VALUE
and return the following values: Successful completion. An error condition occurred. EXAMPLES
The following command changes the owner of the file to The following command searches the directory and changes each file in that directory to owner and group WARNINGS
The default operation of and for symbolic links has changed as of HP-UX release 10.0. Use the option to get the former default operation. FILES
SEE ALSO
chmod(1), setprivgrp(1M), chown(2), group(4), passwd(4), acl(5), aclv(5). STANDARDS CONFORMANCE
chown(1)
All times are GMT -4. The time now is 09:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy