Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

Share with CentOs path

Hi,
I want to have one shared place to path of CentOs 7 machine, like the below. How?
\\113.255.213.124\tmp
Avatar of arnold
arnold
Flag of United States of America image

Do ytou want a centos system to share a space for access by a windows based system?
You need to configure SAMBA which is the windows CIFS share service on linux for windows.
Avatar of noci
noci

@arnold this seems a duplicate.... (or maybe an attempt to fill in the last remark i made there)....
Avatar of Peter Chan

ASKER

Hi Arnold,
How to resolve below error?

User generated image
Hid you ate not on the same LAN as the server, your issue might be a firewall and such share access might not be wise.

The ip you are using is public,
the failure to start the smb.service could be many things

how was the service installed ?
what files does the service file call ? do they exist ?

In general it is much better to copy and paste the text rather than a screenshot
how was the service installed ?
what files does the service file call ? do they exist ?
How to find out the failure reason of this?
look at /etc/smb/smb.conf

it might be a configuration issue, have you edited the file to set what you want from it or just trying to start?
please pose the config file.

double check
ifconfig dealing which IP the centos box has, versus how it is accessed.
you should not have the 113 in the smb.conf file if the IP is not directly available on the system (see ifconfig results)
Your screengrab has the path to the service file in it
Hi all,
What to adjust, in smb.conf file below (I actually put complete IP with also the password)?
[global]
        workgroup = SAMBA
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw
        workgroup = SearchHouseLive.com
[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes
        unix charset = UTF-8
        dos charset = CP932
        hosts allow = 182.173.??.??
        security = smb01
        passdb backend = ????
        map to guest = Bad User
[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @printadmin root
        force group = @printadmin
        create mask = 0664
        directory mask = 0775
[Share]# any name you like
        path = /home/share# shared directory
        writable = yes# writable
        guest ok = yes# guest allowed
        guest only = yes# guest only
        create mode = 0777# fully accessed file
        directory mode = 0777# fully accessed directory

Open in new window

Often at the top of an smb.conf there is a set of commands that deals with settings of SELinux which deals with security. If not run, Selinux will block the service.
Can you tell me what is wrong to smb.conf file in above?
It is incomplete.
The top of the file includes directives to run a set of commands...to authorize samba in Selinux.
Sorry, what to adjust to the file?
It is unclear to me ehat denies your attempts. NTLM is how the credentials are exchanged, check /var/log/audit.log
To see whether selinux is what denies the access attempt.
Hi,
I do not see this file (/var/log/audit.*) to my CentOS 7.
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I also do note see such files (/var/life/message*.*).
Log, autocorrection, word ...
/var/log contains various logs.

When attempting to access the defined share, fo you get prompt for credentials or you get an error, best way is to use a command window and run net use  \\linuxserver\test
And see what you get.

Commonly responses in earlier presumed the issue dealt with credentials, but the issue might be the block by firewall.

You can always test it on the server
mount test from the server over a test mount point
This validates samba setup, while pointing to a firewall issue as the next step to check.
Hi,
Which should be the other log file to check?

User generated image