[edit: 2020-11-16@22h03 (SGT)]
Possible simple working solution to the problem presented below:
- https://forums.contribs.org/index.php/topic,54322.msg284217.html#msg284217
[/edit]
Hi there,
I have a
SME server 9.x (x=2 if I am not wrong) configured in
server only, behind a residential gateway (aka "Wi-Fi Router") with necessary ports open to use it as a web server ;
SME's DHCP server = off ; Everything connected is using static IPAddresses.
I am used to successfully mount "smb" shares between other Linux machines from the same local network, the following way:
# mount.cifs //192.168.123.45/share /mnt/smb/machine/share -o username=RemoteUserName,password=PassWord
Unfortunately, it doesn't seem to work with my actual SME server box:
mount error(13): Permission denied
Refer to the mount.cifs( manual page (e.g. man mount.cifs)
After searching for a while, I also tried the following alternative method involving a "credentials" file located in '/root/password' in which file there is the following:
username=RemoteUserName
password=PassWord
domain=192.168.1.2
192.168.1.2 being the IPAddress of my SME server on the LAN.
Since SME-Server as certain particular ways to do certain things, I am wondering what could be wrong with what I have done, so far ?
I am thinking about something wrong about the Domain, while I only use WorkGroup mode...
Else, do I need to have exactly the same 'username' and 'password' on both Linux machines ?
(I tried that too, it didn't work either)
Regards,
H.P.
P.S.What I tried has been done on '/mnt/smb/machine/share', to check if things were working fine before attempting the same in an 'ibay/html' location as I actually need on LAN only restricted access ibay.
Search done on
http://Contribs.org brought me to the following readings:
-
https://wiki.contribs.org/index.php?title=Special:Search&search=mount+in+ibay - -
https://wiki.contribs.org/AddExtraHardDisk - -
https://wiki.contribs.org/SharedFolders - -
https://wiki.contribs.org/SharedFolders/fr - -
https://wiki.contribs.org/Useful_Commands (something about ACL ...)
- -
https://wiki.contribs.org/Mount_Network_SharesSearch done on
http://forums.Contribs.org brought me to no answer. So, I am posting here.
Search on Google didn't help me much. Just found some things about the '/root/.password/credentials' method.
-
https://www.google.com/search?q=Status+code+returned+0xc000006d+NT_STATUS_LOGON_FAILUREP.P.S.# tail | dmesg gave me only this:
...
Key type cifs.spnego registered
Key type cifs.idmap registered
Registering the dns_resolver key type
Key type dns_resolver registered
Slow work thread pool: Starting up
Slow work thread pool: Ready
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return code = -13
...
...
..
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return code = -13
...
Edits:
- 2020-11-16 @ 22h03 (SGT) : Added link to solution
- 2020-11-18 @ 06h39 (SGT) : Typos fixes + Added [solved] to original message title + this section here.