Create New User Script and Change Home Dir

I am working on creating a portable user for my usb flash drive so that I can take my desktop anywhere. I was wondering if there was a way that I could make a shell script to:
1. Create a user account named acnt with the password pswd
2. Change the NetInfo link of the accounts home directory to /Volumes/Users/User/acount
I know how to do this in gui, but I would like a more stream lined aproach to doing this. Thank you.

Dear Dominic,
There are a number of ways to do this deppending on exactly what you want to do.
The easy way is to create a file called .profile. .profile will change directories when you login. But this only works as far as terminal login is concerned. To do this type.
cat>.profile
cd /Volumes/Users/User/account
<control D>
Another way to do this is to use netinfo to adjust the values in the netinfor equivalent of /etc/password. You just set the home directory to where ever you want to login. But as I understand it, This has problems if you try to use Micro$oft software. I have NOT tried this, I just recall seeing a message to this effect in this fine forum.
I am on the road, so I do NOT have my library and note books. If you need more details on how to use netinfo, just post more questions. Someone else will figure out the details or I will see them when I return to my notes and library.
Your humble unix geek,
Kurt

Similar Messages

  • How to create new user account and delete old one?

    Greetings,
    we have wanted to change our alias on the discussions group but understand from the frequently asked questions section that,
    "Once you create an alias, you cannot make changes to it. If you want to change your alias, you will need to create a new User Account".
    However it does not go on to tell us specifically how to now set up a "new User Account". Could someone specify how to do this? And if we do this, how would we then delete the current User Account? Thank you.
    Chris

    Colleen Von Eckartsberg wrote:
    Thanks for the reply.
    However I am still confused. I originally thought the "user account" referred to an account specific to the Discussions Forums, not the general "Apple ID" however your email seems to suggest they are one and the same....Please clarify.
    If so, however I do not think I am able to change my Apple ID. As I am a mobile me user I am required to us my mobile me address for my apple ID.....and do not think I can have two ID's with the same mobile me address.....
    Any additional thoughts are appreciated. Thanks.
    Chris
    Not with the same Primary address, but you can use your MM address as a secondary one. That is how I have my 2 Apple IDs setup. 1 uses my Dot Mac address and the other uses an ISP address as the Primary with the latter having my Dot Mac address as an alternate address.
    Warning, even if you create a new account, you won't be able to use your current ALIAS with the new account.

  • Help Pls: Create New User Form and display custom attributes +++

    Hi All,
    I am trying to create a user screen where a user would see all the organizations he is responsible for and clicking on the organization he would see the certain attribute of all the users that belong to the organization. (Kind of report)
    Account attribute need to be defined with 2 custom attributes:
    1. Organizations Responsible for
    2. Belongs to which organization.
    3. Status
    The first 2 attributes are used to define the organization heirarchy (we can't use the org heirarchy as is in IDM).
    I am just starting on the Sun IDM (very new to the product). Could you please let me know how this could be done? Which form I need to modify and any other changes I need to make.
    Thanks a lot and have a pleasant day,
    Ritesh
    PS: I know this is a long question but i really don't know how to better explain the problem.

    A workaround is to write a PL/SQL procedure to render the custom item (pass in each attribute as a paramter and then use htp.p to print it whatever format you want). You can then disable the default display of attributes (i.e. edit the style so none of the attributes are rendered).
    Hope that helps,
    Mark

  • New User Account and Changing Permissions?

    Yesterday I opened a new user account for each of my kids. I moved and/or imported all their stuff to their respective accounts and all seems fine. Except for one folder... The most important one (of course ;o). It has a big red circle saying "..you don't have access".
    This work was done while he was still using my account. So I have since brought it back to my desktop and all is fine. Am I correct in assuming I need to change permissions on this before he can access his folder on his account? If so.. I've never done this before. Can somebody please be good enough to walk me through this? I can not lose this file. There are no copies anywhere else. Please help!

    There are no copies anywhere else.
    This would be good time to make one, before you do anything else!
    I have since brought it back to my desktop and all is fine. Am I correct in assuming I need to change permissions on this before he can access his folder on his account?
    Rather than trying to change any permissions, my suggestion would be:
    1) Log into your own account and move the folder from your Desktop to your Public folder.
    2) Log into your son's new account, navigate to the Public folder back on your account
    HD>Users>yourname>Public
    and drag the folder from there onto the current (your son's) Desktop.
    This will COPY the folder into the new account rather than move it, and in doing so will correct all the permissions automatically. If the folder is very large, make sure you have enough free disk space for this copy. You can later delete the original from your own Public folder if you wish.

  • Just registered a brand new iPod Touch for my daughter (created new user name and password) but when she went to App Store and typed in aforementioned Apple ID and password it tells us these are incorrect when I know they are correct. What's up?

    The title says it all.
    Please help.
    Sam

    - Go to Settings>iTunes and App Store and sign out and sign back in
    - Reset the password and try again. After  resetting the PW sing out and sign back in
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • How to create new user for OBIEE presentation service

    Hello Guys
    I now only have 2 users on my OBIEE, demo1, demo2.. Now I'd like to create a new user call A and make this new user able to log on to OBIEE presenation service..
    So I went to the RPD admin tool and created new user there and gave password. It was done online mode and I checked out..
    I am able to login to admin tool with the new user account, but when I go to presentation service, I am not able to see this new user nor would I be able to log on using the new user account..
    So how does this work? If I wanted to create a new user and let it access dashboard, I'd I do it
    Any pointer will be greatly appreciated
    Thanks

    Hi.
    actually there is no option available in presentation service to create user. There you can just delete user and create and delete the groups.
    Anyhow, you said you have created a user in rpd.
    To see this user in answers, you must login into answers with this user once.
    are you able to login with the newly created user?
    (As you said you done the creation of user in online mode, this may not effect to the answers)
    if not, just login with administrator into answers, click on reload server metadata, then log off from there.
    Now, try to login with the new user. You may able to login.
    OR
    just restart your BI Server services.

  • Windows 7 Home Premium problem creating new user account

    I am unable to create a new user account on my Windows 7 Home Premium computer. I have 3 accounts on it already, two are adminstrators, and just trying to add a fourth one (standard user).
    I go to User Accounts, click Create new account, give it a name, keep Standard user checked, and press Create Account. The account appears to get created and shows up on the User Accounts screen, though it shows that it is password protected already, even
    though I didn't have an opportunity to give it a password yet. I can manage that new user account and delete the password, and it then shows up on User Accounts as not having a password.
    When I try to log on as that user from the main logon screen, it prompts me for the password (if I have specified one), but it doesn't accept the password (I've tried defining and using various ones), and I get the message "The user name or password is incorrect".
    If I don't define a password for that account, when I click on the account button to logon, I get that same error message immediately.
    I also noticed that C:\Users doesn't include the new user account folder there. Don't know if that should've been created at this point before logging on for the first time. I also noticed that there's a "Default User" folder that has a lock on the folder
    icon, and I'm not able to open that folder (says it's invalid). There is a "Default" folder there with some content in it and I am able to view it. Don't know if either of these folders act as templates for new users.
    At some point months ago I did have a profile problem with one of the existing accounts, and had to follow some suggestions on repairing that user profile. Don't know if that perhaps has complicated things. The 3 existing user accounts are working fine.
    Any tips on what I can try to get a new account established?
    Thanks, Chuck
    Chuck Mastrandrea

    I am unable to create a new user account on my Windows 7 Home Premium computer. I have 3 accounts on it already, two are adminstrators, and just trying to add a fourth one (standard user).
    I go to User Accounts, click Create new account, give it a name, keep Standard user checked, and press Create Account. The account appears to get created and shows up on the User Accounts screen, though it shows that it is password protected already, even
    though I didn't have an opportunity to give it a password yet. I can manage that new user account and delete the password, and it then shows up on User Accounts as not having a password.
    When I try to log on as that user from the main logon screen, it prompts me for the password (if I have specified one), but it doesn't accept the password (I've tried defining and using various ones), and I get the message "The user name or password
    is incorrect". If I don't define a password for that account, when I click on the account button to logon, I get that same error message immediately.
    I also noticed that C:\Users doesn't include the new user account folder there. Don't know if that should've been created at this point before logging on for the first time. I also noticed that there's a "Default User" folder that has a lock on
    the folder icon, and I'm not able to open that folder (says it's invalid). There is a "Default" folder there with some content in it and I am able to view it. Don't know if either of these folders act as templates for new users.
    At some point months ago I did have a profile problem with one of the existing accounts, and had to follow some suggestions on repairing that user profile. Don't know if that perhaps has complicated things. The 3 existing user accounts are working fine.
    Any tips on what I can try to get a new account established?
    Thanks, Chuck
    Chuck Mastrandrea
    I agree with the same problem and the answer below did not work either.  I tried changing permissions to Users directory and that did not work either.  I even tried creating the directory name of user I wanted to install and that was recognized and
    being used, but will not start a user directory for new user.

  • How do I create a new user account and migrate my data to it?

    I have problem with Adobe Bridge crashing when I exit Camera Raw.  I was advised by my local apple service store to create a new user account and test Bridge using the new account.  It works fine.  So what do I do now?  I don't know what in my account is causing the conflict but assume that the solution might be e newly setup user. 

    Checking the behaviour in another user account is a TEST, not a solution! You don't need to move everything over. Otherwise, every time you get a user account problem, you'll keep moving to a new user account again and again.
    If the problem does not occur in a new user account, then the cause is something IN your user account. This is usually a Preference file. Adobe Bridge seems to crash a lot, and it can usually be fixed by deleting the Bridge folder in <user>/Library/Application Support/Adobe/
    You can also try deleting the Bridge preference file, which will be in <user>/Library/Preferences, and called com.adobe.bridge5.plist (or similar).
    If that doesn't work, you can test removing a whole bunch of the various Adobe files in those folders. You can always put them back if they don't change anything. And you've got a backup, haven't you? ;-)

  • Solaris 10 and create new user

    I have got solaris 10, I want to create new user , ( Through command line and GUI), is there any guidline on net shows me step by step how to create user ?
    I had created user, but I could not login through that user, I was able to login as root only.

    I tried many things, but I still could not login, therefore I asked if you can post me some link show me step by step , I reapt step by step how to create new user in Solaris 10,,,,,,,,,,should step by step,,,,,I know how to use: useradd and chown and mkdir in /export/home,,,,,,etc.
    I relly appreciate if there is any link dives details for creating new user, because I could not find.

  • I created new users on my mac and my music, photos, etc. is still on the administrators account. How can I share them with all users?

    I created new users on my mac and my music, photos, etc. are all still on the administrators account. I tried making the other 2 new accounts administrators but that didn't work. How can I share them with all users?

    Read "iTunes: Setting up Home Sharing on your computer."

  • How do I create new user table in program and then access it?

    I am writing an application where I check for the existence of user objects when the add on starts and run the setup if the objects do not exist. I can create the user tables and fields but after the setup completes these objects still are not visible.
    If the user objects exist when the add on is first run everything is detected correctly.
    When a user object is added in SAP the user is eventually prompted to restart so I suspect something needs to happen prior to the add on being able to use the new fields.
    Does the add on need to wait for the DI Server to perform some action? Do I need to just quit the add on's class and rerun it, disconnect and reconnect to the company, or get a new Application and/or company object?
    What I want to do is figure out a way for the add on to automatically run the configuration if the user tables and fields do not exist yet and then kick off the regular add on code. I haven't seen anyone else's code so I don't know what is recommended or required here.
    Thanks for any assistance!

    I found that the add on can validate the existance of the user fields if I disconnect from the company object, set the SAPbouiCOM.Application and SAPbobsCOM.Company objects to null, set the new application, context, and company objects, and reconnect once more.
    HOWEVER...
    I still have to wait for the client to be restarted manually before I can run any of the form I added to the menu.
    So, I'd still like to know what the best practice is here. Should I just exit after setting up the tables and tell the user to restart SAP?

  • Can I Create a New User Account and Move Existing Account ???

    Lion was reinstal.
    I'm suspecting issue with one user account.
    Can I creat a new user account and move all my files to that new user?
    What are the impact?
    How about permissons on this files?
    What about the Library Folder?
    Thank you for your help and support.
    BigBlaze

    This should help you out after  you have created the new user account. You are trying to make it much more complex than it needs to be. Just follow the directions in:
    Transferring files from one User Account to another.

  • Create new user same as a existing roles and Privileges

    Hi Team,
    I am a junior DBA. New user Joined in Application team. So, Client requested me.....
    Crerate new user with same privileges as like as existing user.
    As of now i am creating user like "create user username identified by "password". Then grant privileges to that user. earliar I never comapare or copied users.
    Please suggest any one how to create new user as like as existing user roles and privileges.
    Thanks,
    Venkat

    For basic cloning:
    select dbms_metadata.get_ddl('USER', '...') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','...') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','...') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','...') FROM DUAL;
    SELECT DBMS_METADATA.GET_granted_DDL(‘TABLESPACE_QUOTA’, ‘...’) FROM dual;
    Then just replace the username with the new one you want to create.

  • Mountain Lion has created new user log-ins and moved old Users to a separate folder

    Mountain Lion has created new user log-ins and moved old Users to a separate folder.
    The new users are set-up as "standard" and the old ones were "Administrators"
    All files are missing, i.e. no desktop files etc. But they are located in a folder called "Users 1" which is a new folder.
    Can anyone help?

    Here is perhaps the solution :
    http://forums.macrumors.com/showthread.php?t=1191262
    follow the "Ratatapa's" instructions.
    1/ boot on Recovery part (command R)
    2/ find "terminal" in disk utilities
    and write "resetpassword" for root. Enter a new password for the root user.
    3/ reboot as root user (or when your are login, log out and typing to open a other user "root")
    in the "system pref" panel, open "users and groups" and then create new user with the same name, same password.. normally it must be asking you about "You are already an account with the same name" say yes. And it's done.
    4/ Log out. re-log as the normal user. desactivated the root user.
    about "root user", see also :
    http://support.apple.com/kb/ht1528
    your welcome
    f

  • Creating new user and group in BPEL PM.

    Hi,
    Please tell me how to cerate new user and groups in BPEL PM.
    I understand that BPEL PM uses jazn files to keep user information . I would like to know the steps to create new users and gourps in BPEL PM.
    Thanks

    Please refer this link http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28982/security.htm#CDDBJCHD and also you can create users/roles through EM (Enterprise Manager). Here even you can able to specify their roles.
    regards
    Rajesh A

Maybe you are looking for

  • How to put in Capital letter  a value of a field in Report ?

    Hello, In my report, there is a field that the value is in small letter. Then I want to put it in capital letter always. How must I realize it ? Regardly.

  • Icloud keychain verification code

    I don't have access to the old phone number to recieve the verification code i've clicked on "Don't have access to this phone?' but it didn't really help.

  • Query for SAP-eSourcing

    Hello Experts, I am looking for an option where i need to extract the following details from DB. My requirement is to fetch the Agreement Profile ID, Name of the Stakeholder, Stakeholder Role Name from the Agreement Profile. The filter of the query i

  • Workaround--How I put old photo stream on new device

    So I bought a new iPhone and turned on PhotoStream and was pretty upset that only the last 30 days worth of photo stream photos made it back to my device...  I did a lot of reading and found out that nothing was set-up wrong, it was just the way phot

  • Hi, all good people

    Hi, Please help me !!!!!!!!!! How deactivate Adobe Premiere Elements 13 ? I tray everithing but I can find Thank You very, very much for help...