You are not logged in.

#1 2015-09-25 18:30:04

blakyris
Guest

[SAMBA] Can't access file shares

Hi guys,

I'm trying to set up a samba server on Arch VPS at OVH (FRANCE)
But windows can't access it (firewall/antivirus disabled and every crap like that) and my Arch Box can"t access it because it segfaults or I don't have permissions.
I've set the correct owner and rights...

Is it my smb.conf file ?

smb.conf

[global]
workgroup = WORKGROUP
netbios name = ARCHSERVER
security = user
wins support = yes
map to guest = bad user

# Shared media folders are located at : /ushare/Media/
# Allowed users can access it in order to manage Media Server library
# This folders are used by Emby Server

[Media]
path = /ushare/Media
read only = no
browsable = yes
available = yes
writable = yes
create mask = 0755

Share is located at : /ushare/Media/

[root@vps202908 Media]# ls -al
total 24
drwxrwx--- 6 root samba 4096 Sep 25 15:33 .
drwxrwx--T 3 root root  4096 Sep 25 15:32 ..
drwxrwx--- 2 root samba 4096 Sep 25 15:33 Movies
drwxrwx--- 2 root samba 4096 Sep 25 15:33 Music
drwxrwx--- 2 root samba 4096 Sep 25 15:33 Photos
drwxrwx--- 2 root samba 4096 Sep 25 15:33 TV Shows

My user is in group "samba"

pdbedit output :

Unix username:        sebastien
NT username:
Account Flags:        [U          ]
User SID:             S-1-5-21-3001727010-2837632742-3352616933-1003
Primary Group SID:    S-1-5-21-3001727010-2837632742-3352616933-513
Full Name:
Home Directory:       \\archserver\sebastien
HomeDir Drive:
Logon Script:
Profile Path:         \\archserver\sebastien\profile
Domain:               ARCHSERVER
Account desc:
Workstations:
Munged dial:
Logon time:           0
Logoff time:          Wed, 06 Feb 2036 16:06:39 CET
Kickoff time:         Wed, 06 Feb 2036 16:06:39 CET
Password last set:    Fri, 25 Sep 2015 20:28:12 CEST
Password can change:  Fri, 25 Sep 2015 20:28:12 CEST
Password must change: never
Last bad password   : 0
Bad password count  : 0
Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Thx for your answers...

#2 2015-09-26 07:53:31

hydracone
Member
Registered: 2015-06-25
Posts: 24

Re: [SAMBA] Can't access file shares

Are you trying to access the Samba share without entering any credentials? If you do, then all your actions would be performed using the default bad user ( which would be 'nobody'). You haven't set any permissions for the other users. Can other users access /ushare/Media/ ??

Offline

#3 2015-09-26 11:46:18

blakyris
Guest

Re: [SAMBA] Can't access file shares

No i'm trying with my user "sebastien" which is in pdbedit output
My share is private.
As you can see, i'm the owner of the folders (UNIX account "sebastien").

Last edited by blakyris (2015-09-26 11:51:23)

#4 2015-09-26 13:53:18

hydracone
Member
Registered: 2015-06-25
Posts: 24

Re: [SAMBA] Can't access file shares

What is the permission on the /ushare/Media/ directory itself ? Do you have access to it as well?

EDIT : From your 'ls -al' output, you don't seem to have access to the /ushare directory. The owner and the group both are 'root'. Try changing the group to samba.

Last edited by hydracone (2015-09-26 13:58:30)

Offline

#5 2015-09-26 21:27:26

blakyris
Guest

Re: [SAMBA] Can't access file shares

No I have the rights on every folders man.
The ".." is the previous folder so "/". Samba users doesn't have right access here.

EDIT : Oops I updated rights since yesterday but doesn't work on WIndows

Last edited by blakyris (2015-09-26 21:28:39)

#6 2015-09-28 10:09:39

losko
Member
Registered: 2014-11-19
Posts: 42

Re: [SAMBA] Can't access file shares

I suppose nmbd.service and smbd.service are both running...
There's an issue with samba 4.3.0 preventing them to start.
What's the output of:

systemctl status smbd nmbd

"Greetings from the Banana Republic"

Offline

#7 2015-09-29 19:51:10

blakyris
Guest

Re: [SAMBA] Can't access file shares

The output of "systemctl status smbd nmbd" :

[root@vps202908 ~]# systemctl status smbd nmbd
● smbd.service - Samba SMB/CIFS server
   Loaded: loaded (/usr/lib/systemd/system/smbd.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2015-09-26 14:00:11 CEST; 3 days ago
 Main PID: 15511 (smbd)
   CGroup: /system.slice/smbd.service
           ├─15511 /usr/bin/smbd -D
           ├─15512 /usr/bin/smbd -D
           └─15514 /usr/bin/smbd -D

Sep 26 14:00:11 vps202908.ovh.net systemd[1]: Stopped Samba SMB/CIFS server.
Sep 26 14:00:11 vps202908.ovh.net systemd[1]: Starting Samba SMB/CIFS server...
Sep 26 14:00:11 vps202908.ovh.net systemd[1]: smbd.service: PID file /var/run/smbd.pid not readable (yet?) after start: No such file or directory
Sep 26 14:00:11 vps202908.ovh.net systemd[1]: Started Samba SMB/CIFS server.
Sep 26 14:00:11 vps202908.ovh.net smbd[15511]: [2015/09/26 14:00:11.140733,  0] ../lib/util/become_daemon.c:124(daemon_ready)
Sep 26 14:00:11 vps202908.ovh.net smbd[15511]:   STATUS=daemon 'smbd' finished starting up and ready to serve connections

● nmbd.service - Samba NetBIOS name server
   Loaded: loaded (/usr/lib/systemd/system/nmbd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

#8 2015-09-30 08:21:57

losko
Member
Registered: 2014-11-19
Posts: 42

Re: [SAMBA] Can't access file shares

Even if nmbd.service is not strictly needed (source: arch wiki), trying to start it it's not a bad idea.
In your case it's also used as wins server (source: nmbd man page).

# systemctl start nmbd

"Greetings from the Banana Republic"

Offline

#9 2015-10-23 06:20:15

blakyris
Guest

Re: [SAMBA] Can't access file shares

Thank you guys but it didn't work and i don't know why.
I will try this later

#10 2015-10-24 16:33:30

Arup
Member
From: Earth
Registered: 2014-02-20
Posts: 95

Re: [SAMBA] Can't access file shares

Do you have ownership of the shared folder? Also have you added user and password via pdbedit?

Offline

Board footer

Powered by FluxBB