Group Problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Group Problem
Prev   Next
# 1  
Old 01-18-2008
Group Problem

my user old group was staff and now it is changed to staffnew.
All my files(scripts) are with staff group under the same user.
How to change the group for all the files to new group.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris LDAP group problem

I have a test environment which is running RedHat 6.5 Identity management. On the lab network are two Solaris 10 (U11) machines. I can successfully log into the S10 machines using the ldap username/passwords. However, I have a problem with groups and although I found through an internet search one... (3 Replies)
Discussion started by: cjhilinski
3 Replies

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

3. AIX

HACMP, NFS cross-mount problem. Can not move resource group

Hi, I'm new to HACMP. Currently I setup a cluster with nfs cross-mount follow this guide: kristijan.org NFS cross-mounts in PowerHA/HACMPMy cluster has two nodes: erp01 and erp02. I'm using nfs4 with filesystem for nfs is: /sapnfs Cluster start without problems. But I cannnot move RG (with... (3 Replies)
Discussion started by: giobuon
3 Replies

4. AIX

group permition problem in aix

My current stat is as follows drwxrwsr-x 176 user_a group1 16384 Dec 14 10:11 . drwxr-xr-x 4 user_a group1 4096 Feb 28 2006 .. drwxrwsr-x 5 user_c group1 4096 Feb 25 2010 folderx My user is user_g and member of groups=group1,group2 and i try to chgrp group2 folderx... (6 Replies)
Discussion started by: skfn1203
6 Replies

5. UNIX for Advanced & Expert Users

NIS Group Lookup Problem

I'm running a NIS on an network of Ubuntu 8.04 linux systems. I'm seeing a weird problem where the 'id' command is not returning all the groups I am a member of. For example: alex@client $ id -Gn localgroupA localgroupB nisgroup1 nisgroup2 nisgroup4 alex@client $ id -Gn alex nisgroup1... (0 Replies)
Discussion started by: vertigo23
0 Replies

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

7. UNIX for Advanced & Expert Users

problem in sending mail to a group

I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this: mailx -s "AA_BBB_" APPostServices@xyz.com APPostServices@xyz.com isa group but the mail is not sent but when i send mail to another group it works fine. What are the things that i... (1 Reply)
Discussion started by: petervuksich
1 Replies

8. Shell Programming and Scripting

problem in sending mail to a group

I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this: mailx -s "AA_BBB_" APPostServices@xyz.com APPostServices@xyz.com isa group but the mail is not sent but when i send mail to another group it works fine. What are the things that i... (1 Reply)
Discussion started by: petervuksich
1 Replies

9. Solaris

entry in /etc/group too long - problem using sudo with %group

hi folks, I've been googling for quite some time, but still can't find anything near it...my problem is the following: for useradministration in our company we are using ssh/sudo, now whenever I try to add users (we have quite a number of users) with useradd -G groupname for secondary group I... (4 Replies)
Discussion started by: poli
4 Replies
Login or Register to Ask a Question
chgrp(1)						      General Commands Manual							  chgrp(1)

NAME
chgrp - Changes the group ownership of a file or directory SYNOPSIS
chgrp [-fhR] group file The chgrp command changes the group associated with the specified file or directory to group. STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: chgrp: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
[Tru64 UNIX] Suppresses all error reporting. [Tru64 UNIX] If file is a symbolic link, the command chgrp -h file changes the group of the symbolic link. The command chgrp file changes the group of the file referenced by the symbolic link. Causes chgrp to descend recursively through its directory arguments, setting the specified group ID. OPERANDS
A group name from the group database or a numeric group ID. Either specifies a group ID to be given to each file named by one of the file operands. If a numeric group operand exists in the group database as a group name, the group ID number associated with that group name is used as the group ID. A pathname of a file whose group ID is to be modified. DESCRIPTION
To change the group ID of a file, you must have superuser privilege or your effective user ID must match the owner ID of the file. If you do not have superuser privilege you can change the group ID of a file only to your effective group ID or to the value of a group of which you are a member. The group argument must be either a valid group name that already exists in the group database or a valid group ID. For each file operand, the chgrp command performs actions equivalent to the chown() function called with the following arguments: The file operand is used as the path argument. The user ID of the file is used as the owner argument. The specified group ID is used as the group argument. Unless the chgrp command is invoked by a process with appropriate privileges, the set-user-ID and set-group-ID bits of a file are cleared upon successful completion. NOTES
If the chgrp command is invoked with the -R option and attempts but fails to change the group ID of a particular file in a specified file hierarchy, it continues to process the remaining files in the hierarchy. If the chgrp command cannot read or search a directory within a hierarchy, it continues to process the other parts of the hierarchy that are accessible. EXIT STATUS
The following exit values are returned: Successful completion, all requested changes were made. An error occurred. EXAMPLES
To change the group ownership of the file or directory named proposals to staff, enter: chgrp staff proposals The group access permissions for proposals now apply to staff. See chmod for details. ENVIRONMENT VARIABLES
The following environment variables affect the execution of chgrp: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for- mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. FILES
Contains group information. SEE ALSO
Commands: chmod(1), chown(1), groups(1) Functions: chmod(2), chown(2) Files: group(4) Standards: standards(5) chgrp(1)