Tiny Core Extensions > TCE Talk
LANMAN error in Samba
remus:
Hi all,
Relearning Samba using this Guide.
http://www.samba.org/samba/docs/man/Samba-Guide/simple.html
Heres the steps i've followed
root# mkdir /plans
root# chmod 755 /plans
/usr/local/etc/samba/smb.conf
# Global Parameters
[global]
workgroup = MIDEARTH
security = SHARE
[Plans]
path = /plans
read only = Yes
guest ok = Yes
Verify that the /etc/hosts file contains the following entry:
192.168.1.1 box
root# smbclient -L localhost -U%
this command works fine, however
root# smbclient -L server -Uroot%password
this command gives the following error
--- Code: ---Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
--- End code ---
I get the same error if I preceed the command with sudo
I found a solution here:
http://forums.linuxmint.com/viewtopic.php?f=90&t=35620&start=0
had to add
--- Code: ---client lanman auth = Yes
lanman auth = Yes
--- End code ---
to the [global] section.
Just thought i'd post the situation, and its solution.
Sorry but I don't know the cause.
Rich:
Hi remus
Here is a copy of the smb.conf file for my file server if it helps.
http://forum.tinycorelinux.net/index.php?topic=8871.msg48077#msg48077
remus:
Hi rich,
I had a look at your post and made the following changes.
added a user called nobody with no password
altered my /usr/local/etc/samba/smb.conf file so its now:
--- Code: ---[global]
workgroup = MSHOME
security = share
client lanman auth = Yes
lanman auth = yes
guest account = nobody
[plans]
path = /home/tc/plans
available = yes
force create mode = 0777
force directory mode = 0777
read only = no
guest ok = yes
use sendfile = yes
--- End code ---
I can open the plans share from windows, but can not create a file or folder within it, error is
Unable to create the folder 'New Folder'
Access is denied
remus:
Ok, i've found the problem.
The official samba tutorial I am following from:
http://www.samba.org/samba/docs/man/Samba-Guide/simple.html#id2550946
Starts off by directing to create a folder called plans and assigning some permissions
--- Code: ---root# mkdir /plans
root# chmod 755 /plans
--- End code ---
If I change that to
--- Code: ---chmod 777 /plans
--- End code ---
It works great !!!
I can access the share without a username and password.
Goes to show, a little knowledge can be dangerous :)
remus:
I was thinking about the permissions on the folder and I am confused.
I created plans the folder with the tc user.
Is that why the permissions have to be set to 777, because guest account is set to the nobody user, and the nobody user did not create the folder ?
Navigation
[0] Message Index
[#] Next page
Go to full version