|
Home > Archive > Linux Debian support > June 2005 > mount smb shares in fstab
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mount smb shares in fstab
|
|
|
| Hi,
I'd like to mount some smb shares at startup and to put them in
/etc/fstab like this:
//servername/dirname /mnt/dirname/ smbfs
credentials=/root/smb/.credfile,rw,user,noauto
This doesn't work, however. Afer issueing mount -a, nothing happens and
no entries appear in dmesg.
When mounting in this way:
mount -t smbfs -o credentials=/root/smb/.credfile //servername/dirname
/mnt/dirname/
the mounting does work.
Does anybody know what I'm doing wrong?
Thanks a lot,
Tim
| |
| Bill Marcum 2005-06-27, 5:47 pm |
| On Mon, 27 Jun 2005 13:59:38 +0200, Tim
<me@privacy.net> wrote:
> Hi,
>
> I'd like to mount some smb shares at startup and to put them in
> /etc/fstab like this:
>
> //servername/dirname /mnt/dirname/ smbfs
> credentials=/root/smb/.credfile,rw,user,noauto
>
> This doesn't work, however. Afer issueing mount -a, nothing happens and
> no entries appear in dmesg.
>
"noauto" means "don't mount this in mount -a".
--
Support Our Oops!
| |
|
| >>I'd like to mount some smb shares at startup and to put them in
>
> "noauto" means "don't mount this in mount -a".
Right, my mistake, and a bad one!
However, I tried
mount /mnt/dirname
before as well, which didn't work either...
I do get the following error when doing this as root:
cli_negprot: SMB signing is mandatory and we have disabled it.
4959: protocol negotiation failed
SMB connection failed
I've been looking for an answer before, but nothing I found, solved my
problem :-(
Adding "client signing = auto" or "client signing = on" to smb.conf was
often suggested. Is smb.conf really needed for smbclient or mount -t smb
to work?
Thanks for the help,
Tim
| |
| Tommy Skoglund 2005-06-28, 7:47 am |
| Tim wrote:
>
>
> Right, my mistake, and a bad one!
>
> However, I tried
>
> mount /mnt/dirname
>
> before as well, which didn't work either...
>
> I do get the following error when doing this as root:
>
> cli_negprot: SMB signing is mandatory and we have disabled it.
> 4959: protocol negotiation failed
> SMB connection failed
>
> I've been looking for an answer before, but nothing I found, solved my
> problem :-(
> Adding "client signing = auto" or "client signing = on" to smb.conf was
> often suggested. Is smb.conf really needed for smbclient or mount -t smb
> to work?
>
>
> Thanks for the help,
> Tim
You may try "cifs" instead of "smbfs" as filesystem option.
It works for me.
Rgrds Tommy
| |
|
| Tommy Skoglund wrote:
> Tim wrote:
>
>
> You may try "cifs" instead of "smbfs" as filesystem option.
> It works for me.
Thanks Tommy, I got it working as root, but not as an ordinary user. The
credentials file is owned by the user I'm trying it with and the user
option is in /etc/fstab. This is the error I get:
mount error 1 = Operation not permitted
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Any idea what the problem could be? I've read the man page for
mount.cifs, but still couldn't solve the problem and Google didn't help
either...
Cheers,
Tim
| |
|
| "Tim" <me@privacy.net> wrote in message
news:d9rb2a$dek$1@ikaria.belnet.be...
> Tommy Skoglund wrote:
and[vbcol=seagreen]
smb[vbcol=seagreen]
>
> Thanks Tommy, I got it working as root, but not as an ordinary user. The
> credentials file is owned by the user I'm trying it with and the user
> option is in /etc/fstab. This is the error I get:
>
> mount error 1 = Operation not permitted
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
>
> Any idea what the problem could be? I've read the man page for
> mount.cifs, but still couldn't solve the problem and Google didn't help
> either...
> Cheers,
> Tim
I've seen this problem when I was using an old kernel. What version are you
using?
Brett.
| |
|
| Brett wrote:
> "Tim" <me@privacy.net> wrote in message
> news:d9rb2a$dek$1@ikaria.belnet.be...
>
>
> and
>
>
> smb
>
>
>
> I've seen this problem when I was using an old kernel. What version are you
> using?
>
> Brett.
I'm currently using 2.6.8. Not that old, but we are talking computers of
course...
Tim
| |
|
| "Tim" <me@privacy.net> wrote in message
news:d9tj8m$3a4$1@ikaria.belnet.be...
> Brett wrote:
was[vbcol=seagreen]
you[vbcol=seagreen]
>
> I'm currently using 2.6.8. Not that old, but we are talking computers of
> course...
That should be OK. CIFS support was introduced in v2.6.
I mis-read your post. I didn't realise you're problem was that it was
working for root and not other users.
It could be permissions on your creditions file.
Brett.
| |
|
| Brett wrote:
> "Tim" <me@privacy.net> wrote in message
> news:d9tj8m$3a4$1@ikaria.belnet.be...
>
>
> was
>
>
> you
>
>
>
> That should be OK. CIFS support was introduced in v2.6.
> I mis-read your post. I didn't realise you're problem was that it was
> working for root and not other users.
>
> It could be permissions on your creditions file.
I was thinking the same, but the file is owned by the user for whom it
doesn't work, so I'm thinking there should be another problem. Only
problem, I don't have a clue what it could be :-(
Cheers,
Tim
|
|
|
|
|