LinuxQuestions.org
Visit Jeremy's Blog.
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 07-02-2010, 12:06 PM   #1
bozox
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Rep: Reputation: 0
SMB share access in GUI, but not in cmdline


Hi all, I have a Debian Etch system. From the Gnome file manager, I can easily browse to SMB file shares on the network. So the SMB redirector is apparently present on the system.

Question - how do I access SMB shares from the command line? smbmount command is not available, trying to cd into a smb://... path gives a "No such file" error. Any ideas, please? I'm not looking for a persistent mapping, just a brief look. Better yet if root access is not necessary.
 
Old 07-02-2010, 03:30 PM   #2
mryuck
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 23
Try smbclient. Its kind of like a samba ftp client.
Code:
smbclient -L hostname -I hosts-ip
will list available shares.

Code:
smbclient //host/share
connects to share.

mount.cifs will also work.
 
Old 07-02-2010, 07:25 PM   #3
yesyayen
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL 5.4,fedora 11, ubuntu 9.04
Posts: 8

Rep: Reputation: Disabled
First of all add a user to smb

PHP Code:
#smbpasswd -a username 
then type in,

PHP Code:
#smbtree 
This will list out the folders that are shared in your samba group

then,

PHP Code:
smbclient //(ip-addr)/sharename -U username 
.
 
Old 07-06-2010, 04:45 PM   #4
bozox
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
smbtree - command not found.
smbclient - command not found.

Now, I'm not above installing packages when needed. It's the theoretical conundrum I'm worried about. Here I have a piece of functionality (SMB access in Gnome) that should extend all the way down to system call level. I mean, when I double-click a text file on the network, gedit is invoked with that file (it does, just checked). What kind of file name is passed to gedit? Is that a path in the regular filesystem? Is that an smb:// URL-style path? Is that a temporary local copy? If it's a smb: URL, is the magic for handling those somehow specific to gedit, or X Window applications in general?

Last edited by bozox; 07-06-2010 at 04:46 PM.
 
Old 07-06-2010, 05:55 PM   #5
mryuck
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 23
I would reinstall the samba package.
I don't use gnome or debian but I'm pretty sure that when samba is installed those commands are present.
 
Old 07-06-2010, 06:59 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,172

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
AFAIK the capabiity of browsing SMB shares is built into Gnome/Nautilus using GVFS and independent of the samba client utilties.

samba does have multiple packages i.e server, client and common. It is possible to install the server and common package without the client. Is samba installed?
 
1 members found this post helpful.
Old 07-07-2010, 10:06 AM   #7
bozox
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
GVFS. Now that answers the question. A userland-level virtual filesystem which supports URL-style paths. And a client library which replaces the vanilla open() syscall, linked from every Gnome app. There's no syscall-level support for SMB redirector on my system after all.

EDIT: and by the way, there are GVFS-aware command line utilities in Gnome: gnomevfs-ls, gnomevfs-copy, gnomevfs-cat, etc.

Last edited by bozox; 07-07-2010 at 01:58 PM.
 
  


Reply

Tags
network, smb


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
access anonymous smb share from Linux bobnw Linux - Newbie 1 06-06-2009 06:19 AM
Samba Share SMB.CONF Access Denied mikeaustn Linux - Software 1 09-28-2004 04:14 PM
guest access to a share in smb.conf ?? ludeKing Linux - Networking 1 10-27-2003 02:36 PM
Can't access a smb share from windows digitalspillage Linux - Newbie 2 10-05-2003 10:42 AM
full access to a SMB share barman Linux - Newbie 1 05-03-2002 09:51 AM


All times are GMT -5. The time now is 05:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration