LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   show the samba share but can't mount the share (https://www.linuxquestions.org/questions/linux-server-73/show-the-samba-share-but-cant-mount-the-share-556992/)

badall 05-27-2007 05:51 AM

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

jschiwal 05-27-2007 08:33 PM

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.

badall 05-29-2007 11:02 AM

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.

jschiwal 05-30-2007 04:24 AM

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?


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