LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-27-2007, 06:51 AM   #1
badall
LQ Newbie
 
Registered: May 2007
Posts: 19

Rep: Reputation: 0
show the samba share but can't mount the share


well I can see the share from another Linux machine which is connected with my machine getting ip via dhcp
and running on Linux Enterprise.

It shows the share by the following command,

smbclient -L 172.16.0.1

But when I entre the following command,

mount -t smbfs -o username=test,password=123 //172.16.0.1/badal /mnt

It shows nothing and I don't find anything in /mnt directory.

My samba share in smb.conf like this

[badal]
comment = Class stuff
path = /usr/sambashare
; valid users = mary fred
public = yes
writable = yes
printable = yes
broweable = yes
create mask = 0765
 
Old 05-27-2007, 09:33 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
What are the permissions of the /usr/sambashare directory? Does the user whose username was in the mount command have permission to read files in that directory?
Are there files in that directory? Does the same user have permissions to read those files?

From your message it sounds like there were no errors listed after issuing the mount command.
 
Old 05-29-2007, 12:02 PM   #3
badall
LQ Newbie
 
Registered: May 2007
Posts: 19

Original Poster
Rep: Reputation: 0
I've changed the ownership of that dir and file to the usre test.

Now it giving the following error,

3128: session setup failed: ERRDOS - ERRnoaccess (access denied)
SMB connection failed.
 
Old 05-30-2007, 05:24 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You didn't show the full permissions.
ls -ld /usr/sambashare

Also make sure that the Linux user is entered as a samba user with smbpasswd.
Also check your firewall settings on both hosts.

On my system, I have cifs instead of smbfs.

I just setup a quick share on one laptop and mounted it from another:
Code:
[Documents]
        comment = Documents on Dell Laptop
        path = /home/jschiwal/Documents
;       writeable = no
        browseable = yes
        guest ok = yes
;       writeable = no
;       writeable = no
$ ls -ld Documents/
drwxr-xr-t 2 jschiwal jschiwal 4096 May 30 03:23 Documents/

From the other laptop:
sudo mount -t cifs //delllap/Documents /mnt -o credentials=/home/jschiwal/.credentials
jschiwal@hpamd64:~> ls /mnt -l
total 16
-rw-rw-r-- 1 500 500  74 2007-05-25 04:19 listing1
-rw-rw-r-- 1 500 500 179 2007-05-25 04:19 listing2
Here is another example:
Code:
drwxrwxrwt 18 root root 20480 May 30 04:08 /tmp

# This one is useful for people to share files
[tmp]
        comment = Temporary file space
        path = /tmp
        writeable = yes
        guest ok = yes
Can you reach the share from konqueror?
konqueror smb://172.16.0.1/badal
Is the workgroup the same on both hosts?
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 02:35 AM
Samba share will not mount CloudBuilder Ubuntu 15 09-26-2007 05:15 PM
searching samba share breaks connection to share Elomis Linux - Server 1 05-11-2007 01:28 AM
mount a samba share? trey85stang DamnSmallLinux 2 05-16-2005 07:58 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 08:27 AM


All times are GMT -5. The time now is 05:05 AM.

Main Menu
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