SMB service has been enabled, I can share using freeNAS created users to authenticate SMB share. But how can we use LDAP to authenticate SMB shares? Current LDAP configuration in running on different server.
$(subj), it appears to be what root user is denied by default for all of the shares. I'm trying to reproduce Windows administrative share.
I am trying to mount windows machine directory in my ubuntu 10.04.3 server. When I try to see the shared directory in the windows server its showing properly using the below command. The windows mahcine is joined to local domain xyz.com
My doubt is, cant we mount the shared directory which is connected to local domain server? I am getting this error in both smbfs / cifs.
smbclient -L //192.168.39.152/ -U svnbackup
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
Android Disk
C$ Disk Default share
CENTOS Disk
E$ Disk Default share
G$ Disk Default share
IPC$ IPC Remote IPC
Nagios Disk
test Disk
When I try to mount the test directory using below command Its show error saying permission denied as below.
mount.smbfs //192.168.39.152/test /mnt/smbfs -o username=username,password=Svn1234,domain=xyz.com
mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Please help me to solve the issue.
I am running out of ideas. After a long period of testing this morning, I cannot seem to get this to work, and I have no idea why. I want to mount a Windows SMB/CIFS share with a Debian 5.0.4 VM, and it is not cooperating.
This the command I am using.
debianvm:/home/me# whoami
root
debianvm:/home/me# smbclient --version
Version 3.2.5
debianvm:/home/me# mount -t cifs //hostname.domain.tld/share /mnt/hostname.domain.tld/share --verbose -o user=SUBADDOMAIN.ADDOMAIN.DOMAIN.TLD/username
mount.cifs kernel mount options: unc=//hostname.domain.tld\share,ip=10.212.15.53,domain=SUBADDOMAIN.ADDOMAIN.DOMAIN.TLD,ver=1,rw,user=username,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,pass=*******************mount
error 5 = Input/output error Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
debianvm:/home/me#
The word on the nets has not been very specific, and unfortunately it is almost always environment-specific. I receive no authentication errors. I have tried mount -t smbfs
and mount -t cifs
, along with smbmount
and such. I get the same error before. I doubt it is a problem with DNS resolution, because logging shows the correct IP address. dmesg | tail -f
no longer shows authentication errors when I format the domain and username accordingly. I have played a little with iocharset=utf8
, file_mode
, and dir_mode
as described here. That did not help either. I have also tried ntlm
and ntlmv2
assuming it might be a minimum auth method problem, but not forcing sec=ntlmv2
it can still authenticate without errors anymore. smbclient -L hostname.domain.tld -W SUBADDOMAIN.ADDOMAIN.DOMAIN.TLD -U username
correctly lists all the shares and shows it as the following.
Domain=[SUBADDOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
ETC$ Disk Remote Administration
C$ Disk Remote Administration
Share Disk
Connection to hostname.domain.tld failed (Error NT_STATUS_CONNECTION_REFUSED)
NetBIOS over TCP disabled -- no workgroup available
I find the last line intriguing/alarming. Does anyone have any pointers!? Maybe I misread the effin manual.
I have a samba share called A on a machined named aaron. Inside that share is a smylink called Audio-CD_WAVs which points to a machine local directory. When this share is accessed by a windows machine, samba follows the link and exports the target to windows so windows does not see the symlink.
Now, I later mounted Audio-CD_WAVs on another linux machine, dathan, on a normal directory called CD-mount. I used smbfs for this mount. I expected it to mount the target of the link, but instead the mountpoint itself, CD-mount, turned into a symlink pointing to the directory on aaron. The problem I have now is that I cannot unmount this, the unmount command follows the symlink and complains that it does not exist. So how can I unmount this (without rebooting the machine, which would interrupt a lot of people)?
Before mounting:
drwxrwxrwx CD-mount
$ mount CD-mount
after:
lrwxrwxrwx CD-mount -> /some/nonexistant/directory12
$ umount CD-mount
umount: directory12: not found
$ mount |tail -n 1
//aaron.us.grn/A/Audio-CD_WAVs on /mnt/CD-mount type cifs (ro,mand)
I think the explanation for this behaviour is that when samba sees a linux client, it enables the 'unix extensions' option which includes support for symlinks. I only found this after I had already mounted the symlink though.