LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   mounting a samba share (https://www.linuxquestions.org/questions/debian-26/mounting-a-samba-share-457050/)

tronica 06-21-2006 05:34 PM

mounting a samba share
 
ok i just got samba installed on my debian box. From my ubuntu machine i can do

Quote:

smb://debserv/share
and i can browse and write to that share. But on my ubuntu box i'm wanting to mount this shared folder like i do with my windows servers. when i give this command as i do with my windows servers this is what i get with the debian server:

Quote:

lyle@ubuntu:~$ sudo mount -t cifs //192.168.1.68/share/ /mnt/debserv -o user=lyle,pass=monster
mount: //192.168.1.68/share/ is not a valid block device
heres what i have in my smb.conf

Quote:

[share]
path = /home/lyle/Desktop/share
public = yes
writable = yes
valid users = lyle
create mask = 0777
can anybody help me get this going. Thanks

pljvaldez 06-21-2006 06:04 PM

I believe the type is smbfs, not cifs. Check man mount to see for sure...

bernied 06-21-2006 06:31 PM

Two other possible issues:
1 - That trailing / on the share name //192.168.1.68/share/ may cause trouble. Try ../share without the trailing /

2 - You may need to name the server. Does the machine have a name? You can either put an entry into /etc/hosts to translate the IP, or as suggested on a similar thread - http://www.linuxquestions.org/questi...d.php?t=456604 - use the -o ip=[IP address] option.

tronica 06-21-2006 06:50 PM

ok i looked at that thread and still no luck. i keep getting

Quote:

wrong fs type, bad option, bad superblock on //192.168.1.68/storage
i just can't figure this out.

luis14 06-21-2006 07:33 PM

I'm new to this, but this is how I would phrase the command:
Quote:

sudo mount //192.168.1.68/share /mnt/debserv -o user=lyle,password=monster,dmask=777,fmask=777
good luck

tronica 06-21-2006 07:44 PM

ok, i forgot to install smbfs on my ubuntu machine. so i got it mounted,however when i try to write the share. i get "don't have permissions"

but here is the command i used

Quote:

sudo smbmount //192.168.1.68/storage /mnt/debserv -o username=lyle,password=monster

do i need to add dmask=777,fmask=777 to the end of that to be able to write

luis14 06-21-2006 07:52 PM

The fmask dmask stuff should give you write permission. password=monster is your samba password, correct?

tronica 06-21-2006 08:47 PM

i got it to work, i installed smbfs and tried my mount -t cifs againg and it worked. Thanks for the help guys.


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