Changing UID

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 08/18/05

  • Next message: Jeff Kloek: "Large Filesystems on JFS2"
    Date:         Thu, 18 Aug 2005 11:28:20 +0200
    To: aix-l@Princeton.EDU
    
    

    Please do not re-use an existing subject! It's confusing and annoying. If
    people don't realise that it's a new subject they may well ignore it.

    You can change the user ID with the chuser command, as with any other user
    attribute.
    However, ownership of files is determined by the UID, and they will NOT be
    changed. (UID number is what's in the directory: /etc/passwd just provides
    a cross-reference used by some commands.) You'll have to go through your
    system and find all files owned by the old UID and change them to the new
    one.

    e.g. find / -user <old UID> -exec chown username {} \;

    -- 
    Simon Green							
    Altria ITSC Europe s.a.r.l.
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of p n
    kumaresh
    Sent: 18 August 2005 01:38
    To: aix-l@Princeton.EDU
    Subject: Re: cfgmgr question
    Hi All,
     
            How to change the userid of a existing userid
    in AIX.
    Thanks & regards
    Kumaresh.P.N
    Contact Me : 9880679279
    Mail me    : pnkumaresh@yahoo.co.in
    		
    ____________________________________________________
    Start your day with Yahoo! - make it your home page 
    http://www.yahoo.com/r/hs 
     
    

  • Next message: Jeff Kloek: "Large Filesystems on JFS2"

    Relevant Pages

    • Re: Wie die numerische Userid anzeigen?
      ... >>Wenn ich in der Cygwin-Bash uid aufrufe, bekomme ich als Userid 1000. ... >>Mache ich das in einer Shell der SFU, erhalte ich eine ganz andere uid. ... Burkhard Schultheis ...
      (microsoft.public.de.german.win2000.sonstiges)
    • Re: deleting user account: disposition of users files?
      ... The system will report them as being owned by uid "x", ... Not the userid, the uid--the number associated with the userid. ... all the old files will suddenly belong to the new ... I don't know of any system that prevents recycling uids. ...
      (comp.unix.solaris)
    • RE: hfs ishell owner field blank
      ... Your problem is due to you not having a userid in your security database ... assigned with that UID, but that user is no longer in the security ... hfs ishell owner field blank ...
      (bit.listserv.ibm-main)
    • Re: Combo Box Filter according to user log in
      ... Have table with userid, username, password and level of access ... (security table) ... Dim uid As String ... splitting and maintaining the front-end. ...
      (microsoft.public.access.formscoding)
    • Re: directory permissions, sticky bits, chmod, etc.
      ... You also want to make sure each userid has a default group ... which only they are members of, commonly done by setting up gid == uid. ...
      (freebsd-questions)