Can the Terminal add a user(with all options) on a single line?

Howdy All,
Can the Mac Terminal add a user, with all options desired, on a single line?    If so, can I get an example of this single terminal line to work from?
Thanks

Thanks Drew!   You have some great thoughts there. Perhaps I should provide a clearer environment of each high school(4). All classrooms have a lock down Windows environment. (There are no Macs any where in any classrooms.) The mini-tower will be the only Mac on each high school campus. we're in Dell country. The desktops are locked in such a way that only the ghosted/installed software on each hard drive works and no other software can be installed. USB sticks can't run any exe, jar, or other executable file. Even the other drives on the network can't run them. This has been setup to prevent students from bringing games into the environment and running them. Only the single classroom in each high school, where Web Tech is taught, has a ftp tool installed. Students cannot bring and use their own laptops either. So there really isn't any stray ftp activity happening. You cannot "ftp" out of the network! And there is only the one Mac available per campus.  All this makes it certainly easier to maintain for sure. I am the only user in the school district they let run a personal laptop...mine has Ubuntu (tweaked).  My knowledge of Linux has led them to assign this project to me. They are MS based entirely and so is their knowledge base.
I've got to teach the other 4 teachers how to manage the mini-tower.  Basically it is this:
     Start and stop Apache2,
     Start and stop vsftp,
     Add ftp users(students will only have directory:           /Library/Server/Web/Data/Sites/Default/studentlastname.firstname  )  Students will not log on to the min-   tower directly as any normal user would, but only through ftp. (I.E. no /home directory) ,
     Remove/delete students as needed
     (I'll pre-install cgi-bin scripts on these to keep it simpler on the other teachers and myself.)
With this in mind, you can see why a basic script or single command line to install these students would be great! I want to keep it simple to avoid mistakes the teachers might make adding users. Once I understand adding a user (in a terminal) better on a Mac, I may write a script to make it happen for them.
I'd also like to understand removing/deleting a student/user better to insure everything is gone when executed.
I hope this clear things up. Any help is much appreciated.    THANKS!!!

Similar Messages

  • Can't initiate video in ichat with all options enabled

    In my ichat, I can't initiate video chat with anyone. Under view all video and audio statuses are enable and under video, video and audio chat options are enabled. Help?

    Ummm,
    Odd.
    That sounds like the iChat > View Menu > Show Video and Show Audio Status are unticked  (I know you said different in the Original Post).
    The next obvious place is the Video Menu  which can turn the Camera and Mic On and Off.
    I am not sure if iChat 6 in Lion is the one where the wording changed from "Microphone Enabled" to "Audio Enabled" and similarly for the Video/Camera option.
    Again you confirmed you had looked at this in the Original Post.
    That leaves the actual Internet Speed your computer can see.
    If you have not done recently Restart  the computer.
    As IMAgent starts when the computer does it is involved in assessing the speed available.
    Next, before starting iChat 6, do a Speed test
    This one needs Flash http://www.speedtest.net/
    This one uses HTML 5 (No Flash) http://speedof.me/
    You need to see speeds in excess of 128kbps for both Upload as well as download.
    Also check iChat menu > Preferences > Video Section > Bandwidth Limit Drop Down.  This should not be set to lower than 200kpbs
    9:17 PM      Friday; April 12, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Can you have two different users with itune accounts on the same computer?

    Can you have two different users with separate itune accounts on the same Ipad?

    Yes, create another user profile on the computer and each user can log into their own profile that way.

  • How can the info block be assigned with the view and assign view to users.

    Dear Friends,
    Anyone could plz tell me how can the info block be assigned with the view and assign view to users.  Also how can the info block in sale summary be assigned with a view and how to assign this view for user.
    Regards,
    Ashima

    Hi,
    To define view and to make it default
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Define Reporting Views (Tcode:OVCD).
    To assign default user to the view.
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Default View To User (Tcode:OVCC).
    To assign Elements of SAPScript "SD-SALES-SUMMARY" to information Blocks To A View use
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Information Blocks To A View (Tcode:OVCB).

  • How can I make my computer restart with all the same windows that were open when a shut it down?

    How can I make my computer restart with all the same windows that were open when a shut it down?

    That is the way Mac OS X 10.8 (aka Mountain Lion) works by default. Are you actually running that system? (See About This Mac in the Apple menu.) If so, make sure the check box in the shut down alert is checked:

  • In CCM, Associate User with All Phones

    This is 1 of 2 threads I am starting.
    1. (this thread) asks for guidance in associating a User with all IP Phones in order for them to obtain authentication before allowing XML to be pushed to them.
    2. (in a separate thread) asks for guidance in issuing the push to the IP Phone, regarding getting the base64 User:Password inserted into the HTTP pkt.
    Thread 1:
    I want to push a CiscoIPPhoneExecute to IP Phones. I am having trouble authenticating. I know that in order to authenticate (UserID,Password) I must add a User (with User ID and Password) to CCM and associate it with all IP Phones. My CCM ver is System version: 5.1.1.2000-2.

    How do you want to do that? Manually or do you want to write a software that does it automatically?
    To do it automatically you need AXL. First you need to look up which devices your application user is already associated with.. you run the following query (taken directly from productive java code):
    private String getDeviceAssociationSqlString(String ctiUser)
    StringBuilder sb = new StringBuilder();
    sb.append("SELECT dev.name FROM device dev INNER JOIN applicationuserdevicemap adm ON adm.fkdevice = dev.pkid AND tkuserassociation = 1 ");
    sb.append("INNER JOIN applicationuser a ON a.pkid = adm.fkapplicationuser AND a.name='" + ctiUser + "'");
    return sb.toString();
    You do an executeSqlQuery with that query and parse the results (the response will look something like
    SEP123SEP124/row>..
    Then you look up all devices, e.g. by sending a query like
    SELECT name FROM device WHERE name LIKE 'SEP%'
    (the where clause is to only include IP phones..the device table also contains gateways, analog ports, etc. and we don't want that.. not that this query includes third party sip phones which doesn't make too much sense.. but it won't cause any problems either.. I know because we run that code on a system with third party sip phones).
    Then you do a delta between the two lists and if the second query yielded more results than the first, you need to associate the application user with that phone. There's no direct way in AXL (there used to be in CCM4 but no longer in CCM5+ because we now use application users.. you could theoretically use end users where you can still use updateUser, however it's not a good idea to mix application and regular users).
    So.. you need to update the SQL database directly.. and run executeSqlUpdate via axl. The query to add phone deviceName to application user ctiUser is:
    private String getAddDeviceAssociationSqlString(String deviceName)
    StringBuilder sb = new StringBuilder();
    sb.append("INSERT INTO applicationuserdevicemap (fkapplicationuser, fkdevice, tkuserassociation) VALUES((SELECT pkid from applicationuser WHERE name = '");
    sb.append(config.ctiUser);
    sb.append("'), (SELECT pkid FROM device WHERE name = '");
    sb.append(deviceName);
    sb.append("'), 1)");
    return sb.toString();
    This also works on CCM6, and most likely on CCM7 (I haven't had any projects with 7 yet but at first glance I haven't spotted any major changes like in between CCM5 and CCM6 (the extension mobility stuff has completely changed between those releases).
    And if you do it manually.. just go to your application user, and have have the device association right there.. press the select more phones button, search for all phones whose name starts with sep, check them all, and submit.

  • I'm facing a problem only for this account that whenever I purchase  a ringtone after few hours it disappears from the sound and it happened with all the ringtones I purchased since 2 days. also  when i visit the store from the same account to downlo

    I'm facing a problem only for this account that whenever I purchase  a ringtone after few hours it disappears from the sound and it happened with all the ringtones I purchased since 2 days. also  when i visit the store from the same account to download the ringtones again i have to buy them again and again . Please try to fix this problem for me and refund my money back.

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    There are lots of other posts on this forum about ringtones. If you want to contact iTunes Support then you can either use the 'report a problem' page : http://reportaproblem.apple.com
    Or you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Can I share my iCloud account with all of my devices

    Can I share my iCloud account with all of my iOS devices

    Yes, but the access of some services is limited to 10 devices.

  • How can i create a new user with only read rights ?

    How can i create a new user with only read rights ?

    You are asking about a Database User I hope.
    You can look into the Oracle 8i Documentation and find various privillages listed.
    In particular, you may find:
    Chapter 27 Privileges, Roles, and Security Policies
    an intresting chapter.
    You may want to do this with the various tools included with 8i - including the
    Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
    Or use SQL*Plus. To create a
    user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
    Create user John identified by Smith;
    Grant CONNECT to John;
    Grant SELECT ANY TABLE to John;
    commit;
    There is much more you can do
    depending on your needs.
    Please read the documentation.
    -John
    null

  • I have an old MacBook Pro, which just upgraded to OS X 10.10.3...in the process iPhoto disappeared, along with all my photos! I'm shocked, and have no idea what to do (furthest thing from a techie). Help??

    I have an old MacBook Pro, which just upgraded to OS X 10.10.3...in the process iPhoto disappeared, along with all my photos! I'm shocked, and have no idea what to do (I'm the furthest thing from tech). Did the photos go into iCloud? I have a photos icon now in the place of iPhoto, but no photos! Any suggestions or help?

    Niel, thank you! Can't get iPhotos, but found my photos after clicking "photos" in the new app, after your suggestion. (option, click). Whew! I panicked, and appreciate your help. I'm going to miss my old iPhoto!

  • HT1178 Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive

    Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive. If so what software do I need to buy?

    Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive.
    Yes, on XP, Vista and 7. Have not tried 8.
    If so what software do I need to buy?
    Genie Timeline Pro does a very nice job...and it is similar to Apple's Time Machine.  It's not cheap though.  Check with the Genie folks for more info and compatibility with Windows 8.
    Genie Timeline Pro | Overview | Time Machine Backup Software for ...
    Other users may have some other suggestions.

  • Can there be a parallel user with exact same privilages as weblogic in 11g

    Hi Gurus
    Can there exist a parallel user having all capabilities that web logic user has.
    Thanks

    Yes, you can have as many as you want. Login as web logic, and go to roles and groups tab under my account, which is located on the top hand right corner of the analytics. Get the list of application roles, the web logic account has, and assign any number of users to the same set of roles, to get same privileges as web logic.
    Regards,
    -Amith.

  • Where get the Version trials Business Object with all your components?

    How get the version trial the Business Object Enterprise XI 3.1 or the ultimate version, I need with all components for example: Business View manage, Desinger, Central cofiguration manager, Desktop Web Intelligence, Universe Builder, etc.

    You need to login to SAP Service Market Place (SMP) and visit the download section i.e https://service.sap.com/swdc
    Once there you need to navigate to Installations and Upgrades > SAP BusinessObjects portfolio  > SAP BusinessObjects Business Intelligence platform (SBOP Enterprise) > BOBJ ENTERPRISE XI 3.1 > Installation > Choose OS platform > SBOP ENTER SERVER XI 3.1 SP3 WINDOWS > Download all three parts.
    Similarly, you can obtain temp license key from https://service.sap.com/licensekey
    Thanks

  • IP5 set up with all options...however new emails  OLD like 13-14 years old have arrived in the IN BOX that say no "this message has no content", and I am not able to delete them. Any helpful ideas?

    IP5 set up with all options...however new emails  OLD like 13-14 years old have arrived in the IN BOX that say no "this message has no content", and I am not able to delete them. Any helpful ideas?

    Hi 23672!
    I have an article here that can definitely help you with that issue. The article is about what to do when a mail message has no content, and can be found here:
    iOS 4: Unable to view message body preview or mail receives blank messages
    http://support.apple.com/kb/ts3426
    Note that the article was written for iOS 4, but it will work in later iOS versions. Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • I have model series KX TG7641 /w 5 phones.... My questions:  1. Can the directory of phone numbers with in my iPhone be transferred to the Panasonic and retain the individual number designations; i.e., "home-moblie-work-etc"?  2. Can I use the manual sele

    I have model series KX TG7641 /w 5 phones....
    My questions:
    1. Can the directory of phone numbers with in my iPhone be transferred to the Panasonic and retain the individual number designations; i.e., "home-moblie-work-etc"?
    2. Can I use the manual select on the Panasonic to selectively transfer numbers from my iPhone?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Has any of this been tried?
    FYI, there are no viruses that affect iOS unless the device has been hacked or jailbroken, in which case they cannot be discussed here.

Maybe you are looking for

  • "Mirror Display Button" like the original MacBook Pro?

    ok long story short, my friend has one of the old 17" macbook pros and the screen died. We hooked up an external display, but had some problems getting it to work at first. (we could get a picture, but it was in extend mode, so the mac desktop was on

  • Why does the sleep/wake button replacement program in Thailand take longer time?

    It's already 2 weeks but the repair is not yet done.

  • F-58 Multiple invoices

    Hi guys. I am using f-58 and clearing just one invoice, but there are several open items under the same vendor. Inv 1 - 60$ Inv2 - 120$ Inv - 100$ I just want to pay Inv 1 with 60$. but when I am trying to post the payment, it says the difference is

  • Work flow SBWP Several Invoice

    Hi Gurus, can anyone help on how to group into one the several work items (executable documents-scanned invoice) for processing in FB60? The case was there are several pages of the invoice and have to be scanned in four parts creating 4 work items. 

  • Captivate to create web site?

    I'm considering using Captivate to create a web site. Has anyone done this with success? If so, I'd love to hear about any learnings or caveats you may have. Thanks.