Accidentally Changed File Ownership to Include a "Comment" [AIX] - Page 3 | Unix Linux Forums | Emergency UNIX and Linux Support

  Go Back    


Emergency UNIX and Linux Support Please post your urgent questions here for highest visibility. Posting a new thread to this forum requires Bits. We monitor this forum to help people with emergencies, but we do not guarantee response time or answers. This forum is "best effort" only. Members who reply to posts here receive a bonus of 1000 Bits per reply.

Accidentally Changed File Ownership to Include a "Comment" [AIX]

Emergency UNIX and Linux Support


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #15  
Old 10-06-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 24 October 2014, 10:03 AM EDT
Location: Zürich
Posts: 8,484
Thanks: 332
Thanked 1,047 Times in 914 Posts
Yes, I had a feeling some of the users would need to be re-instated, is why they were tentatively removed.

Just tested on Linux (using RHEL) and it handles it quite differently.

On Linux with only the "commented-out" line in /etc/passwd, ls -l shows me the UID, as I'd expected. If then I add the user back by copying the line and removing the comment, ls shows the username (regardless of whether I put the new entry before or after the commented-out one).
Sponsored Links
    #16  
Old 10-07-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 24 October 2014, 7:36 AM EDT
Location: Switzerland - GE
Posts: 5,835
Thanks: 162
Thanked 414 Times in 389 Posts
Mind you Scott I have also been doing the same, but now i will add the space after #... the reason is more for me on some servers (e.g. statistics office...) applications may be user/group developped, not being member of the office I dont remember or know all the changes in their staff.. for me to solve their issues I have to give names of people (for half - owners of specific application...) for them to tell me who is responsible of the application. on another server Im testing moving of obsoleted home dir saved elsewhere to have names but found cases where things took more time : The UID name didnt teach you much on the User true name and could not find a copy of /etc/passwd of the time to help you...
So I tend to comment out in these cases (UID/GID dependant code) and reaffect them to people when they are replacing the previous in usage (and so responsible of the code...) and give new Id to new staff
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk command to replace ";" with "|" and ""|" at diferent places in line of file shis100 Shell Programming and Scripting 7 03-16-2011 08:59 AM
Mapping between "Pseudo name" and "Logical device ID" in powerpath with SVM changed.... Reboot Emergency UNIX and Linux Support 1 11-17-2010 05:09 AM
Compare file names and select correct elements to include in "for each loop" cgkmal Shell Programming and Scripting 2 11-04-2010 04:38 PM
perl file, one line code include "length, rindex, substr", slow jimmy_y Shell Programming and Scripting 3 06-09-2010 09:44 AM



All times are GMT -4. The time now is 11:26 AM.