How to change the name of an existing user?

i found this command on this other website but i have been hesitant to try it because im araid it might screw everything up
usermod -l login-name old-name
http://www.cyberciti.biz/faq/howto-chan … r-name-id/
now my understanding is that i would also need to manually rename the home directory, but my question is what else will i need to do
so far all i can think of that i might need to change is home directory and sudoers file
i have searched abit on google for info about changing a users name but there seems to be a slight lack of documentation available on this subject
before i dive into this and possibly screw something up, does anybody here have any experience with changing users names?
if so what other problems might i run into?
do i need to change my uid also or can i keep the existing one?

problem # 1
the user that i am changing is currently named arch and i want to name it to awesome (i am making seperate users for different WM's)
so i loged in as tj because
usermod will not allow you to change the name of a user who is logged
       in. You must make certain that the named user is not executing any
       processes when this command is being executed if the user's numerical
       user ID is being changed. You must change the owner of any crontab
       files manually. You must change the owner of any at jobs manually. You
       must make any changes involving NIS on the NIS server.
i did
su -
(to become root)
i ran the command and changed the users name
usermod -l awesome arch
i then became awesome to test that it worked
su awesome
it worked so i exited back to tj
exit
i became root again
su -
i renamed /home/arch to /home/awesome
cd /home
mv arch awesome
it all seemed to work
i became awesome again
su awesome
i noticed that i get 
bash-3.2$
instead of
[awesome@myhost ~]$
if i do cd ~ it says
bash: cd: /home/arch: No such file or directory
so basically my question now is..
what file do i need to edit to change the location of the home directory that the user is using?

Similar Messages

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How to change the name of a BADI Implementation?

    Hello experts,
    Does anyone knows how to change the name of the BADI Implementation? I just create a new Implementation but we need to rename it.
    Thanks in advance,
    AK

    Hi,
    Please go to transaction SE19, enter your implementation name.
    Then go to menu: Implementation -> Rename -> ...
    Regards,
    Ferry Lianto

  • Will someone please tell me how to change the name of a folder I created in Pages and saved to the cloud?

    Will someone please tell me how to change the name of a folder I created in "Pages" and saved to the "Cloud"? Thanks.

    Go to the open dialog in Pages and select iCloud.
    Click on the folder that you created on iCloud to open the folder.
    On the lower half of the window (the open folder) click on the name of the folder.
    Once you click and select the folder's name it should be editable.

  • How to change the name of column in ActionScript?

    I possibly know how to change the name of the column in DataGrid using mxml but dont know how  to change the name of column in  DataGrid using  ActionScript.
    var newDataGrid:DataGrid=new DataGrid();
         newDataGrid.dataProvider=arrayCollection():
    It takes the default names from arraycollection but I wanted to give any column names which I want through ActionScript.
    Please HELP!

    Give your datacolumn and id.  Then set the property for that column through the datacolumn id.
    DataGridColumn id="nameDC"
    Script:
    nameDC.headerText = "Name";

  • HT204053 Our Apple ID is ok and functioning.  However, I just came on as the IT for the group and cannot find how to change the name.

    Our Apple ID is ok and functioning.  However, I just came on as the IT for the group and cannot find how to change the name.

    Assuming you mean the personal name associated with the account, as opposed to the login (which you can change if it's not an @icloud.com. @me.com or @mac.com address) you can change this at http://appleid.appla.com . Click on 'Manage your account' and then on 'Edit' next to 'Your name' and the name currently associated with the ID.

  • Can anyone tell me how to change the names of the networks I have set up on Airport Express

    Can anyone tell me how to change the names of the networks I have set up on Airport Express please? I now work in a UN compound and my network is my own name, would prefer some anonymity so seeking to change the wifi network name that others might see.

    Hi mkl1961,
    Happy Holidays!  The article below will explain how to reset your Airport Express and change the network and base station names back to their defaults.  
    Resetting an AirPort base station FAQ - Apple Support
    http://support.apple.com/en-us/HT3728
    What default settings will my AirPort base station have after a hard or factory default reset?
    AirPort base stations are set to request an IP address by DHCP.
    AirPort base station passwords are "public."
    AirPort base station names revert to "base station xxxxxx," where xxxxxx is the last six digits of the wireless MAC address*.
    AirPort base station network names are "Apple Network xxxxxx," where xxxxxx is the last six digits of the wireless MAC address*.
    *A MAC (Media Access Control) address, also known as a "network ID," is a unique hardware identification number for a network port.  You can find the wireless and Ethernet network IDs on the printed label on the bottom or side of the device.
    Airport Express Setup Guide
    manuals.info.apple.com/MANUALS/1000/MA1613/en_US/airport_express_80211n_2nd_gen _setup_guide.pdf
    I hope this information helps ....
    - Judy

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • How to change the name of a clone?

    I cloned in order to upgrade to Tiger.
    How do I change the name of the clone?
    I was told this: change the computer's name from the Sharing pane of System Preferences.
    I went into the hard drive with the clone, opened system folder>library>preferencepane folder, clicked on sharingpref.pref pane and got a message saying "you cannot install the preferences pane folder because it already exists"
    What stupid thing have I done?
    Thanks!

    geo3
    What stupid thing have I done?Probably nothing, but what exactly do you want to rename? The "clone", which is a disk volume, or the "computer name"? And if the latter, why?
    I have several volumes which are "clones" and they are named "OSX48", "OSX39" etc so I know which is which (my main system boot volume is just plain "OSX_4"). But at no time did I need to change my computer's name.
    You change the volume name the same way you change a folder or file name: click on the name until it becomes an editable box, and type your new name.

  • How to change the name of the named instance in MS sql server 2008 R2

    Hi Gurus
    I have installed a  SAP ECC 6 ehp4 on MS sql server 2008 R2 with MS windows 2008 R2 OS.  While installing sql server i have selected  named instance from  window(default instance, named instance).   and given name  QAS.
    and installed ECC6 ehp4 ABAP engine successfully. now i want to change the name of mssql server's named instance name to DEV.
    kindly let me know
    which one is the best and easy solution
    1. changing the name of named istance at database level and SAP.
    2. or uninstalling  the existing SAP, DB and start from scratch.
    if first is the best, what would be the steps
    Thanks in advance
    balaji

    Hello,
    Please check this note:
    11692 - Renaming the system ID
    regards,
    John Feely

  • How to change the name associated with iCloud email alias??

    I had MobileMe on the iPhone with alias email addresses and I liked how it didn’t attach any “name” to an alias. For example, I had MainUserName, then for aliases I would have [email protected], [email protected], etc. When I sent an email from my iPhone using one of the aliases as the "from" no name would be associated with the alias email address. If it was the MainUserName then it would associate it, e.g. Main User <[email protected]> will show up on the "From" field when I sent an email. But with iCloud on the iPhone (and iPad), it’s Main User <[email protected]>, Main User <[email protected], etc., which I don’t want.  If anything it should be Alias 1 <[email protected]> or Alias 2 <[email protected]>.  Anyway, I don't want any name associated with the aliases, so when I send an email it will simply say [email protected] or just [email protected] with no name association. 
    It works differently if I access iCloud through a web browser.  If I send an email via iCloud on the web, I can customize and have a different name with each alias, e.g., Tom <[email protected]> or Harry <[email protected]>  And the customization carries over to the Mail app on my Mac.  That would be ideal if the customization carried over to the iPhone and iPad, but I'd be happy if there was no name association with alias email addresses.  Hopefully, there's a solution to the iPhone/iPad situation with iCloud as I don't want the name linked with the main iCloud email address linked with all the different email aliases I have.

    Can I change the name associated with an ipod on my Mac?
    Select the iPod in the iTunes source list, click on its name, and type a new name.
    And can there be more than one iPod on one computer?
    Yes.
    (39352)

  • How to change the name of my Home Folder

    I'm just wondering how I could change the name of my personal home folder which is associated with my username. I heard that there's a script I can download or something.

    First, before you go messing around with your home folder, make SURE you have a backup. If you have to ask how to make one, this process is not for you-it's advanced, and can mess up your data if done wrong.
    1. Open Accounts preferences (>System Preferences...>Accounts)
    2. Unlock the lock at the bottom, if necessary.
    3. Control (or right) click your account's name, and click "Advanced Options..."
    4. (IMPORTANT) Change "Short Name" to what you want the new short name to be.
    5. (IMPORTANT) Change "Home Directory" so that the path is right (I.E. if your new short name is "test1", change the path to "/Users/test1"-basically, DON'T CHANGE "/Users/"-just what comes after it-DON'T TYPE THE QUOTES)
    6. (IMPORTANT) Click "OK", and restart.
    Good luck! AND BE CAREFUL!!!!!!!

  • How to change the name of the Mac I connect to in the drop-down window.

    Using my brand new MacBook, in the drop down menu when I connect to my iMac, it shows up as my name ( which is Derek Walton's Computer) ...... How can I change the name that shows up here? I have tried all areas that iI can think of and altered my name on the iMac but to no avail - e.g. - Network Sharing, Account Name, and so on.... anything anywhere I have changed... but it always shows up with my full name. I have however managed to get the name in the sidebar of the Leopard window to read as I want ( Derek's iMac) but that is all.
    Also, when I am using Airport on my MacBook, in the drop-down menu I see also other neighbours connections.... I am wondering therefore does it follow that they can see my wireless connection ( as Derel Waltons Computer)?
    This has been vexing me all night and I am geting very frustrated, but I bet there is a simple answer..... for those that know!
    Thanks in advance for any help you care to put my way.
    Derek

    It is not a simple issue. Not the same as changing a user account in Preferences. Ttry this link:
    http://docs.info.apple.com/article.html?artnum=106824

  • How to change the name of a moments in photos app in iOS 7?

    Please tell me can i change the name of a moment in photos app in iOS 7. If yes then please tell me how?

    I think you can't change the name I the moments. It's grouped by the iOS. You can choose photos and create albums though.

  • How to change the title of an existing document?

    I have looked in online manuals and there are no headings for this.  I wish to change the title of an existing documents but can find no way to do so.  Any one have help on this? 

    You can also change the file name in Finder.
    peter

Maybe you are looking for

  • ABAP report to run other ABAP reports dynamically

    Hi there, I'm looking for an standard SAP or commercial solution ABAP Report that completely or partially meet the following requirements: The report must start ABAP reports on the system and write the result in files on the SAP server.        * The

  • Output Language in Global Address Cleansing

    Hi, How can the DQ Global Address Transform be restricted to give all the out put field values in English text? Even though the input text is in English, DQ transform gives the address field in Non English characters as its a Hungarian address. Is th

  • DocumentBuilder.parse classpath problem

    Hi, I've the "xerces.jar" in my classpath, and I'm using it like this: import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.servlet.http.HttpSer

  • Use parameter to specify "N" in Top N Group Sort

    I've successfuly set up a parameter which is passed to the Group N Sort criteria. Is there a way I can use this to set NO group sort? I've tried setting it to zero & 999999999 but it falls over.

  • HOW DO I RECOVER MY MISSING SONGS, PLAYLISTS, AND OTHER DATA

    Almost half of my songs are gone. My playlists are all gone and my rankings are also missing.