![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| doubt in awk | jisha | Shell Programming and Scripting | 4 | 04-16-2008 05:02 AM |
| doubt about awk | soujanya_srk | UNIX for Dummies Questions & Answers | 2 | 01-10-2008 05:26 PM |
| Pls help for the doubt | ravi.sadani19 | Shell Programming and Scripting | 4 | 04-12-2007 05:51 AM |
| doubt in sed | matrixmadhan | UNIX for Dummies Questions & Answers | 3 | 08-03-2005 12:34 PM |
| doubt it sed | esham | Shell Programming and Scripting | 2 | 03-08-2005 01:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
strange doubt in users
confused with this strange doubt
abc is my login id ls -l | grep abc drwxr-xr-x 13 abc req 1024 Jun 21 22:50 abc i just reset my group from req to try by changing the entry in /etc/passwd but still ls -l | grep abc drwxr-xr-x 13 abc req 1024 Jun 21 22:50 abc instead of try strange thing is i have a program that would execute only if the group is try and now i am able to execute that (seems grp has been changed but i couldnt reflect the change in /users/ ) what could be the reason? hope i make things clear |
|
||||
|
now i tried
chgrp try /users/abc/ ls -l | grep abc drwxr-xr-x 13 abc try 1024 Jun 21 22:50 abc i have the effect of the above chgrp command only for /users/abc/ the file that i had specified in chgrp but still the file /users/abc/sub is in req group could somebody help me with this? |
|
||||
|
*i have never played with groups BUT* How hard/disasterous would it be to just go and delete the group and remake it. There has to be some script or something out there to collect the names of the users in the group then delete the group and put it back together. As i said i havent played with groups but just a thought.
Someone once said "The hardest problems are solved by the most obvious solutions, you just need someone else to tell you what it is." Heh this is so true.....sometimes you get so frustrated you don't see the obvious. |
|
||||
|
There are a couple things going on here. First, when you change your group in /etc/password it changes which group you belong to, but that won't have any effect on files that are already created. From now on, all files you create will have group try, but anything from before won't change.
That is why in your second post you needed to do the chgrp. When you did the chgrp try /user/abc, that will change the group for JUST /user/abc. If you want it to change the group for everything below you need to tell the chgrp command that. In Solaris it would be: chgrp -R try /user/abc If you are using a different Unix version just check the manpage for chgrp to verify that the switch is -R for you as well. Hope that clears it up for you. Last edited by rhfrommn; 12-02-2005 at 12:10 PM.. Reason: Added more information |
|
||||
|
Thats very true,
after changing the group in /etc/passwd all the files hence forth created will have the current group and not the older ones Assumed when group is changed for a user the home directory of the user which in turns contain an unique inode, would change its group name based on the group id identified from the file. Wouldn't the contents of the inode(group name) be refreshed with the current one? Would appreciate very much if somebody explains at the level of inodes? Thanks, Mad |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|