Grupuri Google nu mai acceptă postările sau abonamentele noi Usenet. Conținutul anterior este în continuare vizibil.

[Samba] Samba 4 and Windows 10 Problem.

1.674 de afișări
Accesați primul mesaj necitit

Rodrigo Yoshioka

necitită,
18 ian. 2016, 18:50:0418.01.2016
Hi...
I'm used to configure samba 3, and now I'm getting some problems using samba 4.
My scenario: I have a file server which hosts need to access public folders and private folders.OS: Centos7Samba version: 4.2.3  | 11.el7_2Selinux DisabledFirewalld disabled
smb.conf[global]workgroup = WORKGROUP
server string = Samba Server %v
netbios name = centossecurity = usermap to guest = bad userdns proxy = no#============================ Share Definitions ==============================[Anonymous]path = /home/suporte/semsenhabrowsable =yeswritable = yesguest ok = yesread only = noguest only = yescreate mode = 0777directory mode = 0777

folder permissionsdrwxrwxrwx. 2 nobody nobody 6 Jan 18 20:18 semsenha
Of course there isn't private folders configured yet, but I couldn't make it work with just this.
I can make it work without password if I put "guest account = root" at global area, and "root = root" at shares area, but after that Private folders doens't work.At moment I use smbpasswd, public share stop working too.
The clients are Windows 10 without domain controller. I use Workgroup Network

Can anyone help me please?


Thanks.

RODRIGO YOSHIOKA
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Mueller

necitită,
19 ian. 2016, 02:20:0319.01.2016
Where do you get your users and groups, local?
Did you map the local users and groups to match with samba4/winbind?



EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mue...@tropenklinik.de
Internet: www.tropenklinik.de




-----Ursprüngliche Nachricht-----
Von: Rodrigo Yoshioka [mailto:ro_yosh...@yahoo.com.br]
Gesendet: Dienstag, 19. Januar 2016 00:24
An: sa...@lists.samba.org
Betreff: [Samba] Samba 4 and Windows 10 Problem.

L.P.H. van Belle

necitită,
19 ian. 2016, 03:10:0419.01.2016
The quick fix is change :
map to guest = Bad Password

read more about it here on the list:
subject : [Samba] Wiki: Standalone server

and on the wiki.
https://wiki.samba.org/index.php/Standalone_server


And please to tell us what works best for you.


Greetz,
Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Rodrigo Yoshioka
> Verzonden: dinsdag 19 januari 2016 0:24
> Aan: sa...@lists.samba.org
> Onderwerp: [Samba] Samba 4 and Windows 10 Problem.

Rodrigo Yoshioka

necitită,
19 ian. 2016, 04:50:0319.01.2016
Hi Louis, 
I have already added map to guest = Bad Password, but windows insist in tell that I don't have permission.
Thanks. RODRIGO YOSHIOKA

Rodrigo Yoshioka

necitită,
19 ian. 2016, 05:00:0319.01.2016
Hi Daniel, 
In that example that I wrote, I didn't create users yet, because I did public share only, but windows tell that I don't have permission. Do I need to create groups and users to that situation too?

But when I add private share, I create local users (add user) and samba user, but when I type user and password Samba answer that I don't have permission too.I think the problem might be that when Windows asks me for credentials It sends local windows account instead what I'm typing.I have already tried to create same users I have in Windows but no success too.

After a lot of thinking and reading I tried some tutorials on the internet, without success too.
https://www.howtoforge.com/samba-server-installation-and-configuration-on-centos-7

http://sharadchhetri.com/2014/10/09/centos-7-rhel-7-install-and-setup-samba-server-file-sharing/
 I have already tried to change windows 10 smb version too... and not working too.
I don't know what to do now.

RODRIGO YOSHIOKA

Mueller

necitită,
19 ian. 2016, 05:20:0319.01.2016
Samba3 and samba4 are quite different.

Try in your smb.conf

[public]
comment = public
path = /path/to/public
read only = No


Then start computer management as administrator from a windows client.
Conect to your samba4 server and choose the share (ex: public) and set the rights for "everyone".




EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mue...@tropenklinik.de
Internet: www.tropenklinik.de




-----Ursprüngliche Nachricht-----
Von: Rodrigo Yoshioka [mailto:ro_yosh...@yahoo.com.br]
Gesendet: Dienstag, 19. Januar 2016 10:42
An: sa...@lists.samba.org
Betreff: Re: [Samba] Samba 4 and Windows 10 Problem.

Rowland penny

necitită,
19 ian. 2016, 05:20:0319.01.2016
On 18/01/16 23:23, Rodrigo Yoshioka wrote:
> Hi...
> I'm used to configure samba 3, and now I'm getting some problems using samba 4.
> My scenario: I have a file server which hosts need to access public folders and private folders.OS: Centos7Samba version: 4.2.3 | 11.el7_2Selinux DisabledFirewalld disabled
> smb.conf[global]workgroup = WORKGROUP
> server string = Samba Server %v
> netbios name = centossecurity = usermap to guest = bad userdns proxy = no#============================ Share Definitions ==============================[Anonymous]path = /home/suporte/semsenhabrowsable =yeswritable = yesguest ok = yesread only = noguest only = yescreate mode = 0777directory mode = 0777
>
> folder permissionsdrwxrwxrwx. 2 nobody nobody 6 Jan 18 20:18 semsenha
> Of course there isn't private folders configured yet, but I couldn't make it work with just this.
> I can make it work without password if I put "guest account = root" at global area, and "root = root" at shares area, but after that Private folders doens't work.At moment I use smbpasswd, public share stop working too.
> The clients are Windows 10 without domain controller. I use Workgroup Network
>
> Can anyone help me please?
>
>
> Thanks.
>
> RODRIGO YOSHIOKA

You have 'workgroup = WORKGROUP' in your smb.conf, are your other
computers in the same workgroup ? if not try adding 'map untrusted to
domain'

The only other problem I could see was, you have 'writable = yes' and
'read only = no', you should probably remove one, they both mean the
same thing.

Rowland

L.P.H. van Belle

necitită,
19 ian. 2016, 05:40:0319.01.2016
For my home server i did it like this.

Share \\server\backups

[backups]
path = /media/sambashares/backups
read only = No

by default everybody had full control on the share.
Rights on the folder are 777
In this share/folder i have proctect folders.
Like :
/media/sambashares/backups/louis
/media/sambashares/backups/mywife

I created a linux user with the same name as i use in windows.
/media/sambashares/backups/louis is set louis:users 700

Now everybody can write/create in the backup folder, but cannot access my own folder.

My important settings:

security = user
guest ok = yes
map to guest = bad password

dont forget to use : smbpasswd -a (and -e )

on other shares, i use
force user = other_username ( a existing local linux user )
force group = other_group ( a existing local linux user )

so i have "open" server, but protected a few folders.

Works for me on Ubuntu 14.04, Sernet samba 4.2.7-SerNet-Ubuntu-8.trusty


Greetz,

Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Rodrigo Yoshioka
> Verzonden: dinsdag 19 januari 2016 10:42
> Aan: sa...@lists.samba.org
> Onderwerp: Re: [Samba] Samba 4 and Windows 10 Problem.

Rodrigo Yoshioka

necitită,
19 ian. 2016, 05:50:0419.01.2016
Hi Muller
I'll try that at lunch and then answer if it works or not.

Thanks. RODRIGO YOSHIOKA

Rodrigo Yoshioka

necitită,
19 ian. 2016, 06:00:0419.01.2016
Hi Rowland, 
The workgroup are exactly the same.
I will try removing this parameters at lunch and than answer you
Thanks.
 RODRIGO YOSHIOKA

Rodrigo Yoshioka

necitită,
19 ian. 2016, 06:10:0419.01.2016
Hi Louis
I'll try your configuration too..
Thanks.

 RODRIGO YOSHIOKA

Rodrigo Yoshioka

necitită,
19 ian. 2016, 09:30:0519.01.2016
Hi, I tried another conf, based on your emails, but still, windows say that I don't have permission.
[root@samba samba]# testparmLoad smb config files from /etc/samba/smb.confrlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)Processing section "[Anonymous]"Loaded services file OK.Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters[global]        netbios name = CENTOS        server string = Samba Server %v        security = USER        map to guest = Bad User        idmap config * : backend = tdb        guest ok = Yes

[Anonymous]        path = /home/suporte/semsenha        read only = No[root@samba samba]# systemctl restart smb[root@samba samba]# ll /home/suporte/total 0drwxrwxrwx. 2 nobody nobody 6 Jan 18 20:18 semsenha[root@samba samba]#

The log doesnt say anything about the problem....
Jan 19 11:51:54 samba systemd: Started Samba SMB Daemon.Jan 19 11:51:54 samba smbd[1019]: [2016/01/19 11:51:54.645682,  0] ../source3/printing/print_cups.c:151(cups_connect)Jan 19 11:51:54 samba smbd[1019]:  Unable to connect to CUPS server localhost:631 - Ponto final de transporte não está conectadoJan 19 11:51:54 samba smbd[1018]: [2016/01/19 11:51:54.646763,  0] ../source3/printing/print_cups.c:529(cups_async_callback)Jan 19 11:51:54 samba smbd[1018]:  failed to retrieve printer list: NT_STATUS_UNSUCCESSFULJan 19 11:57:54 samba smbd[1031]: [2016/01/19 11:57:54.841210,  0] ../source3/printing/print_cups.c:151(cups_connect)Jan 19 11:57:54 samba smbd[1031]:  Unable to connect to CUPS server localhost:631 - Ponto final de transporte não está conectadoJan 19 11:57:54 samba smbd[1018]: [2016/01/19 11:57:54.842579,  0] ../source3/printing/print_cups.c:529(cups_async_callback)Jan 19 11:57:54 samba smbd[1018]:  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL



 RODRIGO YOSHIOKA
0 mesaje noi