[Samba] What in samba 4.1 prevents a '/' share?
David C. Rankin
drankinatty at suddenlinkmail.com
Mon Jan 6 14:01:02 MST 2014
On 01/06/2014 02:27 AM, L.P.H. van Belle wrote:
> ok, try the following.
>
> mount like this :
> sudo mount -t cifs //netbios-servername/my-share /media/mount-point -o credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlmssp
>
> edit my /root/.smbcredentials to:
> username=my-user
> password=my-password
> domain=my-domain
>
> set rights on the file
> sudo chmod 400 /root/.smbcredentials
>
>
> Look at the last option of the mount line..
> people report sucess with sec=ntlmssp and sec=ntlmv2
>
> if above does'nt work, i suggest try a 3.2 kernel.
> then im out of options.
OK, I know you are out of options, but Thank You for your help!
I've tried all of the tests you have suggested, but I still get the same error
attempting to mount the '/' share from server phoinix. I've tried with the
credentials file under /root/ and with domain=WORKGROUP =rlfpllc and without a
workgroup altogether. No difference:
[14:45 providence:~/cnf] # mount -t cifs //phoinix/config /mnt/phx-cfg -o
credentials=/root/cnf/mountcfile,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlmssp
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[14:45 providence:~/cnf] # mount -t cifs //phoinix/config /mnt/phx-cfg -o
credentials=/root/cnf/mountcfile,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlmv2
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[14:45 providence:~/cnf] # mount -t cifs //phoinix/config /mnt/phx-cfg -o
credentials=/root/cnf/mountcfile,iocharset=utf8,file_mode=0777,dir_mode=0777
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I then compared mounting the '/' share from host nemesis:
[14:50 providence:~/cnf] # mount.cifs //nemesis/config /mnt/nm-cfg/ -o
uid=1000,credentials=/root/cnf/mountcfile,noperm
<success>
[14:50 providence:~/cnf] # mount
<snip>
//phoinix/samba on /mnt/phx type cifs
(rw,relatime,vers=1.0,sec=ntlm,cache=loose,unc=\\phoinix\samba,username=david,uid=1000,forceuid,gid=0,noforcegid,addr=192.168.7.16,unix,posixpaths,serverino,acl,noperm,rsize=1048576,wsize=65536,actimeo=1)
//phoinix/david on /mnt/phx-david type cifs
(rw,relatime,vers=1.0,sec=ntlm,cache=loose,unc=\\phoinix\david,username=david,uid=1000,forceuid,gid=0,noforcegid,addr=192.168.7.16,unix,posixpaths,serverino,acl,noperm,rsize=1048576,wsize=65536,actimeo=1)
//nemesis/config on /mnt/nm-cfg type cifs
(rw,relatime,vers=1.0,sec=ntlm,cache=loose,unc=\\nemesis\config,username=david,domain=rlfpllc,uid=1000,forceuid,gid=0,noforcegid,addr=192.168.7.61,unix,posixpaths,acl,noperm,rsize=1048576,wsize=65536,actimeo=1)
The nemesis '/' share mounted fine regardless of the value of domain= in the
credentials file, the only thing that changed was the value of ,domain= as
reported by mount. (I don't think it does anything since my setup is standalone)
So I'm just stuck. I don't know what in the heck changed, but something has
definitely changed. Maybe someone else following this thread has some additional
idea (hint, hint Bartlett, Allison, Terpstra, Tridgell.. anybody??)
--
David C. Rankin, J.D.,P.E.
More information about the samba
mailing list