Unix/Linux 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

Thread Tools Search this Thread Display Modes
Old Unix and Linux 10-06-2012
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Join Date: Jun 2009
Last Activity: 20 October 2017, 9:20 PM EDT
Location: Zürich
Posts: 8,750
Thanks: 356
Thanked 1,161 Times in 995 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
Old Unix and Linux 10-07-2012
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Join Date: Sep 2005
Last Activity: 20 October 2017, 2:59 PM EDT
Location: Switzerland - GE
Posts: 6,471
Thanks: 288
Thanked 551 Times in 513 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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:14 PM.