I'm really running out of ideas. It cost me three sunday afternoons already and I still have not the slightest clue what is the problem.
On my freeNAS-box (7.2) I set up (around 2009) an anonymous samba share, no user, no password. With Mageia 1 and 2 I could mount it without problems, my NMT (popcornhour) mounts it and my Win7-Box sees it, accesses it and gives me write access to it without asking for anything. When I made a fresh install with Mageia 3 beta 2 it asked for a password and keeps asking me that despite all my efforts. It has to do something with the Mageia preferences one would think, but when I try the old ones (samba.conf and fstab) it is not working either.
Here are the facts:
I tell MCC to access the samba share (which is visible) with the mount point /mnt/horst and blank user and password. It creates a fstab line like this:
//horst/freenas_share /mnt/horst cifs defaults 0 0
when I try to mount as root this happens:
- Code: Select all
root@localhost ~]# mount /mnt/horst
Password for rainer@//horst/freenas_share:
Question is, why asking for a password at all and why asking for rainers password (which is the only user on the mageia-box) when I work as root?
When I just hit enter or type something:
- Code: Select all
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
The old line which worked in mga2 looked like this:
//horst/freenas_share /mnt/horst cifs username=%,uid=rainer 0 0
but is not helping anymore:
- Code: Select all
[root@localhost ~]# mount /mnt/horst
Password for %@//horst/freenas_share: ********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
smbclient gives me this when I just hit enter for the password:
- Code: Select all
[root@localhost ~]# smbclient -L //horst
Enter rainer's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (horst)
freenas_share Disk freenas datenpartition
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]
Server Comment
--------- -------
HORST horst
Workgroup Master
--------- -------
WORKGROUP HORST
and this when I type something:
- Code: Select all
[root@localhost ~]# smbclient -L //horst
Enter rainer's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]
Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
tree connect failed: NT_STATUS_ACCESS_DENIED
when I write:
client lanman auth = Yes
lanman auth = Yes
client ntlmv2 auth = no
in /etc/samba/smb.conf, then I get this in both cases (typing or leaving blank):
- Code: Select all
[root@localhost ~]# smbclient -L //horst
Enter rainer's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (horst)
freenas_share Disk freenas datenpartition
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]
Server Comment
--------- -------
HORST horst
Workgroup Master
--------- -------
WORKGROUP HORST
global output of testparm looks like this:
- Code: Select all
[root@localhost ~]# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[pdf-gen]"
Loaded services file OK.
Warning: Service printers defines a print command, but rameter is ignored when using CUPS libraries.
Server role: ROLE_STANDALONE
[global]
server string = %h
map to guest = Bad User
lanman auth = Yes
client NTLMv2 auth = No
client lanman auth = Yes
log file = /var/log/samba/%m.log
max log size = 50
printcap cache time = 60
printcap name = cups
dns proxy = No
idmap config * : backend = tdb
I tried lots of fstab lines or console mount lines, nothing worked.
Mageia firewall is off.
this is the server samba.conf:
- Code: Select all
$ cat /var/etc/smb.conf
[global]
encrypt passwords = yes
netbios name = horst
workgroup = WORKGROUP
server string = horst
security = share
dns proxy = no
# Settings to enhance performance:
use sendfile = yes
strict locking = no
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
deadtime = 15
getwd cache = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=64240 SO_RCVBUF=64240
# End of performance section
unix charset = UTF-8
store dos attributes = yes
local master = yes
time server = no
guest account = ftp
display charset = LOCALE
max log size = 10
syslog only = yes
syslog = 1
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log level = 1
dos charset = CP437
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
passdb backend = smbpasswd
create mask = 0666
directory mask = 0777
force user = ftp
force group = ftp
[freenas_share]
comment = freenas datenpartition
path = /mnt/daten/
writeable = yes
printable = no
veto files = /.snap/
hide dot files = yes
guest ok = yes
inherit permissions = yes
hosts allow = 192.168.178.2 192.168.178.4
hosts deny = ALL
- Code: Select all
$ smbstatus
Samba version 3.0.37
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
No locked files
I is not the IP: 192.168.178.2 is the right one. I changed MGAGROUP to WORKGROUP in samba.conf just to be sure.
I have to miss some critical point here, perhaps someone could help me out? I'm open for suggestions.
thanks in advance
Rainer