Autor |
Nachricht |
|
Titel: How do I mount a Samba share in FSTAB?
Verfasst am: 07.12.2006, 08:34 Uhr
|
|
Anmeldung: 26. Nov 2006
Beiträge: 85
|
|
Hi how do I mount a samba share in fstab?
I have a home NAS (network attached storage) router with two drives attached to it.
The NAS router is part of a workgroup called MYHOME (for example). It in turn connects to my Laptop via a wireless access point (or AP).
The NAS doesn't require a password - as it is part of my workgroup - and the security for this (password WEP encryption and so on) is handled by my AP).
So I tried doing the following:
FSTAB:
smb://192.168.1.77/FLASH_2_1_1 /mnt/Archos smbfs 0 0
smb://192.168.1.77/HDD_1_1_1 /mnt/storage smbfs 0 0
But this didn't work. I also want to make sure I have full read, write and execute permissions on all shares.
Can anyone please tell me what I am doing wrong?
Also how can I make sure that my SAMBA shares aren't mounted until I actually have established a wireless connection? I am concerned that FSTAB might try to mount them too soon. |
|
|
|
|
|
|
Titel:
Verfasst am: 07.12.2006, 09:46 Uhr
|
|
Anmeldung: 02. Feb 2006
Beiträge: 55
|
|
I think your issue is not with the mount, but with the share.
To be able to write to samba shares, make sure you enabled writes when sharing!
Also: make sure the rights are set correct.
an example from smb.conf:
Code:
[temp]
comment = dumpfolder
path = /mypath/temp
writable = yes
browsable = Yes
|
|
|
|
|
|
|
Titel:
Verfasst am: 07.12.2006, 18:22 Uhr
|
|
Anmeldung: 18. Jul 2005
Beiträge: 293
Wohnort: EST US
|
|
|
|
|
|
Titel:
Verfasst am: 08.12.2006, 21:07 Uhr
|
|
Anmeldung: 26. Nov 2006
Beiträge: 85
|
|
Yeah, that worked. Thanks. The only problem now is I can't write to my share. Essentially I did:
Code:
//192.168.1.77/MYSHARE /mnt/storage smbfs 0 0
which did mount my share - but as I said with no write permissions.
So then I tried:
Code:
//192.168.1.77/MYSHARE /mnt/storage smbfs umask=000 0 0
Setting the unmask to 000. I wasn't certain that this would work - but in the end it didn't and the share refused to even mount.
The problem with the guide that was pointed to is that it talks about setting a group name and password etc - but normally I don't need to do this. Normally if I am mounting a share from KDE all I need to do is type the address into konqueror as follows:
Code:
//192.168.1.77/MYSHARE /mnt/storage smbfs umask=000 0 0
I don't tend to need a password as my NAS hard drive is a part of my workgroup and all of the security is handled by my router.
I assume however that this is a permissions issue - so the question is, how do I mount these shares and ensure I have full read write and execute access to them? |
|
|
|
|
|
|
Titel:
Verfasst am: 09.12.2006, 04:21 Uhr
|
|
Anmeldung: 18. Jul 2005
Beiträge: 293
Wohnort: EST US
|
|
I think HJH has the solution: read/edit smb.conf
However, I'd try
Code:
//192.168.1.77/MYSHARE /mnt/storage smbfs rw,user,auto 0 0
I don't use samba very often. If I do, I always use linneighborhood (X11 network browser) so I'm just guessing there |
|
|
|
|
|
|