group permition problem in aix


 
Thread Tools Search this Thread
Operating Systems AIX group permition problem in aix
# 1  
Old 12-21-2010
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
and i got the following message
chgrp: folderx: Operation not permitted.

My questions are
- Why I've got that message ?
- How can I change the group name with user user_g ?

Thanks
skfn
# 2  
Old 12-21-2010
You have to be owner of the file, or root to do this.
# 3  
Old 12-21-2010
if you are currently connected as user_g and want to use another GID group for which your user is granted to,
you can switch of gid using the newgrp command


Depending on the OS you may encounter some restriction changing the set gid bit on a directory, and you should use chmod with letter notation (ugo+-rwx ..) because doing this using octal notation like a chmod 2775 ... won't work.
I don't know whether it is the case or not on your OS, refer to the man chmod

Last edited by ctsgnb; 12-21-2010 at 06:47 AM..
# 4  
Old 12-21-2010
You have to be owner of the file, or root to do this.

why i can't do it with a user which is a member in both groups?

---------- Post updated at 06:35 AM ---------- Previous update was at 06:35 AM ----------

why i can't do it with a user which is a member in both groups?

---------- Post updated at 08:01 AM ---------- Previous update was at 06:35 AM ----------

The "newgrp" command is used to change the primary group
this is not the case .

---------- Post updated at 08:02 AM ---------- Previous update was at 08:01 AM ----------

The "newgrp" command is used to change the primary group
this is not the case .
# 5  
Old 12-21-2010
Quote:
Originally Posted by skfn1203
why i can't do it with a user which is a member in both groups?
I think you should direct that question to the creators of Unix... Smilie
# 6  
Old 12-21-2010
Being the owner of the file may not be sufficient. you need to be root for that.
Make sure it is not on a read-only FS nor an NFS one.
# 7  
Old 12-23-2010
Quote:
Originally Posted by skfn1203
You have to be owner of the file, or root to do this.

why i can't do it with a user which is a member in both groups?
because that is how it works. ACLs may support what you require. see the AIX documentation for details.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX volume group

I'm trying to change volume group of a disk, I'm setting up a PowerHa cluster and need to create a volume group named caavg_private and assigne it to hdisk3. what is the right methods (commands) of doing this? hdisk0 00f9a6dc66a06fcf None ... (1 Reply)
Discussion started by: spiderpig
1 Replies

2. AIX

Need help on Volume group for AIX 6.1

Please let me know which volume group will be suitable for creation of 5 TB for datavg norma,big,scalable (4 Replies)
Discussion started by: manoj.solaris
4 Replies

3. AIX

AIX not following permission rules on group

Has anyone ever encountered this? It's one of those it was working Monday but not today issues. We have an account pcadmin in the group utl, its supposed to read the files in utl. No issues on Monday, but today pcadmin can't read anything owned by utl. Below you can see it still has the group... (8 Replies)
Discussion started by: J-Man
8 Replies

4. AIX

User/group management in AIX

We have an environment of around 50 AIX LPARs. We use scripts for user and group account management but it is starting to get unwieldy to document and manage the accounts. It would be doable with scripts but before we dedicate resources to that, I was wondering if there is any product that you... (2 Replies)
Discussion started by: wilford
2 Replies

5. Shell Programming and Scripting

NFS Mount 16+ group Issue in AIX

Hi, I am trying to read files from NFS mount. The ID with which I am trying to read is part of 16+ groups. This is causing problem in doing change directory to the NFS mount directory. I was able to get some code which does newgrp to change the default group so that I could change... (3 Replies)
Discussion started by: pinnacle
3 Replies

6. UNIX for Dummies Questions & Answers

AIX user ID and group ID change

Hello AIX gurus, I have a requirement where I have to change user ID of user "myuser" from 100 to 200 and also the group ID of "mygroup" from 2 to 3. Please note that "myuser" has "mygroup" as it's primary group. What steps do I need to follow for this and in what order? Also can you please... (2 Replies)
Discussion started by: sacguy08
2 Replies

7. UNIX for Dummies Questions & Answers

Aix ftp user and group

Hi, I'm new in this AIX Version 4.3 system,can anywone help? 1 - I need to create a group (ftp) and give permissions 2 - I need to create a user (ftp) 3 - I need to stop the user from go out is home directory (cd ..) (0 Replies)
Discussion started by: marques_rmc
0 Replies

8. AIX

Group significance in mkrole aix 5.3

Hello... I am getting ready to create a bunch of groups for several of our servers all of which are running Aix 5.3. We really want to keep people away from using the root login and as such the systems have been hardened using aixpert and if it is absolutely needed people must su -. There are... (1 Reply)
Discussion started by: dgaixsysadm
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

10. UNIX for Advanced & Expert Users

AIX Unix.. number of users on system in a particular group

Does anyone know what pipe string might be used to determine how many people are logged onto an AIX system where a group ID begins with lets say 4. In other words, I am looking to query the system for the number of people currently logged onto a system that belong to any group starting with 4.... (1 Reply)
Discussion started by: afiore
1 Replies
Login or Register to Ask a Question