FTP User's root directory gets overwritten

When i touch the settings for "Other" in any ftp share, all root directories for ftp users get overwritten so they point to that specific share.
I have to dis- and reenable read and write permissions for the desired share to point the user back to the directory.
Also i had to add /usr/bin/false to /etc/shells to get ftp access to work at all according to this discussion:
https://discussions.apple.com/thread/4341259?start=0&tstart=0
Any idea what causes this misbehaviour and how to fix it?

Which OS X or OS X Server version?
Across the OS X Server versions I can recall using, the setting for the ftp server directory has been system-wide.
Services aren't usually logging in, thus don't have a shell established, so I'm not sure why the shell change was necessary; interactive users should be able to log in via ftp.
In general, sftp is usually preferable to ftp, and for many and varied reasons.

Similar Messages

  • Restrict FTP User to a Directory

    I am using Solaris 10 on SPARC.
    SunOS ddw 5.10 Generic_139555-08 sun4u sparc SUNW,SPARC-Enterprise
    I have put some text files in a directory '/u01/network'
    I want to create a ftp user which can just read the files in the network directory. The ftp user shouldn't be able to navigate or see any other directory outside of the network directory.
    The user ftp_usr is the owner of /u01/network directory.
    Following are settings in /etc/passwd:
    ftp_user:x:3008:1::/u01/network:/usr/bin/ftp-only
    The settings in the /etc/ftpd/ftpaccess:
    allow-retrieve relative class=realusers /u01/network
    restricted-uid ftp_user
    Please advise.

    The problem has resolved. It was a permission issue.
    Please see the details at:
    http://fahdmirza.blogspot.com/2010/11/restrict-ftp-user-to-directory-in.html

  • FinRep 9.3.1: All users getting error opening reports from root directory

    We are having an irritating, although not missiion critical error
    When a user (any user) attempts to open a report from the explorer view in Financial Reporting 9.3.1, we receive an "_Error 1000165"._ No explanation is provided. No folders are openable within the explorer view except "Personal Page."
    It is possible to open reports by opening a report that got accidentally stored in the root directory and then opening another report from the menu system in the usual way. So it is not a user permissions/provisioning issue.
    Is there a fix to this? I am afraid someone will clean out the root directory and then we won't be able to access our reports.
    Update: I can use the pattern "VariancePercent([B(A)],[A(A)])" to cut this to 27 Columns by varying the direct reference to the column. But is there an easier way to do this?
    Edited by: user10868938 on Feb 24, 2009 3:43 PM

    We have been able to complete the update of our users SSID's in our Planning SQL tables through the utility. We had to create the users in Essbase first though.
    However, if I try to log into Planning (through Workspace) I still cannot see the Planning applicaitons I should have access too. In Shared Services if I pull up my network ID and View Report, I do not get any Planning groups to show up that I belong too. I can open the group in HSS and see my ID is in it but when I do the View Report on my ID nothing comes up.
    Additionally, if I add a user from scratch to the existing Planning groups that we've migrated and do the View Report they will show up for that user and the security passes through to Planning/Essbase so that I could log on fine. So, the problem is not with adding new users but the existing one's that were migrated. HSS shows the users in the groups but if you view a Report for those users it doesn't look like you belong to any groups.
    We are going to apply a patch to Shared Services to see if it helps. It's suppose to deal with Groups that have users from multple domains but one set of those users cannot log into the application they should have access too. We applied this in our stand-alone S9 Essbase environment a couple of months ago to deal with a break between our existing users and groups from HSS to Essbase. Maybe this will be the final piece.

  • Ix4-300d FTP Users Root directory

    Hi, 
     I configured FTP and it is working properly over my LAN using my Desktop machines. 
     While configuring my IP Cameras (with Basic FTP client functions) to upload via FTP their snapshots / movies, they can only access to FTP server root directory - which is not writable as it is not mapped to a shared directory.
     My question - Can I change the root directory of my FTP Server (based on Logged-in User, i.e. cctv user) in order to be placed directly into one of my shares which I have dedicated for my IP-Cameras output?  
     I tried to search a lot for such option but couldn't find a way to configure it. I want the cameras to directly access my NAS as an FTP server without having an external machine running an FTP server / which is mapped to my NAS (which is working fine). 
     Thank you and best regards,
      Hassan 

    There is not a way to change the ftp port as it is fixed to port 21. What ftp client are you using? The issue might be because of the client or browser you are using. I would recommend using FileZilla (https://filezilla-project.org/) because this program supports our ftp protocol. If FileZilla still only shows the root directory, you might want to check the settings on your camera or it may not be compatible.
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • How can i get also the files in the root directory and how can i for testing add items of IEnumerable FTPListDetail to List string ?

    What i get is only the directories and files that in other nodes. But i have also files on the root directory and i never
    get them. This is a screenshot of my program after i got the content of my ftp. I'm using treeView to display my ftp content:
    You can see two directories from the root but no files on the root it self. And in my ftp server host i have files in the root direcory.
    This is the method i'm using to get the directory listing:
    public IEnumerable<FTPListDetail> GetDirectoryListing(string rootUri)
    var CurrentRemoteDirectory = rootUri;
    var result = new StringBuilder();
    var request = GetWebRequest(WebRequestMethods.Ftp.ListDirectoryDetails, CurrentRemoteDirectory);
    using (var response = request.GetResponse())
    using (var reader = new StreamReader(response.GetResponseStream()))
    string line = reader.ReadLine();
    while (line != null)
    result.Append(line);
    result.Append("\n");
    line = reader.ReadLine();
    if (string.IsNullOrEmpty(result.ToString()))
    return new List<FTPListDetail>();
    result.Remove(result.ToString().LastIndexOf("\n"), 1);
    var results = result.ToString().Split('\n');
    string regex =
    @"^" + //# Start of line
    @"(?<dir>[\-ld])" + //# File size
    @"(?<permission>[\-rwx]{9})" + //# Whitespace \n
    @"\s+" + //# Whitespace \n
    @"(?<filecode>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<owner>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<group>\w+)" +
    @"\s+" + //# Whitespace \n
    @"(?<size>\d+)" +
    @"\s+" + //# Whitespace \n
    @"(?<month>\w{3})" + //# Month (3 letters) \n
    @"\s+" + //# Whitespace \n
    @"(?<day>\d{1,2})" + //# Day (1 or 2 digits) \n
    @"\s+" + //# Whitespace \n
    @"(?<timeyear>[\d:]{4,5})" + //# Time or year \n
    @"\s+" + //# Whitespace \n
    @"(?<filename>(.*))" + //# Filename \n
    @"$"; //# End of line
    var myresult = new List<FTPListDetail>();
    foreach (var parsed in results)
    var split = new Regex(regex)
    .Match(parsed);
    var dir = split.Groups["dir"].ToString();
    var permission = split.Groups["permission"].ToString();
    var filecode = split.Groups["filecode"].ToString();
    var owner = split.Groups["owner"].ToString();
    var group = split.Groups["group"].ToString();
    var filename = split.Groups["filename"].ToString();
    var size = split.Groups["size"].Length;
    myresult.Add(new FTPListDetail()
    Dir = dir,
    Filecode = filecode,
    Group = group,
    FullPath = CurrentRemoteDirectory + "/" + filename,
    Name = filename,
    Owner = owner,
    Permission = permission,
    return myresult;
    And then this method to loop over and listing :
    private int total_dirs;
    private int searched_until_now_dirs;
    private int max_percentage;
    private TreeNode directories_real_time;
    private string SummaryText;
    private TreeNode CreateDirectoryNode(string path, string name , int recursive_levl )
    var directoryNode = new TreeNode(name);
    var directoryListing = GetDirectoryListing(path);
    var directories = directoryListing.Where(d => d.IsDirectory);
    var files = directoryListing.Where(d => !d.IsDirectory);
    total_dirs += directories.Count<FTPListDetail>();
    searched_until_now_dirs++;
    int percentage = 0;
    foreach (var dir in directories)
    directoryNode.Nodes.Add(CreateDirectoryNode(dir.FullPath, dir.Name, recursive_levl+1));
    if (recursive_levl == 1)
    TreeNode temp_tn = (TreeNode)directoryNode.Clone();
    this.BeginInvoke(new MethodInvoker( delegate
    UpdateList(temp_tn);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    percentage = (searched_until_now_dirs * 100) / total_dirs;
    if (percentage > max_percentage)
    SummaryText = String.Format("Searched dirs {0} / Total dirs {1}", searched_until_now_dirs, total_dirs);
    max_percentage = percentage;
    backgroundWorker1.ReportProgress(percentage, SummaryText);
    foreach (var file in files)
    TreeNode file_tree_node = new TreeNode(file.Name);
    file_tree_node.Tag = "file" ;
    directoryNode.Nodes.Add(file_tree_node);
    numberOfFiles.Add(file.FullPath);
    return directoryNode;
    Then updating the treeView:
    DateTime last_update;
    private void UpdateList(TreeNode tn_rt)
    TimeSpan ts = DateTime.Now - last_update;
    if (ts.TotalMilliseconds > 200)
    last_update = DateTime.Now;
    treeViewMS1.BeginUpdate();
    treeViewMS1.Nodes.Clear();
    treeViewMS1.Nodes.Add(tn_rt);
    ExpandToLevel(treeViewMS1.Nodes, 1);
    treeViewMS1.EndUpdate();
    And inside a backgroundworker do work how i'm using it:
    var root = Convert.ToString(e.Argument);
    var dirNode = CreateDirectoryNode(root, "root", 1);
    e.Result = dirNode;
    And last the FTPListDetail class:
    public class FTPListDetail
    public bool IsDirectory
    get
    return !string.IsNullOrWhiteSpace(Dir) && Dir.ToLower().Equals("d");
    internal string Dir { get; set; }
    public string Permission { get; set; }
    public string Filecode { get; set; }
    public string Owner { get; set; }
    public string Group { get; set; }
    public string Name { get; set; }
    public string FullPath { get; set; }
    Now the main problem is that when i list the files and directories and display them in the treeView it dosen't get/display
    the files in the root directory. Only in the sub nodes.
    I will see the files inside hello and stats but i need also to see the files in the root directory.
    1. How can i get and list/display the files of the root directory ?
    2. For the test i tried to add to a List<string> the items in var files to see if i get the root files at all.
       This is what i tried in the CreateDirectoryNode before it i added:
    private List<string> testfiles = new List<string>();
    Then after var files i did:
    testfiles.Add(files.ToList()
    But this is wrong. I just wanted to see in testfiles what items i'm getting in var files in the end of the process.
    Both var files and directoryListing are IEnumerable<FTPListDetail> type.
    The most important is to make the number 1 i mentioned and then to do number 2.

    Risa no.
    What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
    Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
    What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
    I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
    I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
    So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
    I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
    On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files.

  • How do I get iWeb to publish just the files to my root directory

    Hey all, when I publish my site to my hosting server via iWeb it's just copying the entire folder into my root directory instead of copying the files to the root directory. This is causing my site url to look like this: www.mysite.com/myfolder/ how do I get iWeb to publich the files in the "myfolder" to my server instead of the entire folder?

    I needed to do this while keeping ftp publishing inside iWeb, and so I developed a sneaky solution. I just figured this out, so there may be some extra steps in here. Here goes:
    Find the iWeb application on the computer you are publishing from.
    Control-Click on the application and choose "Show Package Contents".
    In the window that appears, open the folder "Contents".
    Control-Click on the folder "Resources" and choose "Get Info".
    In the window that appears, open the "Sharing and Permissions" drop-down.
    Click the lock in the lower-right corner and enter your password.
    Where it says "Read Only" across from "Everyone", click the arrows and choose "Read and Write".
    Close the "Info" window and open the "Resources" folder.
    Find the "defaultPublishConfiguration.plist" file and change the permissions (repeat steps 4-7 but with "defaultPublishConfiguration.plist" instead of the "Resources" folder).
    Open the "defaultPublishConfiguration.plist" file in TextEdit.
    Find the line "<string>/Web/Sites</string>".
    Change it to "<string>/Web</string>".
    Save and close the text file.
    Restart iWeb.
    Go to your publishing settings and enter the information for your server. Point the "Directory/Path" to the folder above your server's root web folder.
    Set "Site Name" to the name of your server's web folder.
    Make sure that none of the files in your server's web folder have the same name as those iWeb would upload.
    Select File>Publish Entire Site.
    It should now publish your site to "http://www.yourdomain.org/Home.html".
    Hope it works!
    mindoftea

  • Getting list of files in root directory

    I have seen many forum talking somewhat on this subject but I always see them using c: (for windows) as the example directory. I need to write this so that I can go to a Unix directory.
    Example:
    I want to go to the root directory from where I am....I would use runtime.exec(), right? But does the runtime actually go to that directory or just run the exec?
    If there was a "name" such as c: in unix like windows it would be easier. But, I can not just say the name of the directory is / to get in there and check out the files. So, really what I want to do is if someone is not in the particular directory I want to be able to go to the root directory and check files there, then go to another directory and check the files there, etc.
    I have a hard time explaining things so hopefully someone will get me.
    Thanks.

    But the trouble I am running in to is that I want the
    root directory in Unix, which would be /. I can not
    not just put that as the directory, can i?You can if you spell it out:
    /export/home/thefunnyrootename
    ... or use:
    String sysprop = System.getProperty("whatever property");
    File f = new File(sysprop);... To determine which you want, SDK v1.3.1 docs for System.getProperty():
    getProperties
    public static Properties getProperties()
        Determines the current system properties.
        First, if there is a security manager, its checkPropertiesAccess
    method is called with no arguments. This may result in a security
    exception.
        The current set of system properties for use by the
    getProperty(String) method is returned as a Properties object.
    If there is no current set of system properties, a set of system
    properties is first created and initialized. This set of system
    properties always includes values for the following keys:
        Key Description of Associated Value
        java.version Java Runtime Environment version
        java.vendor Java Runtime Environment vendor
        java.vendor.url Java vendor URL
        java.home Java installation directory
        java.vm.specification.version Java Virtual Machine specification version
        java.vm.specification.vendor Java Virtual Machine specification vendor
        java.vm.specification.name Java Virtual Machine specification name
        java.vm.version Java Virtual Machine implementation version
        java.vm.vendor Java Virtual Machine implementation vendor
        java.vm.name Java Virtual Machine implementation name
        java.specification.version Java Runtime Environment specification version
        java.specification.vendor Java Runtime Environment specification vendor
        java.specification.name Java Runtime Environment specification name
        java.class.version Java class format version number
        java.class.path Java class path
        java.ext.dirs Path of extension directory or directories
        os.name Operating system name
        os.arch Operating system architecture
        os.version Operating system version
        file.separator File separator ("/" on UNIX)
        path.separator Path separator (":" on UNIX)
        line.separator Line separator ("\n" on UNIX)
        user.name User's account name
        user.home User's home directory
        user.dir User's current working directory
    Note that even if the security manager does not permit the getProperties
    operation, it may choose to permit the getProperty(String) operation.
    Returns:
    the system propertiesThrows:
    SecurityException - if a security manager exists and its
    checkPropertiesAccess method doesn't allow access to the system
    properties.See Also:
    setProperties(java.util.Properties), SecurityException,
    SecurityManager.checkPropertiesAccess(), Properties~Bill

  • Has the FTP Root Directory specification changed in CS6?

    I recently upgraded from CS5.5 to CS6 and it appears that the method of specifying the root directory for the remote server has changed. For example I had a root file specification of /htdocs/milehighmgc/ that worked perfectly in CS5.5 both in the Site Manager and when I connected to the server from the Files Panel. After upgrading to CS6 it sttill would connect from the Site Manager but when I tried to connect from the Files Panel I got an error message that said "An FTP error occurred - cannot make connection to the host." I was able to get it to go by adding another / to the root folder definition so that it read //htdocs/milehighmgc/.
    Has anyone out there seen this? Is there a proper syntax that I am not aware of after using this stuff for 3 years?

    No, it hasn't changed, and I've never seen a double-slash at the beginning of the path, either. How odd.

  • How to get the current application root directory

    Hi Experts,
    I am deploying an ADF Application to a Standalone WLS 10.3. During development I am using Integrated WLS (which comes with JDeveloper 11.1.1.5.0). During development, I configured my application to create log files in my local machine (where Integrated WLS is running) by using absolute path for my log file. Now, I am moving to a standalone instance of WLS for testing (before moving to production).
    Now I need to keep my log files under my application root directory. Please let me know how to get the absolute path of the deployed application root directory from WLS ENV/System property into my application's Java Code.
    I tried the below java code,
    Current weblogic server name is: " + System.getProperty("weblogic.Name") --> This gives me the name of the server where my application is running.
    Current weblogic server name is: " + System.getProperty("weblogic.Root") --> This returns NULL. How to get the Root directory of my application using some system property inside my application at runtime??
    Thanks
    Rathnam

    One method is to create a File(""); and do getPath() on it.
    At least it's worked for me.

  • How to get the user's home directory in Unix if I know the username?

    I have a problem to determine a user's home directory in Solaris system.
    for example, I know the username as "smith", how can I know smith's
    home directory (the absolute path string)? pls help me...

    if the user is the one running the program, you can always get the home directory using System.getProperties ("user.home");
    If you are trying to get the properties of another user, you could try using setProperties to change the user name first, before getiting the home directory, but it probably won't work because of the security manager. You could read the /etc/passwd file and parse the path out, but once again, the user of the code would have to have appropriate permission.

  • DIAGNOSTIC_DEST directory getting created in $HOME of  oracle user accout

    DB version:11.1.0.7
    OS:     AIX
    I have an 11.1.0.7 and 10gR2 database in a machine. During creation of the 11g Database, i had explicitly specified the DIAGNOSTIC_DEST parameter in $ORACLE_BASE. Few days back i've noticed a directory called oradiag_oracle in the $HOME(not $ORACLE_HOME) of the oracle user account. Yesterday i removed it. But soon this directory got created automatically.
    Any idea why Oracle is creating this directory in $HOME. I checked the alert log, but this directory is not mentioned there.
    $ ls -R oradiag_oracle/
    diag/
    oradiag_oracle/diag:
    clients/
    oradiag_oracle/diag/clients:
    user_oracle/
    oradiag_oracle/diag/clients/user_oracle:
    host_2263549305_22/
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22:
    alert/     cdump/     incident/  incpkg/    lck/       metadata/  stage/     sweep/     trace/
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/alert:
    log.xml
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/cdump:
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/incident:
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/incpkg:
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/lck:
    AM_4096102193_3466045376.lck   AM_4096102262_3454619329.lck   AM_9744645641_3661997533.lck   AM_3216666543_3129272966.lck
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/metadata:
    ADR_CONTROL.ams          ADR_INVALIDATION.ams     INC_METER_IMPT_DEF.ams   INC_METER_PK_IMPTS.ams
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/stage:
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/sweep:
    oradiag_oracle/diag/clients/user_oracle/host_2263549305_22/trace:
    sqlnet.log

    It looks like this is for client tracing. I did not see it in 11.1.0.7.0, but am seeing it in 11.2.0.1.0. The directory gets created in your home directory when you make a client connection.
    logged in as oracle I get
    /oracle/oradiag_oracle
    when logged in as myself I get
    /home/jwalker/oradiag_jwalker.
    there is a note that explains how you can revert behavior back, but it requires making changes to several config files (not sure it is worth it). Doc ID:      454927.1 -> It references 11.1.0.6.0 but my 11.1 was 11.1.0.7.0 and I don't have this happen there, only on 11.2.

  • IDoc-Inbound: Partner Number gets overwritten in User Exit

    Hi,
    we have problem that XI won't accept IDoc from sending R/3 because the Partner number gets overwritten via User Exit.
    Instead of Partner PSICLNT010 the partner gets overwritten to SAPPSI. So what do i have to do to make XI accaept this IDoc?!
    We have system PSICLNT010 configured in SLD with logical system name PSICLNT010.
    Because of the problem i changed it to SAPPSI.
    I also refreshed the adapter specific identifiers and did a complete cache refesh - but with no success.
    We still get error "No service for system SAPPSI, client 010 in ID"
    Can somebody help!  What elso do i have to change?!
    br

    Hi,
    This problem can be solved : do these steps ,
    AT your XI System : goto Idx1, create port with name : SAPPSI
    In the port use your RFC Destination name SAME as used in port PSICLNT010.
    Now goto idx2
    upload matadata for your idoc Message in port SAPPSI.
    send idoc from R/3, XI system will pick that idoc.
    your problem is solved now
    Regards,
    Sandeep Kaushik

  • Problems With FTP Users home directory

    Hello Everyone,
    I recently ran into a problem when setting the home directory of an ftp user. What I want to be able to do is for example I have two users, one user is User1, and the other is FTPUser. Now when people ftp into the user FTPUser I want to set the home directory to be a certain path in User1. Now I was able to successfully do this on one box when creating the FTPUser I just set the home directory to be the path in User1. And when people ftped into FTPUser they were in the right directory under User1.
    I tried to do this same procedure on another box, and after creating the FTPUser and setting its home directory to a path under User1. Now when they ftped into FTPUser it was showing that the home directory was "/". I examined /etc/passwd and it presents the right home directory that I want, yet when people ftp into FTPUser its showing the home directory to be "/". Any help would be appreciated. Thanks in advance.
    -Kevin

    Sorry for such a late reply, but I figured out my problem and will put it on here in case other people run into the same problem. You must make the FTPUser be in the same group of the normal users directory path you wish to FTP into. For example the command will look like this when making the FTP user:
    useradd -g "users group number" -d /path/to/file -s /bin/sh ftpusername
    so if user1 group id was 110 you would put 110 after -g and set the home dir of the ftpusername to be some path in user1. Thanks all for the help.
    -Kevin
    Edited by: kratkinson on Jun 22, 2009 6:46 AM

  • Get domain root directory programmatically

    hello,
              There is any way to get the domain root directory path programmatically ??
              i.e : D:\bea\user_projects\domains\platformR1
              thanks

    John,
    OK. If you want to go the JMX route, have a look at the CurrentDirectory attribute of the ServerRuntime mbean. It would report your directory as this:
    C:\bea\user_projects\domains\myDomain\.
    Mike
    Weblogic/J2EE Security Blog: http://monduke.com

  • PowerShell Active Directory: Get last logon date of a deleted user

    So, my first post in this noble community. I've been lurking here and I've been getting some good information. Hopefully, you guys can help me in this concern which may be simple to some but I couldn't seem to get around it.
    Is it possible to get the last logon date of a DELETED user in Active Directory?
    I can get the available properties of deleted users using the following:
    Get-ADObject -Filter {samaccountname -eq <account_name> -and ObjectClass -eq "user"} -IncludeDeletedObjects -Properties *
    But the last logon date is not one of the properties available from Get-ADObject. Get-ADUser has the last logon property, but it does not have data on deleted users. Is there anyway this can be achieved? Perhaps convert an ADObject to an ADUser?
    Any information would be much appreciated. Thank you.

    Thanks everyone for your response. It looks like jrv is leading me to the right path, but I'm still having issues. I'm trying to get the lastlogon time by querying all the DCs in our domain, but every query returns a null lastlogon time for all the deleted
    users I tried:
    $DomainControllers = ((Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ }).Name
    foreach ($DC in $DomainControllers)
        $dn=(Get-ADObject -Filter {samaccountname -eq <user_account>} -includedeletedobjects -server $DC).DistinguishedName
        $user=[adsi]"LDAP://$dn"
        $user.LastLogon
    It always returns null. Morever, simply executing [adsi]"LDAP://$dn" from each DC gives the following error:
    format-default : The following exception occurred while retrieving member
    "distinguishedName": "There is no such object on the server.
        + CategoryInfo          : NotSpecified: (:) [format-default], ExtendedType
       SystemException
        + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Comm
       ands.FormatDefaultCommand
    It's a bit surprising to me though, since $user=[adsi]"LDAP://$dn" does return a value for $user (instead of null whenever an error is encountered) of type System.DirectoryServices.DirectoryEntry but it has no members.
    Anyone know what I'm missing?

Maybe you are looking for

  • IPhoto is not working in my 5s. What should I do

    Changed my phone from 4s to 5s and now iPhoto is not working. When I open it it says" the photo library of this device is updating"

  • Is it possible to convert a video to still frame?

    I'm working on a stop animation project and I want try to use video instead of still frames to capture the animation because I'm teaching kids. Can I shoot the video and then convert it to still frame shots in Final Cut? I know there is a make a free

  • No Duplicate file?

    I thought I remembered a contextual duplicate command when I was using the SDK in eclipse.  Is there not a duplicate command in Flash Builder?  Thanks.

  • Slow down text to speech voice

    I am using text to speech on Captivate 4.  Essentially, I love the text-to-speech feature; however, sometimes the voice is just too fast.  I do not want to add pointless punctuation because I use the same text for the Closed Captioning.  Does anyone

  • URGENT !!! Error opening a Bluetooth server

    Hello. I'm building an J2SE application in which devices will communicate to each other using Bluetooth. However, Connector.open() always return an IOException. Note: I'm using the library of BlueCove. package br.mobiocombat.network.bluetooth; import