Re: Changing UID

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

  • Next message: Vipin Khushu-Suse: "Re: Network printer and AIX Print Queues"
    Date:         Fri, 19 Aug 2005 12:05:38 +0200
    To: aix-l@Princeton.EDU
    
    

    There is no option to change the username.
    You said you wanted to change the userid, which I took to be the number.

    If it's actually the name you want to change you'll have to create a new
    user. You can assign it the same UID as the old one, if you want, and
    perhaps change the name of the old home directory so it uses that.

    -- 
    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: 19 August 2005 00:24
    To: aix-l@Princeton.EDU
    Subject: Re: Changing UID
    Hi,
         Sorry for not changing the Subject in the
    previous  mail....
      can u please tell me what option in chuser will
    change the username .....
    Thanks & regards
    Kumaresh.P.N
    --- "Green, Simon" <Simon.Green@EU.ALTRIA.COM> wrote:
    > 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
    

  • Next message: Vipin Khushu-Suse: "Re: Network printer and AIX Print Queues"