Open Error 13
Contents |
Tutorials Poetry RecentThreads NewestNodes Donate What'sNew on Oct 28, 2009 at 20:05UTC ( #803782=perlquestion: print w/replies, xml ) Need Help?? molson has asked for the wisdom of the Perl Monks concerning the
Failed To Open File Error 13
following question: Any ideas why I am getting a "File open error error 13 permission denied = 13" error with my get? The file consists of 20 numbers on each line, with about 1,000 lines in the file. Below is the code, with some of the specifics changed for obvious reasons. use strict; use warnings; use Net::FTP; my $directory = "the directory"; my $ftp; $ftp = Net::FTP->new("1.1.1.1", Debug => 0) || die "Cannot connect to 1.1.1.1: $@"; $ftp->login("user",'pass') || die "Cannot login ", $ftp->message; $ftp->binary(); $ftp->get("$directory.thedir","C:\\temp\\ftp") || die "get failed ", $ftp->message; $ftp->quit; [download] Comment on File Open Error = 13?Download Code Replies are listed 'Best First'. Re: File Open Error = 13? by BrowserUk (Pope) on Oct 28, 2009 at 20:16UTC You can work out what that error number means easily: C:\test>perl -le"$!=13; print $!" Permission denied [download] Which strongly suggests that the userid you're using doesn't have permission to access the required file. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error. "Science is about questioning the status quo. Questioning authority". In the absence of evidence, opinion is indistinguishable from prejudice. RIP PCW It is as I've been saying!(Audio until 20090817) [reply][d/l] Re^2: File Open Error = 13? by molson (Acolyte) on Oct 28, 2009 at 21:12UTC Thanks!! That is strange as I use that userID/pass in FileZilla without any issues. I'll need to dig deeper.[reply] Re^3: File Open Error = 13? by ikegami (Pope) on Oct 28, 2009 at 21:18UTC It's a *local* permission issue. You don't have permission to overwrite file C:\temp\ftp[reply][d/l] Re^4: File Open Error = 13? by molson (Acolyte) on Oct 28, 2009 at 21:25UTC Re^5: File Open Error = 13? by ikegami (Pope) on Oct 28, 2009 at 21:27UTC Some no
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error 13 Permission Denied up vote -2 down vote http://www.perlmonks.org/?node_id=803782 favorite Any reason I can't just drop a file into a directory ? ie: /var/lib/whatever I know it's a root access issue, but... Is this not an option due to the root limitation with Ubuntu? I have a buddy who isn't a fan of Ubuntu because of this very reason & will only run Cent OS. Is there a way to prove him otherwise? permissions share|improve this question edited Oct 13 '14 at 12:42 CarlosAV http://askubuntu.com/questions/536392/error-13-permission-denied 1844 asked Oct 13 '14 at 3:18 KCMike 612 What? Your friend likes running around as root and dropping files in random directories? O.o –muru Oct 13 '14 at 3:22 Why do you want to put something in /var/lib? –thomasrutter Oct 13 '14 at 3:22 Among other things, see askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root, askubuntu.com/q/6676/158442 and –muru Oct 13 '14 at 3:24 Wait a minute, are you claiming that CentOS allows you to drop random files in /var/lib and Ubuntu doesn't, and that's why your friend doesn't like Ubuntu? –thomasrutter Oct 13 '14 at 3:31 He's probably referring to an option to view the filesystem as root. You can do this with nautilus using sudo nautilus. I seem to remember doing that using icewm on antixos which is a debian based distro just like ubuntu. It's not that you can't, you'd just have to add the right package (file manager) or set the configuration yourself. As it's centos he's probably referring to using the KDE file manager which does allow this option. Sounds like a good social-engineering trick though! –mchid Oct 13 '14 at 3:40 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote If the folder is owned by root user, and you're trying to drop the file with your user, it's no
log permission error=13 setperm securemain writePersistSituation Technote (troubleshooting) Problem(Abstract) secureMain lock http://www.ibm.com/support/docview.wss?uid=swg21667571 leaves some files group read only for MQ agent and https://supportforums.cisco.com/discussion/11004451/ios-upgrade-2801 agent cannot write in the needed str, sta and xml files Symptom MQ agent RAS1 log shows error similar to the following: (531F0D57.0087-B:kraapsit.cpp,1169,"writePersistSituation") Unable to open file
Help Follow Us Facebook Twitter Google + LinkedIn Newsletter Instagram YouTube DirectoryNetwork InfrastructureWAN, Routing and Switching LAN, Switching and Routing Network Management Remote Access Optical Networking Getting Started with LANs IPv6 Integration and Transition EEM Scripting Other Subjects SecurityVPN Security Management Firewalling Intrusion Prevention Systems/IDS AAA, Identity and NAC Physical Security MARS Email Security Web Security Other Subjects Service ProvidersMetro MPLS Voice Over IP XR OS and Platforms Video Other Subjects Collaboration, Voice and VideoIP Telephony Video Over IP Jabber Clients Unified Communications Applications TelePresence Digital Media System Contact Center Conferencing UC Migrations Other Subjects Wireless - MobilitySecurity and Network Management Wireless IP Voice and Video Getting Started with Wireless WLCCA Other Subjects ServicesCisco ServiceGrid Connected Analytics Smart Call Home Smart Net Total Care Operations Exchange Mobile ApplicationsCisco Proximity Cisco Technical Support Online Tools and ResourcesCisco Bug Discussions Technical Documentation Ideas Cisco CLI Analyzer Support Community Help Data CenterApplication Centric Infrastructure Application Networking Intelligent Automation Server Networking Storage Networking Unified Computing Wide Area Application Services (WAAS) Other Subjects Small BusinessNetwork Storage Routers Security Surveillance Switches Voice and Conferencing Wireless Solutions and ArchitecturesBorderless Networks Collaboration Cisco User GroupsSeattle Cisco User Group (SEACUG) Silicon Valley Cisco User Group (SVCUG) Southern California Cisco User Group (SCCUG) Cisco Certifications Cisco.com Idea Center Cisco Cafe Expert CornerTop Contributors Leaderboards Cisco Live! Events Events Community CornerAwards & Recognition Behind the Scenes Feedback Forum Cisco Certifications Cisco Press Café Cisco On Demand Support & Downloads Community Resources Security Alerts Security Alerts News News Video Cisco Support YouTube Cisco YouTube Blogs Technical Documentation Cisco Products Products Services Services Solutions Solutions Global Sup