- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Accessing a Windows Share from Linux Command L...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2011 10:01 AM
тАО06-10-2011 10:01 AM
Accessing a Windows Share from Linux Command Line
scp gerkep@ux31:/tmp/1.pkg 2.pkg
I am then prompted for the password for the gerkep account on ux31 and then the file is copied.
I imagine being able to do:
scp \\\\nt31\\users\\gerkep\\1.pkg 2.pkg
I would then enter a user name and a password with permission to access the share. Is there some way to do this without needing to mount the share first?
Thanks in advance,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2011 04:01 PM
тАО06-10-2011 04:01 PM
Re: Accessing a Windows Share from Linux Command Line
Take a look at smbclient to copy files without doing a mount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2011 02:52 AM
тАО06-15-2011 02:52 AM
Re: Accessing a Windows Share from Linux Command Line
But usually sshd isn't very common on windows servers and almost always requires extra installation and setup.
But providing access like this isn't the intended purpose of a file windows server.
I think (as with a windows client) one would mount the CIFS share of the windows server locally and according to the granted permissions can access files just ro or rw.
Have a look at man mount.cifs
I think the mentioned smbtools were the forerunner user interface tool to deal with windows/samba file server shares when the protocol was still SMB before it went to CIFS and obtained the blessing of the IETF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2011 03:01 AM
тАО06-15-2011 03:01 AM
Re: Accessing a Windows Share from Linux Command Line
If you installed the cygwin sshd you get a mapping of the notorious windows drive letter paths to something like e.g.
/cygdrive/c/Programs/...
to map
c:\Programs\...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2011 06:51 AM
тАО06-15-2011 06:51 AM
Re: Accessing a Windows Share from Linux Command Line
I was hoping for something that didn't require any setup/configuration before running something from the command line, and didn't require the installation of ssh on the windows server, but that doesn't appear to be possible. I will look at the CIFS man page and see if I can figure out a way to do it, but I suspect that CIFS will require something configured in advance.
Thanks again for your responses,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2011 07:03 AM
тАО06-15-2011 07:03 AM
Re: Accessing a Windows Share from Linux Command Line
It's a tool in the Samba package which is part of most distributions
http://www.samba.org/samba/docs/man/manpages-3/smbclient.1.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2011 10:42 AM
тАО06-17-2011 10:42 AM
Re: Accessing a Windows Share from Linux Command Line
I appreciate you repeating your suggestion to check out smbclient. I can use it like ftp. Not perfect, but doesn't require mounting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2011 11:09 AM
тАО06-17-2011 11:09 AM