header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
cd and ls behave differently w.r.t. permissions
Last Post 07 Sep 2010 03:24 PM by tokenmathguy. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
tokenmathguyUser is Offline
New Member
New Member
Posts:2
Avatar

--
25 Aug 2010 04:12 PM
    when listing a directory for which i do not have permissions to the parent folder, life is normal:
    > ls \\server\unc\path
    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    d---- 8/25/2010 2:26 PM bogus
    now changing to that directory fails. why? i have permissions to \\server\unc\path, just not to \\server\unc
    > cd \\server\unc\path
    Set-Location : An object at the specified path \\server\unc does not exist.
    At line:1 char:3
    + cd <<<< \\server\unc\path
    i can open up the directory through windows explorer. powershell must be trying to change directories through the entire unc path? it seems that would defeat a lot of useful functionality regarding permissions management, so i doubt that's what it's doing.
     
    any thoughts/ideas greatly appreciated!
    tokenmathguyUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    07 Sep 2010 03:24 PM
    has anyone else ever run into this? any ideas why powershell would have this inconsistency? and is there a work-around?
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer