session setup failed: ERRDOS - ERRnoaccess (Access denied.)

Hello All,

I am not able to access my home directory on my "samba PDC" via samba client...

I am using Mandriva 2006:

The following is my "rpm -qa | grep samba" output:
samba-common-3.0.20-3mdk
samba-client-3.0.20-3mdk

Problem:
If I issue the following command:
/bin/mount -t smbfs //192.168.100.14/mytest /home/mytest -o username=mytest,uid=mytest
Password: *******
I get:
4706: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed


However, if I issue,
bin/mount -t cifs //192.168.100.14/mytest /home/mytest -o username=mytest,uid=mytest , It Works!!!!

Further, I see the following line in /boot/config-2.6.12-12mdk

CONFIG_SMB_FS=m
CONFIG_SMB_NLS_DEFAULT=y
CONFIG_SMB_NLS_REMOTE="cp437"

Why am I getting errors?
Anybody please help....

Thanks
KartheeK

opentux网友答录


Nov 21 2006, 02:07 PM
I was having the same problem, and solved it by specifying the Windows workgroup in the username argument.
E.g., try:
CODE
mount -t smbfs //192.168.100.14/mytest /home/mytest -o username=mytest/<workgroup>%<pwd>,uid=mytest
Regards,
opentux.
============
Nov 21 2006, 02:43 PM
I'm wondering if it matters mounting as smbfs or cifs? The end result is, that it works

Any particular reason why you want it to mount as smbfs and not cifs?

At least there's two ways to do the same thing
 
=====可爱的分割线==========
有趣的很,当我发现这一个问题的时候,就想
mount -o username=administrator //172.168.1.1/yum /mnt/share的时候,有个默认的选项是-t smbfs

但是,当我看来上面的东西之后,你会发现一个有趣的问题
mount -o username=administrator //172.168.1.1/yum /mnt/share -t cifs
指定CIFS参数之后,轻松挂载!呵呵,有趣吧?
 
=====可爱的分割线==========
几天经常要挂载网络上的 windows 共享目录,用 smbmount 来挂载没啥问题,但是注意到 dmesg 会提示 smbfs 这东西在 kernel2.6.27 之后就不再推荐使用了,而且进内>   核看了看帮助,发现在 kernel2.6.29 之后 smbfs 就将从内核中取消,将被 cifs(Common Internet File System) 所取代,反正迟早都得换,就把内核重新编了一下,把 cifs 加了进来。

内核支持了,想当然就去 mount -t cifs 了,结果发现还得安装一个包net-fs/mount-cifs ,然后 mount -t cifs 或者 mount.cifs 都可以了。

你可能感兴趣的:(Access,denied,挂载,休闲,ERRDOS)