Command line creating of users fails to correctly set afp:// based home dir

i'm using a script to make users. they come and go quite a lot, don't want to be using a mouse all day long.
i thought it would be simple. dscl /LDAPv3/127.0.0.1 -create /Users/user1 NFSHomeDirectory /network/servers/some.server.here/path
with some other part of the script creating the home directory and setting it up for use.
this only gets me a nfs based home directory, which doesn't seem to work. when i make them in WGM, i get an afp based one. (afp://some.server.here/group1/user1)
what's the trick? how can i create an OD entry with dscl which results in the same outcome as using WGM?

using this script now. seems to work:
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER"
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" UserShell /bin/bash
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" RealName "$sinaFIRST $sinaSECOND"
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" UniqueID "$userID"
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" PrimaryGroupID "$mainG"
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" NFSHomeDirectory /Network/Servers/my.server.com/Volumes/promise/"$homeF"/"$sinaUSER"
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" HomeDirectory "<home_dir><url>afp://my.server.com/$homeF</url><path>$sinaUSER</path></home_di r>"
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" homeDirectory /Network/Servers/my.server.com/Volumes/promise/"$homeF"/"$sinaUSER"
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" apple-user-homeurl "<home_dir><url>afp://my.server.com/$homeF/</url><path>$sinaUSER</path></home_d ir>"
echo -n "GID2, "
[ "$secG" != "none" ] && dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -append /Groups/"$secG" GroupMembership "$sinaUSER"
echo -n "pass, "
dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -passwd /Users/"$sinaUSER" "$sinaPASS"
echo -n "quota, "
[ "$Uquota" != "none" ] && dscl -u diradmin -P $dirpass /LDAPv3/127.0.0.1 -create /Users/"$sinaUSER" HomeDirectoryQuota "$Uquota"
# create home directory
echo -n "Creating: home Dir: "
/usr/sbin/createhomedir -n /LDAPv3/127.0.0.1 -u "$sinaUSER"

Similar Messages

  • Folder created in Windows Explorer not visible in Command Line as SYSTEM user

    Hello everyone,
    We have an odd behavior with an application installation, which I cannot make much sense of.
    We are trying to deploy an application on Windows 8.1 Enterprise x64 which tries to access
    C:\windows\system32\config\systemprofile\Desktop during installation.
    This folder does not exist by default in a Windows 8.1 installation. Hence we am creating this folder using a VBS script manually. The VBS script also launches the application EXE. The setup itself runs under the SYSTEM account (in order to be deployed using
    SCCM).
    When the install script is launched, we can see in the Windows Explorer that the "Desktop" folder is created in the systemprofile directory. However, to the setup running under the system account, this folder is not visible.
    I have verified this by running a command line prompt under the SYSTEM user and navigating to
    C:\windows\system32\config\systemprofile\. Using the "dir" command does not show you a "Desktop" folder under the EXACT same path.
    When we create the Desktop folder from this command prompt, the application installs just fine.
    What are we missing? Any inputs are highly appreciated.

    Hi,
    Might this need to quit the command prompt after the folder creation, then reload it to continue the installation of the software?
    Best regards
    Michael Shao
    TechNet Community Support

  • How to login in command line by adding user/password in the same line

    is it possible in OSX to login in terminal by typing:
    +login username password+
    I tried many unix command and never find a command that can do that in one line, it always ask for the password in the second line.
    I need that to be used in Python application,
    or if there any possibility to write code in python to do that in OSX using python osx modules,
    while in windows it worked perfect by using win32API in Python.
    I hope Apple developers can help me with That
    Thanks

    This isn't possible because it would be a terrible security vulnerability--any process on the system can see a program's command line arguments. (Just type "perl -e 'sleep 5' & ps" in a terminal if you don't believe me.) If you want to log in like this, you'll have to open the "login" program in such a way that you can give it the password through its standard input.
    Also note, however, that "login" will not change the account your Python program is running as; it just starts a shell running as that account. If you want your program to run as a different user, you need to look into a set of commands and techniques called "setuid" or just "suid"; a Google search for "setuid python" should get you started. (I'm not a Python programmer, so I can't really tell you exactly how setuid works in Python.)

  • Command line for end users

    Hy guys, in order to run the command line below:
    C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTEXEC.EXE /F
    "G:\SHAREDFOLDER\PIPPO.DTSX"
    Does the user need to have BIDS installed in the local machine?
    My goal is to allow end user to run packages saved in the network shared folders.
    Many Thanks

    Hi DIEGOCTN,
    The SQL Server Data Tools option installs the Integration Services components required to design a package, but the Integration Services service is not installed and you cannot run packages outside of Business Intelligence Development Studio. If we just
    want to run packages outside the design environment, we needn’t install Business Intelligence Development Studio, but we must select Integration Services on the Feature Selection page to install Integration Services.
    The following two articles for your references:
    http://msdn.microsoft.com/en-us/library/ms143731.aspx
    http://stackoverflow.com/questions/14551255/how-do-i-enable-integration-services-ssis-in-sql-server-2008
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Command Lines in the User Edition, Discovere 4i

    Dear All,
    I am searching for an answer regarding the chance to use the batch command line in the Discoverer 4i user edition to export an xls file with the pivot format.
    It is not possible to do this in the previous version, but it's possible in the 4i version choosing the xls pivot format while exporting the report interactively.
    So we are looking for a specific parameter to be used in the command line.
    Thank you for your help,
    Carola Buora

    Hi Carola,
    May I suggest reposting this question to the Dicoverer forum
    http://forums.oracle.com/forums/forum.jsp?id=422740
    Your chances for getting the right set of answers are probably much better there. Hope this helps.
    Cheers,
    -lars

  • Command Line Cmds for User Management

    Is there a command line command that will simply display the user groups that a user belongs to?
    Is there a command line command that will simply add a supplied group name to the list of groups a user belongs to?
    Finally, is there a command line command that will list all the defined groups in the system?
    Thanks!

    mac57 wrote:Is there a command line command that will simply display the user groups that a user belongs to?
    # groups <user>
    Is there a command line command that will simply add a supplied group name to the list of groups a user belongs to?
    # gpasswd -a <user> <group>
    Finally, is there a command line command that will list all the defined groups in the system?
    Take a look at the first field of each line /etc/group file. There's probably a simpler way to do it, but:
    # awk -F ":" '{print $1;}' </etc/group | sort
    Hope that helps!

  • What are the advantages/disadvantages of using the Form Command over Creating a User Form in VBA?

    I’m in the early stages of creating a spreadsheet that will require data entry into the worksheet. The worksheet could get to 1000s of rows, depending on the particular user.
    When I refer to the ‘Form Command’ I’m referring to the option of adding a Quick Access Tool bar button by selecting ‘more commands’, ‘all commands’, ‘Form…’
    My questions/concerns would be relating to ‘should I develop this spreadsheet with the Form Command or a User Form in VBA?
    Concerns/Questions:
    Deployment to other users
    Protecting worksheet cells so the user can only add records using the form command or the user form in vba. In other words, don’t allow users to edit cells that are not within the table structure of the sheet or add rows if they’re not using the form
    Data validation when entering data…
    Keith
    Keith Aul

    Hi,
    Both variants have pro's and cons. If you plan to use VBA you have to consider the deployment settings on other p.c.'s where you have to allow macro's where as a regular form doesn't have the need for that.
    That said the userform gives you much more control because the form command is not saved. it is simply a temporary form which you have to setup every time. It's perfect for data entry. If you are looking for data validation the userform is the one to go
    for. You also have the possibility to work on placements of the data entry.
    So if you are looking for speed and simplicity then go for the form command. If it is handling control you are after I'd go for a userform.
    Just my 2 cts
    Maurice
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. Thank You

  • Import biar file with command line

    Hi
    I am trying to import biar file with command line on unix environment with BOXI R3.1 and Oracle DB
    The biar file include one universe and it's connection (eFashion), one report and one user
    when I run the command line:
    java -jar /BO/boxi/bobje/java/lib/biarengine.jar /BO/boxi/test.properties
    I recive the following error:
    Failed to commit objects to server : Undefined Info Store error
    An error occurred at the server during security batch commit:
    Request 6 of type 36 failed with server error : Object not found (1433)
    Request 11 of type 36 failed with server error : Object not found (1433)
    Request 20 of type 38 failed with server error : Object not found (1433)
    Request 26 of type 38 failed with server error : Object not found (1433)
    Do you have any idea , what is the problem?
    Thank you

    Hi Denis
    I found out after I create a biar file ,with only the user, through a command line. that the user did import since it was in a concurrent connectiontype , a type that not exit in the target environment.
    But after I fix this in the source environment and saw that a biar file with only the user is loaded , I recreate the biar file with all the objects as before (user, universe, report , folder) and I still got the same error message as before.
    So now I try to create the biar file with all those object through the command line. and I get a new errer message "Required dependencies not found on target system : '[AZK_.9sbf_lMgdQRpsbZfVw]"
    I check it , and understand that the object is the report , but I do not see what missing..... : (
    Those are the quries in the properties file:
    exportQuery= SELECT * FROM CI_APPOBJECTS where si_kind = 'Universe' and si_name='eFashion'
    exportQuery= SELECT  * FROM CI_APPOBJECTS WHERE SI_ID in ( 894,926)
    exportQuery= SELECT * from CI_SYSTEMOBJECTS WHERE SI_KIND = 'user' and SI_Name='repadmin'
    exportQuery= SELECT * FROM CI_INFOOBJECTS WHERE si_kind= 'Folder' and SI_name = 'test'
    exportQuery= SELECT * FROM CI_INFOOBJECTS WHERE      SI_ID IN (2188)
    Can you tell what is missing?

  • Method to restart Oracle Apps 11i OPP via Unix command line

    Hi All,
    Does any one knows if there any way to restart Oracle Apps 11i Output Post Processor (OPP) via the UNIX command line?
    Thanks

    Oracle-User wrote:
    Do you recommend that I set the profile option Concurrent: OPP Response Timeout to a higher value instead of increasing OPP Processes from 1 to 2? Yes.
    I'm thinking that increasing OPP Response Timeout to a higher value will not solve our issue as it seems that once we get our first OPP Timeout error, all of the requests that need the OPP fail. We've had this occur on a Saturday, which is a day where the volume of jobs that need the OPP is very low. The error you are getting is related to the timeout and it has nothing to do with the number of OPP processes you are running on. Please set this profile option and check then (after you bounce the OPP).
    Thanks,
    Hussein

  • Testing Java Concurrent Program on the command line in Windows

    I'm using the suggestions in:
    http://blogs.oracle.com/xmlpublisher/2007/05/02
    to test my Java concurrent program on the command line. Our production environment is running on Unix. I've been able to test it successfully on the Unix environment from the command line. However, it fails when I try to test it on the Windows command line with the following stack trace:
    Exception in static block of jtf.cache.CacheManager. Stack trace is: oracle.apps
    .jtf.base.resources.FrameworkException: IAS Cache initialization failed
    at oracle.apps.jtf.cache.IASCacheProvider.init(IASCacheProvider.java:225
    at oracle.apps.jtf.cache.CacheManager.activateCache(CacheManager.java:14
    44)
    at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:752)
    at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
    at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
    at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
    at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
    at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
    at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
    at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
    at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileSto
    re.java:498)
    at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileS
    tore.java:119)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContex
    t.java:4312)
    at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:
    1171)
    at oracle.apps.fnd.common.Context.setProfileStore(Context.java:970)
    at oracle.apps.fnd.common.Context.setProfileStore(Context.java:952)
    at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
    :958)
    at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
    :918)
    at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:752)
    at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
    at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: null
    null
    CacheDefaultConfig.properties (The system cannot find the file specified)
    at oracle.apps.jtf.base.resources.FrameworkException.convertException(Fr
    ameworkException.java:607)
    at oracle.apps.jtf.base.resources.FrameworkException.addException(Framew
    orkException.java:585)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:66)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:88)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:202)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:218)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:249)
    ... 26 more
    Exception in thread "main" oracle.adf.mds.exception.MDSRuntimeException: Cache n
    ot initialized
    at oracle.apps.fnd.framework.mds.cache.ATGCacheMgrDelegateImpl.<init>(AT
    GCacheMgrDelegateImpl.java:325)
    at oracle.apps.fnd.framework.mds.cache.ATGCacheFactoryImpl.<init>(ATGCac
    heFactoryImpl.java:44)
    at oracle.apps.fnd.cp.request.CpContext.getMDSContext(CpContext.java:116
    9)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:130)
    I've put the appsborg2.zip file in my classpath. I've also copied the entire (1 GB) worth of Java .class files for Oracle apps onto my computer and placed it on my classpath. Is there something that prevents me from testing out my Java concurrent program on my Windows machine from the command line?

    i think if u run the ap in the command line then it has to stay open, you could try writing a .bat file then when that is executed it will only open the command line for the program execution (i think)

  • Can I use the Command Line Interface on Unix?

    Hi,
    We use 9iAS on Unix. We want to use Discoverer Command Line Interface on unix to export the worksheet query result. Can anyone know how to do this? I couldn't find out the command similar to dis5usr.exe for windows version.
    Thanks.
    Richard Qiu

    Hello Richard
    You can use the Discoverer EUL Command Line for Java utility. This was released with Discoverer 10g (9.0.4).
    Please refer to the documentation for more information on how to use this command line interface: 'Oracle Discoverer EUL Command Line for Java User's Guide 10g (9.0.4), Part No. B10274_01 (PDF)' The document is available from OTN at http://otn.oracle.com/documentation/discoverer.html
    Regards
    Discoverer Product Management

  • What is command line in smartform?

    Hi
    Can anybody tell me what is command line in smartform?
    <MOVED TO CORRECT FORUM BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jun 20, 2008 8:43 AM

    A command node is a special type of node in smartforms which can be used to trigger page-breaks etc:
    http://help.sap.com/saphelp_nw04/helpdata/en/70/e17a37dec511d3b575006094192fe3/content.htm
    Regards,
    Ravi

  • Command Line Arguments Return/Echo

    I am calling a standalone LabVIEW 7.0 based application from the command line passing in user arguments.  This works fine.  However, I would like to output status/strings back to the same command line window that the application was run from.  The best I could do was calling a batch file containing 'Echo' commands from 'System Exec' inside the app but this outputs the data in a new command line window, not the same as the one used to run the app.  Anyone know how to do this?
    This post is the same issue but there was no resolution:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=200786&requireLogin=False
    Thanks,
    Steffan 

    This article Knowledge Base 2C7F28O9: Error 2 (Memory Full) When Using the System Exec VI is the closest I know of that may do what you are looking for. If this or any of its related links do not help than I do not believe that it is possible.
    Vince M
    Applications Engineer

  • How do SQR command line arguments work?

    Hello,
    I am using sqrw version 8.52.  I would like to run SQR's for testing purposes from the command line with no user intervention.  I found documentation that says I can do something like this:
    "C:\Program Files (x86)\PT85206\bin\sqr\ora\BINW\sqrw" nint268.sqr USERNAME/PASSWORD@DATABASE PARAM1 PARAM2 PARAM3 "-zifC:\users\kramej3\pssqr.ini" "-iC:\Program Files\PT85206\bin\sqr\;C:\temp\sqr_run\;"
    ...where PARAMx is a parameter that is passed to the INPUT statements in the SQR (first PARAM to first INPUT, second to second, etc.)  Unfortunately, it doesn't seem to want to work this way - the parameters are not passed to the program.  Am I doing this right?
    Alternately: is there a version of sqrw that runs as a console application and does not spawn another window to do so?  If I could have sqrw run as a console application, I could get around the parameter requirement by spawning sqrw.exe via a Python script and then attaching to the stdin and stdout file handles.
    Thanks!
    -JK

    See peoplebooks on this subject.
    I believe it is flags before arguments
    PeopleTools 8.52: SQR for PeopleSoft Developers
    Home > PeopleBooks > PeopleTools 8.52: SQR for PeopleSoft Developers > Using the SQR Command Line

  • How to create Repadmin user manually

    Hi
    Database creating through dbca automatically creats repadmin user
    Replication administrator user..
    how to create it if database is manually created.
    Thanks for any sugesstion.

    What is your oracle version ?
    Here is command to create repadmin user
    CREATE USER repadmin IDENTIFIED BY repadmin;
    GRANT CONNECT,RESOURCE TO repadmin;
    Authorise the Replication Administrator to administer replication groups and schemas.
    BEGIN
    DBMS_REPCAT_ADMIN.GRANT_ADMIN_ANY_SCHEMA (
    username => 'repadmin');
    END;
    For More details Check => Oracle Replication Survival Guide

Maybe you are looking for

  • Multiple Choice

    Can someone help me please to giving answers the following? Will be awarded full points. ABAP CERTIFICATION QUESTIONS 1. What is the fastest way to move one internal table to another internal table (assuming two tables of similar structure)? a) Appen

  • Which X Series Model Has the Best Performance?

    I am looking for the best performing computer in the X series. Which model should I buy, if that is my criteria? Thanks! Richard

  • Starting essbase as background process in 11.1.2

    Hi, We have installed 11.1.2 hyperion products. We are having issues with OPMN and its starting up.Without opmn we can start essbase in freground ..using the script startEssbase,bat file in D:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\

  • J2EE question.. ftp in a session bean

    Hi guys, pretty new to j2ee. I need to make a system that retrieves some files using ftp and manipulate teh files and return to a servlet the link to file (which will live on a webserver). I read that java.io package should not be used with ejb's. th

  • Backup keeps crashing with Snow Leopard

    Anyone still using Backup, the Apple program, to still back up certain smaller files to iDisk? I was until I upgraded to Snow Leopard, and now all of a sudden Backup just crashes every time I try to use it. I use TIme Machine and that's great for loc