Home directory for my documents

Hello,
I am writing an international program which reads in files placed under the "My Documents" directory of the users home directory.
I can get access to the homedirectory using System.getProperty("user.home"). But depending on the language, the "My Documents" is having a different name.
Is there a property that gives direct access to this directory?
KR,
Jan

Hello,
I suppose it is too late for helping nnv14vv but can help others.
* Constructs a <code>JFileChooser</code> pointing to the user's
* default directory. This default depends on the operating system.
* It is typically the "My Documents" folder on Windows, and the
* user's home directory on Unix.
public JFileChooser() {
this((File) null, (FileSystemView) null);
So you can get "My Documents" path using:
new JFileChooser().getCurrentDirectory();
I am sure that must be another way to get it without using JFileChooser() but haven't found it.
KoKo

Similar Messages

  • Home Directory for AD on remote machine

    Hi,
    Requirement is like this:-
    As user is provisioned to AD a home directory for user is created on remote computer with name of user. I had wrriten a VB script to create a folder in users folder(folder already shared) on remote machine. I am able to sucessfully create the folder when i run script through command prompt. Now i write a java code to run the script with following command in java code.
    Process process = Runtime.getRuntime().exec("cmd /c cscript d:/users "+userid + " " + action);
    I am able to run the java code from eclispe and folder is created in users folder on remote machine.
    Now i had added a process task in AD process form and attached the adapter in which this java code is executed to run the script and i called this on response code (sucessfully provisioned) of AD .now when i provisoned user to AD process is called but error is their as cmd is not a command on linux... how can i run the script on linux.
    2) If folder users folder is not shared i have to give permissions on folder to particular user with userid and password to create its home directory in it how can i achieve this using vbscript??

    I assume you are creating folders in a file server and its a windows machine , is it ?
    You can install a remote manager on file server or on any other machine in network and execute your scripts remotely using remote manager
    Also you can execute your script like wscript c:\CreateFolder.vbs
    Thanks
    Suren
    Edited by: Suren.Singh on Aug 10, 2010 3:20 PM

  • SAP NetWeaver04 installation error with home directory for sidadm

    Hi,
    I am installing NetWeaver04 on Windows 2003 and getting following error.
    Unable to determine property "home directory" for account sidadm.Access Denied
    Please help
    Thanks
    Santosh

    Hi Oliever,
    I did spent half day to sort out the issue. I have searched forums,google and notes but couldnt find the answer for Windows/SQL2005.
    This morning I have finally solved the issue
    I tried to do domain installation as local administrator but I didnt have access to sidadm profiles. When domain admin given me the access to sidadm profiles it worked.
    Thanks anyway mate
    regards,
    Santosh

  • Single Student home directory for Multiple users

    Hi all,
    I'm currently working in an education environment and we have 4x labs of mac's. Currently, when students log in, their login info/permissions are pulled from AD and OD. When they login for the first time, it creates a local home directory with their username, so when they login subsequent times they still get all their saved movies, music and pictures. Nothing special.
    We are aiming to change over to a new system in which the students login with thier username/pass, but they all use the same local home directory called 'student' (which will actually be refreshing with the default-homedir-refresh script by Bombich). To compliment this, as they will not be able to use thier movies folder, we will have a seperate partition on the computer in which they save all thier work. Idealy, we would like the files that one user saves not to be accessable (deleted) by another student, but i'm not sure if this is possible even though they have logged in using different username/passwords, as they are all using the same directory. To add to this, the users will also have thier network space mounted on login (as its on a novell server, currently we mount it by specifying the address in WGM under preferences->login items, with Mount item with user's name and password checked).
    My questions are
    1) how do we get the students to use the single 'student' home directory?
    2) If we have a separate partition set up for them, will the files they create have the permissions assigned to the individual users or will they all be able to access each others file as they will use the single 'student' home directory.
    3) Will our method of mounting their Novell drive still work with the new system?

    I can't help asking: Why?
    Might help if we knew exactly what sort of issues you are trying to avoid, since you're moving away from what appears to be a perfectly functional setup

  • Can't change home directory for standard users (admin is OK)

    I'm can't relocate home directories for standard users.  Relocating works fine for admin users.
    When a standard user logs in, they get a message (paraphased) saying "the home directory is not available.  If it is located on a server, the server might not be online".  If I change the standard user to admin, this message goes away, and everything is fine.
    I created a standard user
    moved the home directory using the terminal as root: mv UserName  /otherlocation/UserName
    I then went into users and groups, other options and changed the home directory location.
    Rebooted, then tried to log in as the standard users.
    Next try - Deleted the standard user and created the same user with admin rights.  Followed the above steps and everything works fine.
    I don't want this user to have admin rights on my system.  Any ideas

    Hi,
    the AFP is has always been switched on. As for the path I believe this to be correct. The path I am using is:
    afp://musicserver/Users
    I'm not at the server right now so I mat have got the afp and : and / in the wrong order here but they are correct on the server.
    This however does not seem to put the a folder in the Users folder. Could it be something to do with my external hard drive? I am using a Mac Mini as our server (not ideal but fine for us, or at least was) this is booted from our external hard drive. This is the main system drive which is where the Users data is also stored. I have tried all possible paths I can thing of from replacing the 'musicserver' with the IP address. I have also tried adding the name of the drive to the path (System) but all does not work.
    Are you able to suggest anything I have missed? Perhaps I'm doing the path wrong?
    Thanks again
    Chris

  • NSS 324 - set different home directory for FTP

    Hi
    DOes anyone know - is it possible that when user logs in via FTP, their home directory is not root that can see all fileshares, but a different created share?
    I.e if i create a share called /tftpboot, when user logs in via FTP, they get  sent to that share and thing that this share is root, so they cant see any other shares.
    THanks
    Arkadiy

    Hi,
    Depending on what firmware the NSS is running. You need to make sure you have different groups for different users.Assign the user to groups you want to allow access to certain shares. Then you want to assign the group you created to the share and give it proper access. Make sure the users are assigned to that group. You want to uncheck Group (everyone). Also under the user (private network share) make sure the user has access to that share.
    If you would like help setting group and user access please call 1-866-606-1866 and open a case.
    Jason Bryant
    Cisco Support Engineer.

  • Help please..how to specify Oracle Home directory for create AS connection

    I have linux based application server 10g having IP 121.100.115.2 and name as10g.ourdomain.com (/home/oracle/OraHome_2 is AS directory)
    I have developed a simple jsp page using JDeveloper10g. In order to deploy this project, I am trying to create Application Server Connection using wizard.
    step1:
    connection name: as10g
    connection type:oracle application server 10g
    step2:
    user name: ias_admin
    password: mypassord
    step3:
    enterprise manager OC4J host name: 121.100.115.2
    enterprise manager OC4J http port: 1156
    Remote Server's Oracle home directory: /oracle/OraHome_2
    step4
    RMI Server URL: ormi://121.100.115.2:23791
    RMI username: admin
    RMI password: {blank}
    step5
    When I click on test button I get this error:
    Test failed (-2). Invalid Oracle Home directory

    When you create the stand alone, in options you can actually set the temp directory and default directory. You can change it there OR in goto options and check for libraries/directories. You can change it there too.
    Kudos always welcome for helpful posts

  • Define a remote linux nfs home directory for an open directory's user

    Hi,
    I want to migrate from nis to open directory. Everything but "auto homes" looks good. As I create a user with the workgroup manager, under the 'Home' tab, I'm unable to specify a remotre nfs home directory(linux).
    So, I want client01(linux) to authenticate on macsvr01(mac osX 10.6.2 / opendirectory). When authenticated, I want macsvr01 to tell client01 that it's home directory is hosted nfs on linuxsvr01(linux nfs file server).
    When i look the workgroup manager, the only possibility seems to be 'afp'.
    When I try to specificy nfs entries, I can't validate my setting because the 'Ok' button remains grayed out.
    Any suggestions?
    Thank you,
    Luc

    I assume you are creating folders in a file server and its a windows machine , is it ?
    You can install a remote manager on file server or on any other machine in network and execute your scripts remotely using remote manager
    Also you can execute your script like wscript c:\CreateFolder.vbs
    Thanks
    Suren
    Edited by: Suren.Singh on Aug 10, 2010 3:20 PM

  • Unable to create the portable home directory for this user

    This is driving me nuts!
    I have a network user who I can login to on any machine on the network. I want a PHD to be created on a laptop and eveytime I answer 'yes' to 'create PHD for this user' I get the "unable to create the PHD for this user" message.
    What am I doing wrong?

    I fixed this by unbinding the laptop from the od server as I had used this user previously for PHD's on this machine. Setting up the machine to bind to OD again and all is well.

  • How can i create automatic home directory for ldap users

    HI
    i have successfully bineded solaris 10 with AD . now AD users can able to login to solaris box but the thing is ia m getting error like homedirectory is missing..
    i tried with auto_master with some script and it's not executing while logging .
    Regards,
    Ben

    Hello,
    I am not sure how I wound-up in the server forum. I am using the desktop version of OS X 10.7.4.
    Thanks

  • Mobile Home Directory: Setting a relative location for various sub-nets

    Question Summary:
    1) Is it possible to define a home directory for mobile account users that is relative to the host's subnet?
    2) How does one accomplish #1 if possible?
    Details
    Setup
    Users access hosts on three LAN networks connected through the WAN via Branch-Office VPN connections (persistant VPN tunnels that connect our LANs)
    If User1 from LAN1 travels to LAN2, User1 has difficulty working, because the mobile account definition points to a host on LAN1 for HomeDirectory syncing, so all files are synced across a slow (5Mb/s) connection shared by all other users.  For some users (The CEO, for example), this sync entails transferring Gigs of personal data, so the Mobile Sync across the VPN literally takes several days, if it completes at all.
    My ideal setup would allow User1 from LAN1 to access a host at a relative location as apposed to an absolute location.  In other words, if LAN1 has the home folder at 192.168.76.23:/HomeFolders/User1, then when User1 moves to LAN2, the HomeFolder becomes 192.168.78.23:/HomeFolders/User1. Regardless the subnet, the User account would be defined in such a way that the HomeFolder would be sought at 192.168.X.23:/HomeFolders/shortUserId
    These home folders between the hosts 192.168.76.23 and 192.168.78.23 on LAN1 and LAN2, respectively, could be kept in sync during off hours so that at the beginning of each shift, all files are in all three locations ready for local use, fast access, and more importantly, fast home-syncing during the work day.
    Equipment
    OS X Yosemite running on various iMac and MacBook hardware configurations.
    OS X Server 4 running OD replicas and local DNS's on each LAN.
    Ample space for redundant data storage on all networks.
    Question
    How do I define a HomeDirectory as a relative location to the Mobile Account Users host machine or host machine IP address?
    Alternatively, is there a way that I can define a HomeDirectory using a Fully Qualified Domain Name so that I can use the local DNS server to force the redirect?
    Previously Tried Idea(s)
    Using the same Bonjour Computer Name
    On one test, I tried to trick the system by setting the name of the HomeDirectory computer to the same name on all networks. The thought behind this is that, when looking at the HomeDirectory path, the address is defined by the computer name, so if the local computer name matches, the system will automatically point to the host that is on the current LAN, as apposed to the host of the same name on the previous LAN.
    This failed due to the fact that the system providing the HomeDirectory storage is the same system that is providing OD replica services, and OD replication requires that each system have a unique name.

    Hi,
    Yes my home directory is set
    more /etc/passwd
    sfsys1d:x:301:201:sys1 dev sftp user:/interfaces/dev/system1:/usr/bin/csh
    when i log in they go to this directory, through a shell and through ftp ( haven't checked sftp yet)
    However i can still go up directories and see what is in the directories above
    the permissions are set as below
    drwx------   3 root
    sshusers  
    3 Sep  6 08:38 interfaces
    drwx--x---   3 root
    sshusers  
    3 Sep  6 15:49 dev
    drwxr-----   5 sfsys1d sshusers  
    7 Sep 19 14:52 system1
    I have tried various other permission 700, 710, 740 etc and they all give different results but not the correct one.
    The best I have managed to get so far is that they cannot list the files in the other directories, however if they know the names they can still go to them,  this also didn;t work in the windows ftp client, as it just showed the file/dirs anyway.
    Thanks
    Kerry

  • Home directory creation for local user accounts using powershell

    Through Computer Management when I create a user, a home directory is created for the same user in the folder C:\Users.I am creating a user through powershell in a remote machine.I am using the following script to create user 
    $comp = [ADSI]'WinNT://localhost,computer';
    $user = $comp.Create('User', 'account7');
    $user.SetPassword('Welcome1');
    $user.SetInfo();
    The account is getting created. But no home directory is created for this user. How to create a home directory for a user using powershell? Also the user created through GUI is a member of the group 'Users' by default. How to add the user created to the
    'Users'  Group.

    Hi Cmm user,
    Thanks for your posting.
    To set the attribute of homedirectory for a user in powershell, please also try the cmdlet set-aduser:
    import-module activedirectory
    $HomeDrive=’Z:’
    $UserRoot=’\\CONTOSO-FPS\Users$\’
    $HomeDirectory=$UserRoot+$AccountName
    SET-ADUSER $AccountName –HomeDrive $HomeDrive –HomeDirectory $HomeDirectory
    I hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • [RESOLVED] Unable to move dev directory for Apache, keep getting 403

    Hello,
    I'd like to move my default /srv/http directory for my PHP pages to a different location (somewhere in my home directory) for convenience.  This is exclusively for local development.  However, after making the same change in two places, I restarted Apache and keep getting a 403 error.
    Here is my httpd.conf:
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so 'log/access_log'
    # with ServerRoot set to '/www' will be interpreted by the
    # server as '/www/log/access_log', where as '/log/access_log' will be
    # interpreted as '/log/access_log'.
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to point the LockFile directive
    # at a local disk. If you wish to share the same ServerRoot for multiple
    # httpd daemons, you will need to change at least LockFile and PidFile.
    ServerRoot "/etc/httpd"
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    Listen 127.0.0.1:80
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule substitute_module modules/mod_substitute.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule cgid_module modules/mod_cgid.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    # enable PHP.
    LoadModule php5_module modules/libphp5.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User http
    Group http
    </IfModule>
    </IfModule>
    # 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. [email protected]
    ServerAdmin [email protected]
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #ServerName www.example.com:80
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/home/local_user/Documents/development/php"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features.
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/home/local_user/Documents/development/php">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
    </Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "/var/log/httpd/error_log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    <IfModule log_config_module>
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    CustomLog "/var/log/httpd/access_log" common
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #CustomLog "/var/log/httpd/access_log" combined
    </IfModule>
    <IfModule alias_module>
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock /run/httpd/cgisock
    </IfModule>
    # "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    # DefaultType: the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value. If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    <IfModule mime_module>
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    TypesConfig conf/mime.types
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #AddType application/x-gzip .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #AddHandler cgi-script .cgi
    # For type maps (negotiated resources):
    #AddHandler type-map var
    # Filters allow you to process content before it is sent to the client.
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    MIMEMagicFile conf/magic
    </IfModule>
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #MIMEMagicFile conf/magic
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    # MaxRanges: Maximum number of Ranges in a request before
    # returning the entire resource, or one of the special
    # values 'default', 'none' or 'unlimited'.
    # Default setting is to accept 200 Ranges.
    #MaxRanges unlimited
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall is used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    #EnableMMAP off
    #EnableSendfile off
    # Supplemental configuration
    # The configuration files in the conf/extra/ directory can be
    # included to add extra features or to modify the default configuration of
    # the server, or you may simply copy their contents here and change as
    # necessary.
    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    # enable the PHP5 module.
    Include conf/extra/php5_module.conf
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    # Note: The following must must be present to support
    # starting without SSL on platforms with no /dev/random equivalent
    # but a statically compiled-in mod_ssl.
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    Last edited by publicus (2014-02-02 18:06:07)

    WorMzy wrote:
    Switch to the http user and see if you can manually browse to the directory.
    # su -s /bin/bash - http
    Find out where the user can't get to, and fix the permissions.
    You're right.  I can't get there.
    I tried to make Apache start up as me (my user), but got an error that said that it cannot start it up like that.  I think I have a possible solution for the given problem.  I'll my user to the http group and then work from /srv/http.
    I'd love to get some feedback if someone has a different approach .  I love to learn from the experience of others .

  • 10.4.7, No AD home directory

    I can authenticate just fine to my Win2003 Active Directory after binding it. I have everything in the "User Experience" frame checked in the Directory Services configuration with "smb" selected in the UNC setting.
    I can't ever get it to mount my Windows home directory, for some reason. In the Finder if I click Network and browse to the server that has my home directory it lets me mount the share with my home folder in it without a login prompt (i.e. the Kerberos ticket is valid). If I look in NetInfo Manager under my user account it has the smb_home property set correctly as \\server.fqdn\HomeFolders\myloginname.
    I had it working on a slightly older MacBook Pro (which I no longer possess, gave it to another user), and haven't made any changes to policy on the domain since then.
    Any idea what is going wrong?
    iMac   Mac OS X (10.4.7)  

    SMB home directories are an after-thought (and yes, they want an individual share, such as smb://server.domain.org/username$).
    Apple really wants you using AFP.
    I can't use network homes, since we have MS Dfs, and no one wants to pay for ADmitMac or ExtremeZ•IP, so what I've done is write a script that launches via launchAgent that mounts the correct share, then maps the appropriate folders with symlinks (~/Documents is replaced by My Documents, ~/Music is replaced by My Music, etc).
    Its ugly but it works.

  • Imovie '11 change home directory

    iOwn iMove '11.
    My older MacPro was getting slow, so I used a SSD as the boot drive and houses only the applications.
    How can I make my old internal RAID array with lots of space the home directory for iMovie and NOT the internal SSD which does not have sufficient space.
    thank you.
    -andrew
    (MacPro early 2008)
    (16g RAM)
    (latest 10.8.x. software, alwasy updated)

    First, move all your projects and events to the internal Raid. All moves must be done within iMovie.
    See this post for directions.
    https://discussions.apple.com/docs/DOC-4141
    When you import new footage from a Camera, you can set the Raid as the target on the import screen. That will remain the default until you change it.
    For imports from a file, you can choose the drive before you import. Highlight it in the Event Library.
    By the way, if you really want to change your Home Directory for all purposes, see this web page from frequent contributor Pondini.
    http://pondini.org/OSX/SetupOther.html
    I have mine set up this way, with my SSD handling OSX and Apps, and all of my iTunes, Aperture, documents, etc. on the internal hard drive of my iMac. Imovie and FCPX stuff is on a series of external drives.

Maybe you are looking for

  • Front End Patch Schedule

    Hi there, We are in an upgrade project, and for planning purposes are wondering when are planned FEPs for BI 2004s going to be released? I understand that 902 is now out there, but what about the future? I can't find anything on the service marketpla

  • Render and record, export to tape question?

    Hi, I have finished a ten minute HDV project. I now want to export to tape. (HDV Sony V1e) When I hit export - tape then hit the render and record box. This then brings up the Export to HDV (transcoding to HDV) box. The problem I have is that 10 min

  • Removing iFrames from the reports

    Hi Gurus, We have drop down 1)Time Frame having values WTD,MTD,QTD,YTD 2)Measure having values Product,Service,Product & Service We are picking the value from the drop down and using iframes to call those different reports like Product WTD or Product

  • Renew SAP license Key

    Hi All, I am using IDES 4.7/Oracle8i. Within 30 days my license will be expiring.  I need a complete step, how to get license from market place. Give me the details procedure to install new license key.... I wouild appriciate for an early reponse. Th

  • IPhoto continuing to freeze after several rebuilds

    Hello I am using a MacBook Pro OS X v 10.7.5 and I have iPhoto '09. The iPhoto library is 116GB in size and it started freezing a week ago (spinning wheel) when I was uploading videos and photos from my iPhone - the uploads couldn't complete because