The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-02-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,954
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
  #2 (permalink)  
Old 12-02-2005
Corrail Corrail is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 50
Is there anywhere else, for example in user, that you could change it or check it to see if its still req?
  #3 (permalink)  
Old 12-02-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,954
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?
  #4 (permalink)  
Old 12-02-2005
Corrail Corrail is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 50
*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.
  #5 (permalink)  
Old 12-02-2005
rhfrommn rhfrommn is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2003
Location: Minnesota
Posts: 424
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
  #6 (permalink)  
Old 12-05-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,954
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0