LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2014, 02:33 PM   #1
frleo
LQ Newbie
 
Registered: Nov 2014
Posts: 4

Rep: Reputation: Disabled
How to access davs://****.prod.phx3.secureserver.net:2078/ from the terminal (path?).


I want to access the davs://** location from a shell script. I want copy files from my local drive to my website with a shell scrpt. I can drag and drop by way of the file manager, but a script needs the exact path. The location indicated by the file manager is davs://****.prod.phx3.secureserver.net:2078/ (astrix keeps it private for me). The above lacation is my godaddy site. The above location seems to be a mounted volume. On my PC, I am able to map to this location, and so it ends up as Z: It would be very handy to be able to map to the above location on my Linux box.
 
Old 11-12-2014, 07:50 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,480

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
Just use the mount command and mount the dav to a folder with davfs, you will probably need to install a few bits of software, fuser, davfs etc depends on your distro, I use davfs to mount stuff from my tablet to my desktop, then its just like any other folder, I'm away from my pc at the moment so I can't give you the exact command to use for mounting davfs but a little googling should do tne trick.
 
Old 11-12-2014, 11:04 PM   #3
frleo
LQ Newbie
 
Registered: Nov 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
I installed davfs2 a few bits etc. googled. Now I can not even access davs://****.prod.phx3.secureserver.net:2078/ from the file manager anymore. There's a good reason why I identified myself as a newbie. I'm surprised there isn't a definitive "cookbook" style answer.
It seems /etc/fstab wants a url with https://... I'm trying to mount an object that starts with davs://
 
Old 11-13-2014, 05:36 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,480

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
No don't put it in your fstab unless you know what you are doing and you need to have permanent access to the share.
The command to mount a webdav share is:
Code:
mkdir /tmp/davshare
sudo mount -t davfs http://192.168.1.201:8080 /tmp/davshare
In my case this is my phone running a webdav server so 'ls' gives:
Code:
ls /tmp/davshare


acct    default.prop    init              init.smdk4210.usb.rc  lpm.rc       res      system               vendor
cache   dev             init.bt.rc        init.trace.rc         mnt          sbin     tmp
config  efs             init.goldfish.rc  init.usb.rc           preload      sdcard   ueventd.goldfish.rc
d       etc             init.rc           lib                   proc         storage  ueventd.rc
data    fstab.smdk4210  init.smdk4210.rc  lost+found            recovery.rc  sys      ueventd.smdk4210.rc
To unmount do:
Code:
sudo umount /tmp/davshare
You will need davfs2 installed.
You will probably have to belong to the davfs2 group

Be aware webdeavs are not particularly fast so putting it in the fstab may cause startup/shutdown delays.

NEVER muck about with your fstab until you are sure of the settings to use and that they work, also BEFORE changing any system files like fstab make a backup and be sure you have an alternate boot method in case something goes really wrong so that you can undo any changes you may have made.
 
1 members found this post helpful.
Old 11-13-2014, 04:14 PM   #5
frleo
LQ Newbie
 
Registered: Nov 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Looks promising

The only issue I have now is the exact URL that I should use. the mount command will entertain any request with a URL starting in http://..... The only handle I have to the volume I want to mount , starts with davs://.... ends with :2078. I want to mount the files for my godaddy site: http://GLT.xyz/
Please advise. Cheers!

I have loaded an object to my Desktop from the cPanel (godaddy) that "seems" to mount the file system and make it available in the file manager (drag and drop works fine). This volume is called davs://.... ends with :2078, which does not show up with $ mount, which shows all mounted objects. And so, it's not really "mounted" and I have no path to access it with a shell script.
 
Old 11-13-2014, 06:57 PM   #6
frleo
LQ Newbie
 
Registered: Nov 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Got it!

I got a true URL by going to the cPanel. I plugged it in and I'm in business. Thanks for holding my hand.
 
Old 11-13-2014, 07:01 PM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,480

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
Please mark the thread a solved, to help others searching the forum find a solution
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
certification in AIX or Linux in Prod or Non-prod environment ! sid2803 Linux - Newbie 2 06-11-2012 09:05 PM
dotproject smtpout.secureserver.net prayag_pjs Linux - Newbie 2 12-23-2008 02:53 AM
Terminal showing whole path mattd7591 Linux - General 10 01-15-2007 10:37 AM
$PATH different in gnome-terminal racarter Debian 5 05-18-2005 07:22 AM
a terminal in the net? somewhere? mritch General 3 04-27-2004 12:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration